View previous topic :: View next topic |
Author |
Message |
nbdtrjk1 Beginner
Joined: 12 Apr 2007 Posts: 76 Topics: 41
|
Posted: Thu May 21, 2009 10:57 pm Post subject: Sending Mails with HTML Format |
|
|
Hi All
I used below job to send the mail with HTML Format.The JOB went successfull and i got the mail also but in mail i am not getting any text(showing blank page). Can you please help me what is wrong in the below job
Code: | //STEP6 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO MVSHOST
MAIL FROM:<TEST@TEST.COM>
RCPT TO:<NBDTRJK@TEST.COM>
DATA
FROM:<TEST@TEST.COM>
TO:<NBDTRJK@TEST.COM>
Subject: Test message from MVS using SMTP (with HTML MIME)
MIME-Version: 1.0
Content-type: multipart/mixed;
boundary="simple boundary"
You have received mail whose body is in the HTML Format.
--simple boundary
Content-type: text/html
<font face="Courier" size="+2" color=blue>
This is Courier font in blue</font>
<br><br>
<font face="Arial" size="+3" color=red>
This is the Arial font in red</font>
--simple boundary--
/* |
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Fri May 22, 2009 10:40 am Post subject: |
|
|
nbdtrjk1,
I don't see the <html> tags . try this job
Code: |
//STEP6 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO MVSHOST
MAIL FROM:<TEST@TEST.COM>
RCPT TO:<NBDTRJK@TEST.COM>
DATA
FROM:<TEST@TEST.COM>
TO:<NBDTRJK@TEST.COM>
Subject: Test message from MVS using SMTP (with HTML MIME)
MIME-VERSION: 1.0;
CONTENT-TYPE: TEXT/HTML; CHARSET="ISO-8859-1";
CONTENT-TRANSFER-ENCODING: 7BIT;
<HTML>
<BODY>
<H2>AN IMPORTANT LINK TO LOOK AT!</H2>
HERE'S AN <A HREF="HTTP://MVSFORUMS.COM/HELBOARDS">HELPBOARDS</A>
</BODY>
</HTML>
.
QUIT
|
Kolusu |
|
Back to top |
|
|
|
|