View previous topic :: View next topic
|
Author |
Message |
kranthikumarb
Active User
Joined: 02 Jan 2009 Posts: 115 Location: Hyderabad
|
|
|
|
Hi
I am trying to send a mail using MVSMAIL. I am getting MAX CC = 0. But the mail has not been delivered. Please help me in sending mails using MVSMAIL. I found out the node using the command "TSO TASID" in the primary options menu. Here is the job
Code: |
//G70377J JOB ,,NOTIFY=&SYSUID,CLASS=B,MSGLEVEL=(1,1),MSGCLASS=X
//STEP1 EXEC PGM=IEBGENER
//SYSUT1 DD *
HELO ZOSYSTEM
MAIL FROM: <VALID EMAIL ID>
RCPT TO: <VALID EMAIL ID>
DATA
TO: <VALID EMAIL ID>
SUBJECT: TESTING MVSMAIL
HI,
THIS IS A TEST MAIL
/*
//SYSUT2 DD SYSOUT=B,DEST=MVSMAIL
//SYSIN DD DUMMY
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//
|
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Assuming that MVSMAIL is your site specific designator for the SMTP address space (since even Google doesn't find MVSMAIL as one word), your email is not correctly written. RFC 2821, which is the standard way to do SMTP emails, requires a period on a line by itself to end the email. You do not have the period. Your email will not be sent. |
|
Back to top |
|
|
tarunjaiswal
New User
Joined: 20 Jan 2010 Posts: 2 Location: Pune,India
|
|
|
|
I tried with SYSOUT=(B,SMTP) but still didn't work.
To make the mail RFC 2821 compliant,I used one step to compose email message by concatenating few PS files containing addresses,text ,attachement and required syntax for compliance.
______________
Tarun K. Jaiswal |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
...but still didn't work. |
how bad, we all hope that You will be able to make it work soon
but, why not ask Your support about it? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
but still didn't work |
Posting "it didn't work" is pretty much a complete waste of everyone's time.
You need to post what you submitted and what happened (using the "Code" tag).
As Enrico mentioned, your problem will likely require interaction with your local support to correct.
As with many things, finding one that works and cloning it is better than being completely creative. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Look for errors in the sysout of the SMTP started task . |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
I tried with SYSOUT=(B,SMTP) but still didn't work. |
Probably because the output class (B) is not set up for SMTP, or the started task name is not SMTP. These are both specific to your site and we cannot help you find them -- you must contact your site support group to get these values from them. |
|
Back to top |
|
|
tarunjaiswal
New User
Joined: 20 Jan 2010 Posts: 2 Location: Pune,India
|
|
|
|
Thank you all.
I have contacted the Support Group and waiting for their reply. |
|
Back to top |
|
|
|