MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sending a mail with attachment using XMIT
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Jun 16, 2003 11:48 pm    Post subject: Reply with quote

manojagrawal,

Sorry I missed this thread.

Just to clarify -
1. By using Kolusus's JCL I was getting subject and the attachment as message instead of attachment.

2. Then I modified, by trial and error without knowing what I was doing, and got subject and the attachment as attachment. If this is you requirement I can send my REXX/JCL

But I never tried Subject+message+Attachment. So if this is your requirement then I am helpless as I don't have M/F access nowadays.

Regards,
Diba.
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Thu Jul 31, 2003 2:32 am    Post subject: Reply with quote

Is it possible to set Paper Size as 'Landscape'?
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Aug 18, 2003 6:04 am    Post subject: Reply with quote

Today I am getting following message if I send any atachment -
Quote:

[Attachment denied by Firewall, Unsafe Attachment Type (type "(none)", filename "LCF133.DOC")]
Back to top
View user's profile Send private message Send e-mail
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Wed Sep 24, 2003 7:50 am    Post subject: Reply with quote

Hi Kolusu,
I tried your JCL and it works fine, except I am getting the following information on the email. What should I do to get only the subject. Thanks

BOUNDARY= "MYDELIM"
THIS MESSAGE IS IN MIME FORMAT
--MYDELIM
CONTENT-DISPOSITION: ATTACHMENT; FILENAME="TEST.TXT"
CONTENT-TYPE: TEXT/HTML
<PRE> <FONT FACE="ARIAL" SIZE=1>
Hi,
this is a test mail
bye
--MYDELIM
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Wed Sep 24, 2003 7:51 am    Post subject: Reply with quote

One more, can we add cc or bcc address ?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Sep 25, 2003 3:28 am    Post subject: Reply with quote

SureshKumar,

Try this

Code:

//SMTP EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSUT1 DD *
HELO SYSA
MAIL FROM: <KOLUSU@MVSFORUMS.COM>
RCPT TO: <SURESHKUMAR@HOTMAIL.COM>
RCPT TO: <cc@host.com>
RCPT TO: <bcc@host.com>
DATA
FROM: Complete name of sender
TO: Complete name of adressee
CC: Complete name of CC
BCC: Complete name of BCC
SUBJECT: The Subject
REPLY-TO: reply@host.com
YOUR MESSAGE
.
QUIT
//*
//SYSUT2 DD SYSOUT=(A,SMTP)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*


Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ml123
Beginner


Joined: 21 Apr 2004
Posts: 6
Topics: 1

PostPosted: Wed Apr 21, 2004 3:14 am    Post subject: Reply with quote

I don't have SMTP enabled in our mainframe.
How do I proceed sending mail from mainframe to PC?
What all to be installed before proceeding with this? Sad
Back to top
View user's profile Send private message
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Wed Apr 21, 2004 8:40 am    Post subject: Reply with quote

SMTP comes with TCP/IP. It runs as a started task and requires TCP/IP to be up. There will be some configuration required.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Apr 21, 2004 8:52 am    Post subject: Reply with quote

ml123, I have the same issue where I am. Our Systems Programmers will not activate the SMTP started task.

I rely on the e-mail output configuration from SAS for my batch work, and on REXX exec's that use standard TCP/IP socket calls to create the SMTP data stream. I believe that most of the common programming languages allow you to use TCP/IP sockets.
Back to top
View user's profile Send private message
have2hunt
Beginner


Joined: 19 Jul 2004
Posts: 1
Topics: 0

PostPosted: Mon Jul 19, 2004 5:03 pm    Post subject: Batch SMTP: Multiple recipients Reply with quote

I've been able to get SMTP through batch to work (MVS w/IEBGENER), but I'm unable to send to multiple recipients. When I receive the email I see the additional names in the TO: line, but the additional people in the TO: line are not receiving the email. I've tried delimiting with commas and putting the recipients on seperate lines.

What is the syntax for multiple recipients?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Jul 20, 2004 5:36 am    Post subject: Reply with quote

Have2hunt,

Make sure that the email address is enclosed in angle brackets(< >). check the following example to sending the email to multiple addresses

Code:
 
//SYSUT1 DD *
HELO SYSA
MAIL FROM: <KOLUSU@MVSFORUMS.COM>
RCPT TO: <EMAIL_ADDR1@HOST.COM>
RCPT TO: <EMAIL_ADDR2@HOST.COM>
RCPT TO: <EMAIL_ADDR3@HOST.COM>
RCPT TO: <EMAIL_ADDR4@HOST.COM>
RCPT TO: <EMAIL_ADDR5@HOST.COM>
RCPT TO: <EMAIL_ADDR6@HOST.COM>
RCPT TO: <EMAIL_ADDR7@HOST.COM>
DATA



Hope this helps..

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ml123
Beginner


Joined: 21 Apr 2004
Posts: 6
Topics: 1

PostPosted: Fri Jul 23, 2004 5:27 am    Post subject: Reply with quote

I am not able to send mail from mainframe to PC. I ran the JCL that is given. It ran with RC =0. But it is sending any mail from mainframe to pc. Should I change the settings? what to change and where to change?
Can some one please help me?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Jul 23, 2004 5:36 am    Post subject: Reply with quote

ml123,

On 2st of april you posted
Quote:

I don't have SMTP enabled in our mainframe.


Did you get that fixed?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ml123
Beginner


Joined: 21 Apr 2004
Posts: 6
Topics: 1

PostPosted: Fri Jul 23, 2004 5:43 am    Post subject: Reply with quote

As you said, We don't have any SMTP task enabled in our mainframe. TCPIP task is running in our mainframe. IS that sufficient to send mail?
Back to top
View user's profile Send private message
whizkid79
Beginner


Joined: 29 Sep 2004
Posts: 53
Topics: 14

PostPosted: Wed Sep 29, 2004 11:14 pm    Post subject: Reply with quote

Hi all,

What does HELO SYSA stand for? Is it of any significance or just a message?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group