<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic mail problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-problem/m-p/6132351#M1365627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Techies,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am writing this code in a FM, which is called by different SAP users. but the mail has to be trigger for which the sender is the admin of the system with user id  ' optima-admn'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 TRY.
            l_sender = cl_sapuser_bcs=&amp;gt;create('OPTIMA-ADMN').
          CATCH cx_address_bcs.
        ENDTRY.

*  Trigger E-Mail immediately
        l_send_request-&amp;gt;set_send_immediately( 'X' ).

* Send mail
        CALL METHOD l_send_request-&amp;gt;send( ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, the mail is getting triggered with the name of the system user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the sender as OPTIMA-ADMN. please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2009 10:19:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-08T10:19:45Z</dc:date>
    <item>
      <title>mail problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-problem/m-p/6132351#M1365627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Techies,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am writing this code in a FM, which is called by different SAP users. but the mail has to be trigger for which the sender is the admin of the system with user id  ' optima-admn'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 TRY.
            l_sender = cl_sapuser_bcs=&amp;gt;create('OPTIMA-ADMN').
          CATCH cx_address_bcs.
        ENDTRY.

*  Trigger E-Mail immediately
        l_send_request-&amp;gt;set_send_immediately( 'X' ).

* Send mail
        CALL METHOD l_send_request-&amp;gt;send( ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, the mail is getting triggered with the name of the system user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the sender as OPTIMA-ADMN. please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 10:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-problem/m-p/6132351#M1365627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T10:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: mail problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-problem/m-p/6132352#M1365628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using method SET_SENDER of class CL_BCS before sending the mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 10:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-problem/m-p/6132352#M1365628</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-09-08T10:26:47Z</dc:date>
    </item>
  </channel>
</rss>

