View previous topic :: View next topic |
Author |
Message |
dhivya_tcs Beginner
Joined: 19 Apr 2007 Posts: 3 Topics: 2
|
Posted: Wed Jul 09, 2008 2:32 am Post subject: SMTPNOTE |
|
|
Hi, I have been trying to send a mail from JCL using SMTPNOTE. I wanted to know if in the 'TO' statement we can use a dataset that has the mailing list. Below is the JCL I have been using. I want to replace sanihasana@abcd.com with a dataset. Can that be done?
Code: |
//MAILIT EXEC PGM=IKJEFT01
//* include rexx code
//SYSPROC DD DISP=SHR,DSN=SANIHA.SYS.REXX
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
SMTPNOTE TO(sanihasan@abcd.com) -
SUBJECT(abcd) -
DATASET('saniha.sana(message dataset)' -
BATCH
END |
|
|
Back to top |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Wed Jul 09, 2008 7:55 am Post subject: |
|
|
I'm not sure about the syntax of providing multiple recipients. The IP Users Guide and Commands manual wasn't clear. You might try concatenating a dataset with a list of names like this: Code: | //SYSTSIN DD *
SMTPNOTE TO( -
// DD DSN=your.name.file.FB80,DISP=SHR
// DD *
) -
SUBJECT(abcd) -
DATASET('saniha.sana(message dataset)' -
BATCH
END | where your.name.file contains Code: | sanihasan@abcd.com -
someone.else@abcd.com -
|
_________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Jul 09, 2008 11:10 am Post subject: |
|
|
Watch the blocksize of the name file! To avoid any 'funnies' make it unblocked. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
sanihasana Beginner
Joined: 09 Jul 2008 Posts: 2 Topics: 0 Location: Bangalore
|
Posted: Wed Jul 16, 2008 9:51 pm Post subject: |
|
|
Can we give a 'to address' which is not in the format of s@b.com? can it be in the form of a.b.c?? _________________ Saniha |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Jul 17, 2008 11:45 am Post subject: |
|
|
Please start a new topic - do not add to old ones.
What does the manual say? _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
sanihasana Beginner
Joined: 09 Jul 2008 Posts: 2 Topics: 0 Location: Bangalore
|
Posted: Fri Jul 18, 2008 7:24 am Post subject: |
|
|
my above question was pertaining to the same topic. in the jcl, i wanted to know if in place of SMTPNOTE TO(sanihasan@abcd.com) i could put saniha.sana@abcd.com to saniha.sayed.sana
i had started this topic with the help of my friend's id coz that time i didnt have a id in mvs forums. _________________ Saniha |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Fri Jul 18, 2008 11:24 am Post subject: |
|
|
OK - I understand about the change in IDs. Thought you were 'hijacking' the thread!
Quickest way to get your answer would have been to try it. I have not tried any of this stuff but I would have thought that if one form of e-mail address is valid then any form of e-mail address is valid. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Fri Jul 18, 2008 3:15 pm Post subject: |
|
|
If your TO address has no @domain.com how will the server know where to send it? _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
|
|
|