Skip to Content
author's profile photo
Former Member

In cl_crm_email_utility, what values to define Header Field: Reply-To

I'm working with the Web UI component BT126H_MAIL. When i click [Send], CL_CRM_SEND_SCREEN->ON_SEND fills the attributes of CL_CRM_EMAIL_DATA (FROM, TO, COPY, BCC, SUBJECT, BODY, HEADER_FIELDS etc...) and the calls CL_CRM_EMAIL_UTILITY->send_email to send out the email.

I want FROM to be the email address of my corporate service representative, but I want to set the MIME Header field Reply-To to the email of my field service rep thats assigned.

CL_CRM_EMAIL_DATA has attributes for FROM, TO, COPY and BCC, but has no attribute for Reply-To. Is there a way I can set the MIME Header Field: Reply-To? Can I do this with the HEADER_FIELDS attribute? If-so, could you describe that data I should populate HEADER_FIELDS with?

Attributes of CL_CRM_EMAIL_DATA

-


TO

COPY

BCC

FROM

SUBJECT

SEND_DATE

SENSITIVITY

IMPORTANCE

MAIL_ID

HEADER_FIELDS

BODY

SETTINGS

SUBJECT_CHARSET

thank you in advance

sandy

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    Posted on Apr 02, 2011 at 03:22 PM

    Hi shavlis,

    Don't know if this fulfills your issue, but try to put in the FROM address field, something like this syntax:

    FROM: corporateServiceRepresentativeATanydomain.com<serviceRepATanydomain.com>

    This way, the user will receive an email from 'corporateServiceRepresentativeATanydomain.com', but when it replies, it will reply to 'serviceRepATanydomain.com'.

    Kind regards and good luck!

    Garcia

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Apr 05, 2011 at 08:03 PM

    Good idea, but that puts me back a square 1.

    The business wants the email address on the FROM to be corporate sales/service rep to ensure that it gets to the customer and doesn't get filter out in some spam filter. Our corporate domain is on the whitelist and gets perferred treatment. Unfortunately our field sales/service reps do not have a corporate email account. Their email domains vary with each dealership and aren't on the whitelist.

    So in BT126H_EMAIL I still need to set the FROM to be the email address of my corporate sales/service rep.

    Is there a way in BT126H_MAIL that I can set the MIME Header Data of Reply-to to be the email address of my field sales/serivce rep? If so, does anyone have an example on how?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Question answered by SAP.

      There is no way to enhance BT126H_EMAIL component to send MIME Header fields Reply-to or Errors-To . To accomplish this, it would require modifying core SAP classes.

      Edited by: shavlis on May 4, 2011 10:47 PM