View previous topic :: View next topic |
Author |
Message |
emem Beginner
Joined: 19 Mar 2012 Posts: 4 Topics: 1
|
Posted: Mon Mar 19, 2012 9:25 pm Post subject: Send an email in PDF format without using xmitip |
|
|
Hi,
Is there a way of sending emails using MIME and without using xmitip ?
I'm currently using this JCL but the PDF file seems to be corrupted.
Code: |
****** ***************************** Top of Data ******************************
000001 HELO XXXXXX
000002 MAIL FROM:<xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
000003 RCPT TO:<xxxxxxxxxxxxxxxxxxxxxx>
000004 DATA
000005 DATE: DD MMM YY HH:MM:SS +08:00:00
000006 From: <xxxxxxxxxxxxxxxxxxxxxxx>
000007 TO: xxxxxxxxxxxxx
000008 Subject:TEST PDF
000009 MIME-Version: 1.0
000010 Content-type: multipart/mixed; boundary="newline"
000011 SYSTEM GENERATED MESSAGE
000012 --newline
000013
000014 This is a test email.
000015 --newline
000016 Content-Type: application/PDF; name="MAIL1.PDF"
000017 Content-Transfer-Encoding: 7bit
000018
000019 This is a test input.
000020 --newline--
000021 QUIT
****** **************************** Bottom of Data ****************************
|
Thanks in advance. |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue Mar 20, 2012 9:11 am Post subject: |
|
|
Are you using SAS at all to create the PDF document and to email it? |
|
Back to top |
|
|
emem Beginner
Joined: 19 Mar 2012 Posts: 4 Topics: 1
|
Posted: Tue Mar 20, 2012 9:56 am Post subject: |
|
|
Hi Superk,
On using MIME itself, is there a way to directly convert it ? Or I would need TXT2PDF conversion before it can be successfully sent as a PDF file ?
Thanks. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Mar 21, 2012 10:21 am Post subject: |
|
|
emem,
Do you have SMTP up and running on your system?
Kolusu |
|
Back to top |
|
|
emem Beginner
Joined: 19 Mar 2012 Posts: 4 Topics: 1
|
Posted: Thu Mar 22, 2012 3:55 am Post subject: |
|
|
Hi Kolusu,
Yes SMTP is running on our system.
I'm able to send a PDF file using xmitip but I would like to know if there is other way to accomplish it without using a xmitip. Perhaps there is a specific command to convert a text file to pdf format and diretly email it ?
Thanks. |
|
Back to top |
|
|
taltyman JCL Forum Moderator
Joined: 02 Dec 2002 Posts: 310 Topics: 8 Location: Texas
|
|
Back to top |
|
|
emem Beginner
Joined: 19 Mar 2012 Posts: 4 Topics: 1
|
Posted: Sun Mar 25, 2012 9:30 pm Post subject: |
|
|
Hi Taltyman,
I can see form the comments the JCL to run. Please can you provide me with the working JCL sample to convert text file to PDF format and send it as an email attachment ?
Thanks for the help |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Mar 26, 2012 11:49 am Post subject: |
|
|
Why can you not create the JCL from the skeleton in the comments? The only bits missing are site dependent and your own requirements dependent. If somone had a working job based on the JCL in the comment then you would have to change the exact things that you would have to change using the skeleton. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
|
|