<?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: Mail from abap - issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071438#M728107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the mail id in it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFUL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZMAIL                                                       .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data reciever type table of ADR6-SMTP_ADDR.&lt;/P&gt;&lt;P&gt;data subject type SO_OBJ_DES.&lt;/P&gt;&lt;P&gt;data text type bcsy_text.&lt;/P&gt;&lt;P&gt;data line type soli-line.&lt;/P&gt;&lt;P&gt;data send_request type ref to cl_bcs.&lt;/P&gt;&lt;P&gt;data document type ref to cl_document_bcs.&lt;/P&gt;&lt;P&gt;data recipient type ref to if_recipient_bcs.&lt;/P&gt;&lt;P&gt;data bcs_exception type ref to cx_bcs.&lt;/P&gt;&lt;P&gt;data sent_to_all type os_boolean.&lt;/P&gt;&lt;P&gt;data adresse type ADR6-SMTP_ADDR.&lt;/P&gt;&lt;P&gt;data mailflag(1) value space.&lt;/P&gt;&lt;P&gt;data dat(10).&lt;/P&gt;&lt;P&gt;data time(10).&lt;/P&gt;&lt;P&gt;data tfree(12).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write sy-datum to dat.&lt;/P&gt;&lt;P&gt;write sy-uzeit to time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*subject&lt;/P&gt;&lt;P&gt;subject = 'This is my Subject '.&lt;/P&gt;&lt;P&gt;line = ' I am the body of the message '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append line to text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Mail Send Mail out to external Mail Server .&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*create the send request&lt;/P&gt;&lt;P&gt;send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;/P&gt;&lt;P&gt;document = cl_document_bcs=&amp;gt;create_document(&lt;/P&gt;&lt;P&gt;i_type = 'RAW'&lt;/P&gt;&lt;P&gt;i_text = text&lt;/P&gt;&lt;P&gt;i_subject = 'Hi this is my subject' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*add document to send request&lt;/P&gt;&lt;P&gt;send_request-&amp;gt;set_document( document ).&lt;/P&gt;&lt;P&gt;*create recipient and add to send request&lt;/P&gt;&lt;P&gt;adresse = 'twinklezz2004@yahoo.co.in'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recipient = cl_cam_address_bcs=&amp;gt;create_internet_address(&lt;/P&gt;&lt;P&gt;adresse ).&lt;/P&gt;&lt;P&gt;send_request-&amp;gt;add_recipient( i_recipient = recipient ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*send mail now&lt;/P&gt;&lt;P&gt;sent_to_all = send_request-&amp;gt;send( i_with_error_screen = 'X' ).&lt;/P&gt;&lt;P&gt;if sent_to_all = 'X'.&lt;/P&gt;&lt;P&gt;Message s022(so).&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;catch cx_bcs into bcs_exception.&lt;/P&gt;&lt;P&gt;message e865(so) with bcs_exception-&amp;gt;error_type.&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Close Transaction.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*End of the Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*End of the Code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2007 09:55:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-30T09:55:33Z</dc:date>
    <item>
      <title>Mail from abap - issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071435#M728104</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;To send external mails from r/3 we have the std FM  SO_NEW_DOCUMENT_SEND_API1. We are presently using this FM to send external mails ,The only issue being that sent mails can me read from tcode SOST if the user has the required authorization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to send external mails from r/3 directly which cannot be read in r/3 or encrypted when seen from r/3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 09:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071435#M728104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T09:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from abap - issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071436#M728105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set job for SOST  transaction to send mail automaticly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 09:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071436#M728105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T09:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from abap - issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071437#M728106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for replying .. we have a job in place which picks up mails from sost and sends it .. we want to avoid anyone readingthe mail ... in the time duration before the scheduled job kicks off.#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e from the time the mail sits in sost to the time the job picks it up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 09:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071437#M728106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T09:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from abap - issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071438#M728107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the mail id in it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFUL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZMAIL                                                       .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data reciever type table of ADR6-SMTP_ADDR.&lt;/P&gt;&lt;P&gt;data subject type SO_OBJ_DES.&lt;/P&gt;&lt;P&gt;data text type bcsy_text.&lt;/P&gt;&lt;P&gt;data line type soli-line.&lt;/P&gt;&lt;P&gt;data send_request type ref to cl_bcs.&lt;/P&gt;&lt;P&gt;data document type ref to cl_document_bcs.&lt;/P&gt;&lt;P&gt;data recipient type ref to if_recipient_bcs.&lt;/P&gt;&lt;P&gt;data bcs_exception type ref to cx_bcs.&lt;/P&gt;&lt;P&gt;data sent_to_all type os_boolean.&lt;/P&gt;&lt;P&gt;data adresse type ADR6-SMTP_ADDR.&lt;/P&gt;&lt;P&gt;data mailflag(1) value space.&lt;/P&gt;&lt;P&gt;data dat(10).&lt;/P&gt;&lt;P&gt;data time(10).&lt;/P&gt;&lt;P&gt;data tfree(12).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write sy-datum to dat.&lt;/P&gt;&lt;P&gt;write sy-uzeit to time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*subject&lt;/P&gt;&lt;P&gt;subject = 'This is my Subject '.&lt;/P&gt;&lt;P&gt;line = ' I am the body of the message '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append line to text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Mail Send Mail out to external Mail Server .&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*create the send request&lt;/P&gt;&lt;P&gt;send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;/P&gt;&lt;P&gt;document = cl_document_bcs=&amp;gt;create_document(&lt;/P&gt;&lt;P&gt;i_type = 'RAW'&lt;/P&gt;&lt;P&gt;i_text = text&lt;/P&gt;&lt;P&gt;i_subject = 'Hi this is my subject' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*add document to send request&lt;/P&gt;&lt;P&gt;send_request-&amp;gt;set_document( document ).&lt;/P&gt;&lt;P&gt;*create recipient and add to send request&lt;/P&gt;&lt;P&gt;adresse = 'twinklezz2004@yahoo.co.in'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recipient = cl_cam_address_bcs=&amp;gt;create_internet_address(&lt;/P&gt;&lt;P&gt;adresse ).&lt;/P&gt;&lt;P&gt;send_request-&amp;gt;add_recipient( i_recipient = recipient ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*send mail now&lt;/P&gt;&lt;P&gt;sent_to_all = send_request-&amp;gt;send( i_with_error_screen = 'X' ).&lt;/P&gt;&lt;P&gt;if sent_to_all = 'X'.&lt;/P&gt;&lt;P&gt;Message s022(so).&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;catch cx_bcs into bcs_exception.&lt;/P&gt;&lt;P&gt;message e865(so) with bcs_exception-&amp;gt;error_type.&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Close Transaction.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*End of the Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*End of the Code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 09:55:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071438#M728107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T09:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from abap - issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071439#M728108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying Mahesh .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the code u sent .. I had tried using BCS earlier .. but unfortunately it does create a copy in sost and I could view the contents of mail as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 10:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071439#M728108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T10:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from abap - issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071440#M728109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for all ur help . I have found a temp. solution so should be fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 13:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-from-abap-issue/m-p/3071440#M728109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T13:55:13Z</dc:date>
    </item>
  </channel>
</rss>

