<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Interoperability</title>
    <link>http://scn.sap.com/community/interoperability/blog</link>
    <description>The SAP Interoperability resource page contains the topics needed to further your technical interoperability integration/implementation needs. Currently this area focuses its resources on the following products and/or vendors: SAP NetWeaver, Microsoft Technologies such as Sharepoint/MOSS, IBM Websphere and other 3rd party vendors.</description>
    <pubDate>Mon, 19 Mar 2012 08:35:43 GMT</pubDate>
    <generator>Jive SBS 5.0.1.1  (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2012-03-19T08:35:43Z</dc:date>
    <item>
      <title>Generic Method for Sending Mails from SAP Systems</title>
      <link>http://scn.sap.com/community/interoperability/blog/2012/02/23/generic-method-for-sending-mails-from-sap-systems</link>
      <description>&lt;!-- [DocumentBodyStart:85ffdbd9-b68e-4775-b233-7b781f11803a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;h2&gt;&lt;span&gt;Problem&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span&gt;In most cases, from Java based (like Portal) or ABAP based (ERP, CRM,...) systems, sending email is easy by just setting the SMTP server IP address. But if you're using a hosted email service like us (we're using Google Apps), SMTP server doesn't allow to send emails directly. It requires you to set specific SMTP port, TLS and SSL as well as authentication. So, for example, for sending emails from ERP systems, you just have SMTP Server address and Port area for settings via SCOT transaction. &lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;span&gt;Solution&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;span&gt;To solve the problem, you can use IIS SMTP Server as an intermediate SMTP server between your SMTP server and local SAP System. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;ERP, Portal &amp;gt;&amp;gt; -- send direct mail -- &amp;gt;&amp;gt; IIS 6/7 &amp;gt;&amp;gt; -- send with Authentication-- &amp;gt;&amp;gt; SMTP Server &amp;gt;&amp;gt; recipient. &lt;/span&gt;&lt;/p&gt;&lt;h3&gt;&lt;span&gt;Procedure&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span&gt;1) Create an email account on your real mail provider. Eg. gmail account &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;2) Install the IIS SMTP Server. Installation method depends on the Windows Server version. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;3) Configure the IIS Server to forward messages using that account as follow: &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;3.1) GoTo IIS SMTP Virtual server -&amp;gt; Properties -&amp;gt; Access Tab&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://scn.sap.com/servlet/JiveServlet/showImage/38-61674-76889/smtp1.png"&gt;&lt;img alt="image" border="0" height="244" src="http://scn.sap.com/servlet/JiveServlet/downloadImage/38-61674-76889/220-244/smtp1.png" style="float: none;" width="220"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;3.2) Click Relay Button and chage the settings as follow:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://scn.sap.com/servlet/JiveServlet/showImage/38-61674-76890/smtp2.png"&gt;&lt;img alt="image" border="0" height="238" src="http://scn.sap.com/servlet/JiveServlet/downloadImage/38-61674-76890/244-238/smtp2.png" style="float: none;" width="244"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;You can specify only the servers that you want to be able to send email here by selecting Only the list below and adding your servers IP addresses.&amp;#160; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;3.3) Click Delivery Tab&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://scn.sap.com/servlet/JiveServlet/showImage/38-61674-76891/smtp3.png"&gt;&lt;img alt="image" border="0" height="244" src="http://scn.sap.com/servlet/JiveServlet/downloadImage/38-61674-76891/220-244/smtp3.png" style="float: none;" width="220"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;3.4) Click Delivery &amp;gt; Outbound Security button:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://scn.sap.com/servlet/JiveServlet/showImage/38-61674-76892/smtp4.png"&gt;&lt;img alt="image" border="0" height="244" src="http://scn.sap.com/servlet/JiveServlet/downloadImage/38-61674-76892/240-244/smtp4.png" width="240"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Select Basic Authentication and specify your Gmail account&amp;#160; and password. Check the TLS encryption if required (for gmail, it is required) &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;3.5) Click Delivery &amp;gt; Outbound connections button:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://scn.sap.com/servlet/JiveServlet/showImage/38-61674-76893/smtp5.png"&gt;&lt;img alt="image" border="0" height="132" src="http://scn.sap.com/servlet/JiveServlet/downloadImage/38-61674-76893/244-132/smtp5.png" width="244"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Set TCP port to 587 for Gmail or whatever it is in your case. 3.6) Click Delivery &amp;gt; Advanced button:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://scn.sap.com/servlet/JiveServlet/showImage/38-61674-76894/smtp6.png"&gt;&lt;img alt="image" border="0" height="236" src="http://scn.sap.com/servlet/JiveServlet/downloadImage/38-61674-76894/244-236/smtp6.png" width="244"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:85ffdbd9-b68e-4775-b233-7b781f11803a] --&gt;</description>
      <category domain="http://scn.sap.com/community/interoperability/blog/tags">sap_netweaver_platform</category>
      <pubDate>Thu, 23 Feb 2012 13:44:36 GMT</pubDate>
      <guid>http://scn.sap.com/community/interoperability/blog/2012/02/23/generic-method-for-sending-mails-from-sap-systems</guid>
      <dc:creator>Huseyin Bilgen</dc:creator>
      <dc:date>2012-02-23T13:44:36Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
      <wfw:comment>http://scn.sap.com/community/interoperability/blog/comment/generic-method-for-sending-mails-from-sap-systems</wfw:comment>
      <wfw:commentRss>http://scn.sap.com/community/interoperability/blog/feeds/comments?blogPost=61674</wfw:commentRss>
    </item>
  </channel>
</rss>

