Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

send email from as400

Posted on 2001-06-13
11
Medium Priority
?
512 Views
Last Modified: 2012-06-21
I want to know how to make an AS400 program , prpbably a CL send email through a Notes server.  Any ideas?
0
Comment
Question by:mmcmillen
[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
  • 6
  • 3
  • 2
11 Comments
 
LVL 13

Accepted Solution

by:
samic400 earned 400 total points
ID: 6186937
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
 
LVL 2

Author Comment

by:mmcmillen
ID: 6186972
are there any settings on the 400 that need done for routing?

0
 
LVL 13

Expert Comment

by:samic400
ID: 6187366
you will need to have SMTP running.

STRTCPSVR cmd and start SMTP server.
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 13

Expert Comment

by:samic400
ID: 6187478
I'm assuming you have TCP/IP up and running.
0
 
LVL 2

Author Comment

by:mmcmillen
ID: 6187563
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
 
LVL 13

Expert Comment

by:samic400
ID: 6188354
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
 
LVL 2

Expert Comment

by:olidel
ID: 6189221
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
 
LVL 13

Expert Comment

by:samic400
ID: 6190157
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
 
LVL 13

Expert Comment

by:samic400
ID: 6190688
Also, make sure that the mail server framework (MSF) is running by executing the STRMSF command.
0
 
LVL 2

Expert Comment

by:olidel
ID: 6190968
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
 
LVL 2

Author Comment

by:mmcmillen
ID: 6191305
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

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

With the evolution of technology, we have finally reached a point where it is possible to have home automation features like having your thermostat turn up and door lock itself when you leave, as well as a complete home security system. This is a st…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

598 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