<?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: Send external mails API in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-external-mails-api/m-p/3295643#M788689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the class &lt;STRONG&gt;cl_document_bcs&lt;/STRONG&gt; to send external mails.&lt;/P&gt;&lt;P&gt;This class has the method &lt;STRONG&gt;set_sender&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Kevin Raskin posted an example coding in this forum:&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4255582"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Jan 2008 12:53:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-12T12:53:52Z</dc:date>
    <item>
      <title>Send external mails API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-external-mails-api/m-p/3295640#M788686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'am using the function module SO_NEW_DOCUMENT_SEND_API1 to send external mails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know if it's possible to specify the default sender. I want to put something like no-reply@name.com.&lt;/P&gt;&lt;P&gt;I didn't found nothing in the function parameters. Or maybe there is another function module that i can use ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Helder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my code : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*Send mail
  CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
      document_data              = doc_data
      put_in_outbox              = 'X'
*      commit_work                = 'X'
    IMPORTING
      new_object_id              = object_id
    TABLES
      object_content             = objcont
      receivers                  = receiver
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 7
      OTHERS                     = 8.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 11, 2008 3:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 14:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-external-mails-api/m-p/3295640#M788686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T14:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Send external mails API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-external-mails-api/m-p/3295641#M788687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HR_FBN_GENERATE_SEND_EMAIL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2008 12:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-external-mails-api/m-p/3295641#M788687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-12T12:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Send external mails API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-external-mails-api/m-p/3295642#M788688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry its not a direct answer to your question. but if you are on WAS6.10 or above you can use cl_bcs class to send mail which offers much more flexibility. for sample code you can check out the demo programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCS_EXAMPLE_1  &lt;/P&gt;&lt;P&gt;BCS_EXAMPLE_2  &lt;/P&gt;&lt;P&gt;BCS_EXAMPLE_3  &lt;/P&gt;&lt;P&gt;BCS_EXAMPLE_4  &lt;/P&gt;&lt;P&gt;BCS_EXAMPLE_5  &lt;/P&gt;&lt;P&gt;BCS_EXAMPLE_6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2008 12:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-external-mails-api/m-p/3295642#M788688</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-01-12T12:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Send external mails API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-external-mails-api/m-p/3295643#M788689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the class &lt;STRONG&gt;cl_document_bcs&lt;/STRONG&gt; to send external mails.&lt;/P&gt;&lt;P&gt;This class has the method &lt;STRONG&gt;set_sender&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Kevin Raskin posted an example coding in this forum:&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4255582"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2008 12:53:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-external-mails-api/m-p/3295643#M788689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-12T12:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Send external mails API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-external-mails-api/m-p/3295644#M788690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;P&gt;I used instead the FM SO_DOCUMENT_SEND_API1 wich allows to define the sender. I have missed this one when i was looking for another fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 13:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-external-mails-api/m-p/3295644#M788690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T13:53:49Z</dc:date>
    </item>
  </channel>
</rss>

