Solved

Getting an AS400 to send an email

Posted on 2002-03-19
5
1,254 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RPG to c# 3 399
AS/400 Backup to Disk 7 527
AS400 Logging Print device 2 86
IBM i - CL Array 5 125
The world seems to conceive of a curious bubble separating IT from “the business.”  More so than just about any other pursuit in the commercial world, people think of IT as some kind of an island.
This article discusses how to implement server side field validation and display customized error messages to the client.

730 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