View previous topic :: View next topic
|
Author |
Message |
sivasaras
New User
Joined: 29 Sep 2007 Posts: 93 Location: chenna/i-
|
|
|
|
Hi,
Kindly let me know how to add the below group id in my jcl
Quote: |
upload_data@bulkmail.com |
- this group has 3 persons mail ids
Please guide me.
Thanks
Saras |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Kindly let me know how to add the below group id in my jcl |
Put it where it belongs using an editor. . .
If you don't post something to work with, we can't provide much help. . .
At least you need to post the jcl and control statements you are trying to use and explain when you try this.
I suspect someone is running e-mail on your system and your course of action might be to clone one that works and change for your specifics. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Handling of groups is done by the mail server software -- NOT by the mainframe SMTP software. As long as the group name is in a valid format for email addresses, you can treat a group name just like any other email address. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Robert,
Yup, i probably should have mentoined that. . . .
d |
|
Back to top |
|
|
baramesh
New User
Joined: 20 May 2008 Posts: 25 Location: bangalore
|
|
|
|
//IEBGENER JOB ACCT,'DATA COPY',MSGCLASS=J,CLASS=A
//NORMRC EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *,LRECL=80
HELO <SYSTEMID>
MAIL FROM:<USERID@SYSTEMID>
RCPT TO:<USERID@SYSTEMID>
DATA
From: <USERID@SYSTEMID>
To: <USERID@SYSTEMID>
Subject: Test Mail
TEST MAIL FROM MAINFRAME
.
QUIT
/*
//SYSUT2 DD SYSOUT=(B,SMTP),LRECL=80
//SYSIN DD DUMMY |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
baramesh, you answered the wrong question. There was no request on how to send an email -- presumably the original poster already knew how to do what you posted. The question was about using a group name instead of individual name in the RCPT TO: field.
Further, your sample code is completely wrong unless you point out that SYSOUT=(B,SMTP) is site-dependent. The B would not work in my shop since we use class 9 for emails -- other sites may use something else, such as M. The SMTP is the name of the started that that is executing SMTP, and that may be changed by the site as well (my site has two of them, for example -- SMTP and SMTPNFK).
Further, the LRECL=80 on the SYSOUT=(B,SMTP) is absolutely wrong. If you check RFC 2821 and RFC 2822 on the Internet standards for email, you will find that the LRECL can be as big as 998 bytes (1000 is the limit but there must be an allowance for end of line and carriage return terminators). |
|
Back to top |
|
|
|