Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem in sending a mail using MVSMAIL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
kranthikumarb

Active User


Joined: 02 Jan 2009
Posts: 114
Location: Hyderabad

PostPosted: Fri Feb 20, 2009 1:26 pm    Post subject: Problem in sending a mail using MVSMAIL
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: 7931
Location: Bellevue, IA

PostPosted: Fri Feb 20, 2009 5:50 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Jan 21, 2010 10:43 am    Post subject: Reply to: Problem in sending a mail using MVSMAIL
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

Site Director


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

PostPosted: Thu Jan 21, 2010 12:05 pm    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Jan 21, 2010 2:31 pm    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Thu Jan 21, 2010 6:10 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us