• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 520
  • Last Modified:

send email from as400

I want to know how to make an AS400 program , prpbably a CL send email through a Notes server.  Any ideas?
0
mmcmillen
Asked:
mmcmillen
  • 6
  • 3
  • 2
1 Solution
 
samic400Commented:
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>)  

good luck!

 

                         

0
 
mmcmillenAuthor Commented:
are there any settings on the 400 that need done for routing?

0
 
samic400Commented:
you will need to have SMTP running.

STRTCPSVR cmd and start SMTP server.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
samic400Commented:
I'm assuming you have TCP/IP up and running.
0
 
mmcmillenAuthor Commented:
yes.  It looks like everything is running, and the command snddst says it worked but nothing happens. No email, no messages. Are there routing issues in the routing table?
0
 
samic400Commented:
nope. you need to enter some data in a dummy directory entry. let me find the info. and I'll post it here. Give some time to find it.
0
 
olidelCommented:
Hi,

this is a link that i found :

http://www.as400network.com/Resources/ClubTech/TNT400/bo400ng/as400smtpsetup.htm.

However this is not the one that I used to do almost the same thing. I will post later the link that I used (at this address I found the doumentation easier). You also have the IBM documentation.

Bye.
0
 
samic400Commented:
Here it is:

Add the 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.

Hope this does it.....


0
 
samic400Commented:
Also, make sure that the mail server framework (MSF) is running by executing the STRMSF command.
0
 
olidelCommented:
The address I told you about. There is only 6 steps to configure everything. But samic400 already told you about the main steps.

http://www.bytware.com/Support/MPlus/egateway.html

Good luck.

0
 
mmcmillenAuthor Commented:
Although I havent gotten it to work, I do know this is the right direction.  I think the problems I have now may be on our mail server side...  Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 6
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now