<?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: sending mail using abap in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-mail-using-abap/m-p/2725061#M632381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this FM :SO_NEW_DOCUMENT_SEND_API1 in ABAP to send email to external emails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  email_data-obj_name = 'MESSAGE'.
  email_data-obj_descr = title.
  email_data-obj_langu = 'E'.
  email_data-sensitivty = 'P'.
  email_data-obj_prio = '1'.
  email_data-no_change = 'X'.
  email_data-priority = '1'.

  loop at username.
    email_send-receiver = username-id.
    email_send-rec_type = ' '.   " Sap user.
    email_send-express  = 'X'.   " Pop up SAP dialogue
*  email_send-to_answer = 'X'.
    append email_send.
  endloop.

  loop at message.
    data_tab-line = message-text.
    append data_tab.
  endloop.

  call function 'SO_NEW_DOCUMENT_SEND_API1'
    exporting
      document_data = email_data
      document_type = 'RAW'
      put_in_outbox = 'X'
    tables
      object_content = data_tab
      receivers   = email_send
    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.
  if sy-subrc &amp;lt;&amp;gt; 0.
    write: / 'Error in sending mail to ', username.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2007 05:56:28 GMT</pubDate>
    <dc:creator>gopi_narendra</dc:creator>
    <dc:date>2007-09-06T05:56:28Z</dc:date>
    <item>
      <title>sending mail using abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-mail-using-abap/m-p/2725059#M632379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ole to send mail.The mail is sent properly but a popup appears before sending the mail saying that a program is trying to send mail on your behalf..and prompting for a yes or no.If yes is opted then the mail is sent . I want to suppress this popup,can anybody help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-mail-using-abap/m-p/2725059#M632379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: sending mail using abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-mail-using-abap/m-p/2725060#M632380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;USE THIS FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_ATT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;vivekanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-mail-using-abap/m-p/2725060#M632380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: sending mail using abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-mail-using-abap/m-p/2725061#M632381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this FM :SO_NEW_DOCUMENT_SEND_API1 in ABAP to send email to external emails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  email_data-obj_name = 'MESSAGE'.
  email_data-obj_descr = title.
  email_data-obj_langu = 'E'.
  email_data-sensitivty = 'P'.
  email_data-obj_prio = '1'.
  email_data-no_change = 'X'.
  email_data-priority = '1'.

  loop at username.
    email_send-receiver = username-id.
    email_send-rec_type = ' '.   " Sap user.
    email_send-express  = 'X'.   " Pop up SAP dialogue
*  email_send-to_answer = 'X'.
    append email_send.
  endloop.

  loop at message.
    data_tab-line = message-text.
    append data_tab.
  endloop.

  call function 'SO_NEW_DOCUMENT_SEND_API1'
    exporting
      document_data = email_data
      document_type = 'RAW'
      put_in_outbox = 'X'
    tables
      object_content = data_tab
      receivers   = email_send
    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.
  if sy-subrc &amp;lt;&amp;gt; 0.
    write: / 'Error in sending mail to ', username.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-mail-using-abap/m-p/2725061#M632381</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-09-06T05:56:28Z</dc:date>
    </item>
  </channel>
</rss>

