IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem in sending a mail using MVSMAIL


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kranthikumarb

Active User


Joined: 02 Jan 2009
Posts: 115
Location: Hyderabad

PostPosted: Fri Feb 20, 2009 1:26 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Feb 20, 2009 5:50 pm
Reply with quote

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
View user's profile Send private message
tarunjaiswal

New User


Joined: 20 Jan 2010
Posts: 2
Location: Pune,India

PostPosted: Thu Jan 21, 2010 10:40 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jan 21, 2010 10:43 am
Reply with quote

Quote:
...but still didn't work.
how bad, we all hope that You will be able to make it work soon icon_cool.gif

but, why not ask Your support about it?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 21, 2010 12:05 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Jan 21, 2010 2:31 pm
Reply with quote

Look for errors in the sysout of the SMTP started task .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Jan 21, 2010 6:10 pm
Reply with quote

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
View user's profile Send private message
tarunjaiswal

New User


Joined: 20 Jan 2010
Posts: 2
Location: Pune,India

PostPosted: Fri Jan 22, 2010 7:52 am
Reply with quote

Thank you all.
I have contacted the Support Group and waiting for their reply.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts mail attachment with excel format All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
Search our Forums:

Back to Top