This blog refers ” How to config and send email from SAP with third party tool XAMPP

1. XAMPP installation & configuration part.

2.  SCOT settings from SAP end.


1. XAMPP installation & configuration part:

XAMPP is an easy to install Apache distribution containing MySQL, PHP, and Perl.

XAMPP stands for Cross-Platform (X), Apache (A), MySQL (M), PHP (P) and Perl (P). It is a simple, lightweight Apache distribution that makes it extremely easy for developers to create a local web server for testing purposes. Everything you need to set up a web server – server application (Apache), database (MySQL), and scripting language (PHP) – is included in a simple extractable file. XAMPP is also cross-platform, which means it works equally well on Linux, Mac and Windows. Since most actual web server deployments use the same components as XAMPP, it makes transitioning from a local test server to a live server is extremely easy as well. Web development using XAMPP is especially beginner friendly, as this popular PHP and MySQL for beginners course will teach you.

Installation of XAMPP:

We can download the free version of  XAMPP from web.

– Disable your anti-virus as it can cause some XAMPP components to behave erratically.

– Disable User Account Control (UAC). UAC limits write permissions to XAMPP’s default installation directory (c:/Program Files/xampp), forcing you to install in a separate directory

– Start the installation process by double-clicking on the XAMPP installer. Click ‘Next’ after the splash screen.

/wp-content/uploads/2015/06/1_735832.jpg

– Here, you can select the components you want to install. Choose the default selection and click ‘Next’.

/wp-content/uploads/2015/06/2_735836.jpg

– Choose the folder you want to install XAMPP in. This folder will hold all your web application files, so make sure to select a drive that has plenty of space.

/wp-content/uploads/2015/06/3_735837.jpg

– The next screen is a promo for BitNami, an app store for server software. Deselect the ‘Learn more about BitNami for XAMPP’ checkbox, unless you actually enjoy receiving promo mails!

/wp-content/uploads/2015/06/4_735838.jpg

-Setup is now ready to install XAMPP. Click Next and wait for the installer to unpack and install selected components. This may take a few minutes. You may be asked to approve Firewall access to certain components (such as Apache) during the installation process.

– Installation is now complete! Select the ‘Do you want to start the Control Panel now?’ checkbox to open the XAMPP control panel.

/wp-content/uploads/2015/06/5_735839.jpg

Understanding XAMPP Control Panel

The XAMPP control panel gives you complete control over all installed XAMPP components. You can use the CP to start/stop different modules, launch the Unix shell, open Windows explorer and see all operations running in the background.

Here is a quick overview of the Control Panel. For now, you only need to know how to start and stop an Apache server.

/wp-content/uploads/2015/06/6_735840.jpg

CONFIGURE MERCURY MAIL TRANSPORT SYSTEM -XAMPP

  1. Start Mercury (using the XAMPP Control Panel) and then open the admin panel.

1.JPG
2. First of all we disable the HTTP server of Mercury so that it doesn’t conflict with the apache:

  1. Configuration” -> “Protocol modules” .
  2. Disable the check “MercuryB HTTP web server” .
  3. I also disabled “Mercury IMAP4rev1 server” because I won’t need that one .
  4. Leave the window opened, we’ll need it immediately .

2.JPG

3. To be able to send external mail we have to disable “MercuryE SMTP end-to-end delivery client” in the same dialog and enable “MercuryC SMTP relaying client”. Click “OK” and restart Mercury!

3.JPG
4. Now let’s configure Mercury in general:

  1. Configuration” -> “Mercury core module”, tab “General”

we want to send from localhost, therefore we check if “localhost” is the value of “internet name for this system” and adjust that if not

  1. All other settings stay the same as they are already configured, but we’ll have a look to the checkboxes beneath:
  2. Disable all but “Send copies of all errors to postmaster”

4.JPG

3. Check under the tab “Local domains” if the entry “localhost (local host or server) localhost (internet name)” is there, if not, add it

5.JPG

4. Click “OK” and leave the dialog.

5. Next we focus on the MercuryS SMTP Server for outgoing emails:

  1. Configuration” -> “MercuryS SMTP Server”
  2. choose the tab “General” and add a wonderful name for your SMTP server under “Announce myself as”, simply fill in any name, I’ve chosen “CS SMTP”.
  3. under “Listen on TCP/IP port” fill in “25″, that’s the SMTP port
  4. add “127.0.0.1″ to “IP interface to use”, that’s the local IP of your pc. With the IP of the pc within the network (192.168.0.X) it doesn’t work (at least for me)

6.JPG 
6. Now we limit the access to the server so that only our local machine can access it:

  1. Under “Connection Control” click on “Add restriction” and add the IP range from “127.0.0.1″ till “127.0.0.1″ (it’s that simple, isn’t it?)…
  2. Select “Allow connections”…
  3. Leave all checkboxes deselected

with a click on “OK” we quit the dialog and we’re looking forward to the next one

7.JPG

7. Now we have the important one “MercuryC SMTP Client”

  1. Configuration” -> “MercuryC SMTP Client”
  2. To send mail to external addresses we need to have an external SMTP server. If you’re renting webspace somewhere and have mail included then you normally have access to a SMTP server. My webspace is hosted at HostEurope and I’ll use the SMTP of my domain. Without such an external server the whole thing won’t work because domain names won’t be resolved among other things. I’ve chosen this path because I didn’t feel like configuring around the whole day.
  3. Enter the address of your SMTP under “Smart host name”, for example “mail.meinedomain.com”
  4. Depending on the way you access the server fill the values under “Connection port/type”:  we finally fill in the “Login username” and the “Password” that normally is supplied by your webhost and we’ve nearly finished…
    1. For a “normal” SMTP that would probably be port 25 and “Normal (no SSL encryption)”

    2. I access my SMTP via SSL, that would be port 465 and “SSL encryption using direct connection”
    3. if you have other parameters simply try around a little.

8.JPG

After completing the XAMPP configuration test Mail :

Go to File Menu –> Click on Send mail message option:

9.JPG

Give the recipient email Address and subject then click on Send button:

10.JPG

XAMPP Configuration done!!!

2.  SCOT settings from SAP end.

– Create a User (SCOTUSER):-SU01

– Give the User Name and Email Address.

– In Logon Data: User Type : Service

13.JPG

– Assign the below parameters:

14.JPG

– Assign the Profile: S_A.SCON – SAP Connect All Auth.RFC User/SAP Phone.Centr.Arch

15.JPG

– Click on Save.

– Add the highlight parameter in Instance profile :

Profile Parameter (Instance) :

16.JPG

– Run the TX. SCOT for settings :

Give the below details as in below screen shot:

17.JPG

Click on settings tab: Assign the SFDN

18.JPG

Create a new Job :

19.JPG

Sending a mail :(SO01)

Click on New message:

20.JPG

Click on send button on Top menu bar

21.JPG

Now go to Tx SOST:

22.JPG

Status is changed to send:

23.JPG

Mail is sent to the recipient, confirmation from mail inbox.

24.JPG

Thank you.. 🙂 🙂 🙂

To report this post you need to login first.

5 Comments

You must be Logged on to comment or reply to a post.

  1. Juan Reyes

    Good maybe for old systems for new ones you can simply use SMTP AUTH that is now available in SCOT (where smtp relay is not an option).

    Regards, Juan

    (0) 
  2. Joshua Lacroix

    That’s allot of work, just install SMTP in windows and route with it.

    Also, to the newer systems, SMTP AUTH only works if the username and password is encrypted with TLS, if you are sending clear text, SAP will not work, so you are back to a relay

    (0) 

Leave a Reply