Posted by Grant Foraker on March 22, 2007 at 11:16:40:
When EmailPtr came out I had several frustrating days of testing and put it away. With all the frecent fixes, I thought I'd try it again. I like to send simple reports as TXT files that show up at the recipients as attachments the way that the PDF shows up as. What I get is an email with no attachment and the body and detail lumped together.
-----------------------------------------------------------
Body Line 1
Body Line 2
Body Line 3
Text detail line in the attachment 1
Text detail line in the attachment 2
Text detail line in the attachment 3
---------------------------------------------------
From my work with SENDMAIL, I remembered that you can embed stuff like ...
--------------------------------------------------------------
LET TEXT$ = ''
PRINT (1) TEXT$
LET TEXT$ = "--messagesection"
PRINT (1) TEXT$
LET TEXT$ = "Content-Type: text/plain; charset=us-ascii"
LET TEXT$ = TEXT$ + '; name= TEXTFILE.TXT'
PRINT (1) TEXT$
LET TEXT$ = "Content-Transfer-Encoding: 7bit"
PRINT (1) TEXT$
LET TEXT$ = "Content-Description: Attachment"
PRINT (1) TEXT$
LET TEXT$ = 'Content-Disposition: attachment; filename= TEXTFILE.TXT'
PRINT (1) TEXT$
LET TEXT$ = ''
PRINT (1) TEXT$
-----------------------------------------------------------------
This seems to work as the TESTLOG shows ...
-----------------------------------------------------------------
DATE: THU, 22 MAR 2007 17:46:35 GMT
FROM: MARIAH@SSASD.COM
TO: GRANT@SSASD.COM
CC: MARIAH@SSASD.COM
SUBJECT: TEST A TEXT FILE SEND
-- SENDING BODY TEXT--
-- SENDING TEXT OUTPUT--
23 RECORDS PROCESSED
. QUIT Am I pushing the string again?
250 2.6.0
221 2.0.0 SSASD.COM SERVICE CLOSING TRANSMISSION CHANNEL
-----------------------------------------------------------------
However no message is delivered to the recipient or CC. Just disappears.