Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Abap send Email with a custom SMTP mail header

Sigurdur
Participant
0 Kudos
1,114

Hi

I have the requirement to send e-mails form sap via the Amazon simple email service i.e. AWS SES.

But to properly make use of the feature to Specifying a Configuration Set for the Amazon service

I need to add a custom header X-SES-CONFIGURATION-SET to the mail message.

So far I have not found any way in ABAP to add custom mail headers to e-mail either by using SO_DOCUMENT_SEND_API1 or CL_BCS.

Has anyone done something similar or used Amazon cloud services to send mail from SAP ?

Any suggestions are appreciated

Regards

2 REPLIES 2

BGarcia
Active Contributor
0 Kudos
666

Hi Sigurdur,

Maybe you can explore sending the email using class CL_CRM_EMAIL_DATA. You have an attribute HEADER_FIELDS where I believe you can set up your header.

This WIKI has a small template you can use to test it. Check if it helps you a little more.

Kind regards,
Garcia

Sigurdur
Participant
0 Kudos
666

This is a good pointer

But adding values to the Header_fields property does not seem to add extra headers to the SMTP message generated.

And I can't find any deomos or documentation on what the intended usage is for this property

Regards Siggi