Sending email



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Sending email

Postby antu » Tue Jul 22, 2008 11:46 pm

//MAILJOB JOB NOTIFY=&SYSUID
//S1 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSUT1 DD *
HELO ABC
MAIL FROM: <YOU@N1.XYZ.COM>
RCPT TO: <ABC@YAHOO.COM>
DATA
TO: <ABC@YAHOO.COM>
FROM: "FRED"<YOU@N1.XYZ.COM>
SUBJECT: HELLO
THIS IS A TEST MAIL.
/*
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//*

If I submit the above program it is sending a mail to ABC@YAHOO.COM from id YOU@N1.XYZ.COM.
But if I delete the below three lines

HELO ABC
MAIL FROM: <YOU@N1.XYZ.COM>
RCPT TO: <ABC@YAHOO.COM>


I am not able to receive the mail... Could anyone please let me know what is the use of the
below 3 lines...
antu
 
Posts: 9
Joined: Wed Jul 02, 2008 3:13 am
Has thanked: 0 time
Been thanked: 0 time

Re: Sending email

Postby dick scherrer » Wed Jul 23, 2008 12:14 am

Hello,

They are a required part of SMTP.

When you use some protocol, you have to conform to "their rules".

Could anyone please let me know what is the use of the below 3 lines...
You've seen the use of these lines - without them, the mail does not work.

Here is all of the info about SMTP:
http://www.faqs.org/rfcs/rfc821.html
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Sending email

Postby antu » Wed Jul 23, 2008 2:14 am

Thanks for the prompt reply.. The SMTP link was realy good...
antu
 
Posts: 9
Joined: Wed Jul 02, 2008 3:13 am
Has thanked: 0 time
Been thanked: 0 time

Re: Sending email

Postby dick scherrer » Wed Jul 23, 2008 2:58 am

You're welcome - good luck :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Sending email

Postby aditya_cap » Wed Aug 20, 2008 7:42 pm

can u tell me how to send the mail suppose for 10 times without repeating the step. is it possible ?
aditya_cap
 
Posts: 2
Joined: Wed Aug 20, 2008 7:34 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Sending email

Postby dick scherrer » Thu Aug 21, 2008 12:47 am

Hello,

You might try repeating the recipient 9 more times. . . I've not tried this, but it might be worth a test - i'd practice on "yourself".

Just curious, but why send the same e-mail to the same address 10 times?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Sending email

Postby aditya_cap » Thu Aug 21, 2008 3:58 pm

it is out of curiosity to execute a step for 'n' times without repeating the code, and sending mails happen to be the first thing that i wished to work upon.
if it is possible ....
aditya_cap
 
Posts: 2
Joined: Wed Aug 20, 2008 7:34 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post