<?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 Re: Sender not correct while sending email in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765797#M1775829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arvind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I see a snippet of your code that is failing.&amp;nbsp; It might help me better understand your problem and help more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 14:48:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-10-23T14:48:45Z</dc:date>
    <item>
      <title>Sender not correct while sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765795#M1775827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are sending email from E-rec to the external email address. In SOST it is coming up with the correct email address (lets say &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:erec@gmail.com"&gt;erec@gmail.com&lt;/A&gt;&lt;SPAN&gt;), this we always want as the sender.&amp;nbsp; We have created the enhancement in FM "SX_GET_SMTP_SENDER_ADDRESS" perform get_sender_address. Here we pick up the sender from a z table and determine the sender email address regardless of who is the actual originator.&amp;nbsp; However in the SMTP log it is showing the sender as who has manually start sending process from SOST and not &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:erec@gmail.com"&gt;erec@gmail.com&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; On further analysis I found that : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When I send the test email from tcode SBWP, In FM "SO_OBJECT_MIME_GET" it call perform get_smtp_envelope_sender. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In above perform at line 30, it tries to get object reference of class cl_cam_address_bcs and it gets initial. Hence it goes ahead and call FM "&lt;/P&gt;&lt;P&gt;SX_GET_SMTP_SENDER_ADDRESS"&amp;nbsp; in the else part and execute our enhancement which we have written to get the sender address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. While if we process the email from SOST it does everything same above except it gets the reference of class cl_cam_address_bcs and does not go to else part. Instead it assigns the Sender Address as the user who is executing SOST work item. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this result in fail of email sending. Its happening in recent time in our system. Please suggest a way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;&amp;nbsp; Urgency Removed &amp;gt;&amp;gt;&lt;/SPAN&gt;, please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Arvind Patel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kesavadas Thekkillath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 13:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765795#M1775827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-23T13:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sender not correct while sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765796#M1775828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arvind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that looks like a SAP bug, did you open a message ?&amp;nbsp;&amp;nbsp;&amp;nbsp; (specially for part 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 13:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765796#M1775828</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2013-10-23T13:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sender not correct while sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765797#M1775829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arvind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I see a snippet of your code that is failing.&amp;nbsp; It might help me better understand your problem and help more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 14:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765797#M1775829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-23T14:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sender not correct while sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765798#M1775830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use the cl_sapuser_bcs=&amp;gt;create method to force the correct user ID for the sender OR use the I_ADDRESS_NAME parameter for the cl_cam_address_bcs=&amp;gt;create_internet_address.&amp;nbsp; The description says 'obsolete' for the parameter but it's in use in versions later than 7.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 14:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765798#M1775830</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2013-10-23T14:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sender not correct while sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765799#M1775831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fred, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah we had opened a message and they asked for the trace. they said the trace is correct, further they had a point that if the issue is with SAP standard FM/Method, it should fail for every email however this might not be the correct point based on different condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will again send them the further analysis which I have described here. Any other suggestion please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Arvind Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 05:56:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765799#M1775831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-24T05:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sender not correct while sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765800#M1775832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Neal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/306326" width="450" /&gt;&lt;/P&gt;&lt;P&gt;This I have described above in my post that, while sending email from Erec, lo_cam is not coming initial and hence initializing the lv_sender with the person who is processing the send from SOST. If it would have been initial, it will go to the below highlighted if part and will execute our user exit to fetch the sender from Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Arvind Patel &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 06:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sender-not-correct-while-sending-email/m-p/9765800#M1775832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-24T06:02:16Z</dc:date>
    </item>
  </channel>
</rss>

