Solved

Getting an AS400 to send an email

Posted on 2002-03-19
5
1,256 Views
Last Modified: 2008-12-19
Hi,

Could someone point me in the right direction regarding getting an AS400 which runs OS400 to send an email to a pc running Outlook 98 which uses smtp as its email protocol.


Many Thanx

Notorious.................
0
Comment
Question by:Notorious
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 1

Expert Comment

by:MN_Dave
ID: 6880579
Have you tried something like this?

SNDDST TYPE(*LMSG) TOINTNET((myaddress@mydomain.com))
DSTD('Miscellaneous Message') MSG(TEST)
LONGMSG('This is a test email.')                    
0
 
LVL 13

Accepted Solution

by:
samic400 earned 100 total points
ID: 6890603
use SNDDST command. Using the following syntax to send out an e-mail message:

SNDDST TYPE(*LMSG) TOINTNET((<e-mail address here>)) DSTD(<subject>) LONGMSG(<message here>)  

you will need to have SMTP running.

STRTCPSVR cmd and start SMTP server.

Add a directory entry:

ADDDIRE  USRID(INTERNET GATEWAY)  USRD('Allow OV/400 to send INTERNET Mail')  SYSNAME(INTERNET)  MSFSRVLVL(*USRIDX)

PREFADR(NETUSRID *IBM ATCONTXT)

Press the Enter key.  Then, type the following:

CHGDSTA  SMTPRTE(INTERNET GATEWAY)

This should do it for you.

Also, STRMSF to make sure this is running too!






0
 
LVL 4

Expert Comment

by:rward
ID: 6906578
Another option to using SNDDST (which requires you to setup and configure the SMTP server on the AS/400) is to use SNDM which is an open source email utility that allows you to use any SMTP server.

The link to the freeware SNDM utility is: http://homepage1.nifty.com/uzaemon/#download

The utility does require you have the ILE RPG compiler on your machine.

Rob
0
 

Author Comment

by:Notorious
ID: 6965351
I wish to accept samic400's answer because his solution worked and he gave a good detailed response. rward's response would not of worked because my machine does not run an ILE RPG compiler.

Notorious..........

P.S Sorry for the late response
0
 

Author Comment

by:Notorious
ID: 6965354
Thank you. Sorry for the late response.

Notorious..........
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
Gain an elementary understanding of Blockchain technology.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question