Hello,
Is it possible to use DEFINE MAIL and create HTML body in TEXT? I am using FWH 8.10.
DEFINE MAIL oMail ;
SUBJECT cSubject ;
TEXT cText ;
FROM USER ;
RECEIPT
Thank you,
Hello,
Is it possible to use DEFINE MAIL and create HTML body in TEXT? I am using FWH 8.10.
DEFINE MAIL oMail ;
SUBJECT cSubject ;
TEXT cText ;
FROM USER ;
RECEIPT
Thank you,
Darrell,
Don't use the TEXT. Create the HTML as a file, then specify the HTML file as an attachment, then it will appear as the body of the message.
Regards,
James
Thank you James
Hi James,
I would like to attach a file in addition to HTML file. I am getting a MAPI error 11 (attachment not found). Using the following code.
AADD( aStmnAttach, { cFText, cFText } )
AADD( aStmnAttach, { PA[25] + cPdf + '.pdf', PA[25] + cPdf + '.pdf' } )
_email( cEmail, cSubject, '', aStmnAttach )
//--------------------------------------------------------------
function _email( cTo, cSubject, cText, aEmFile )
DEFINE MAIL oMail ;
TO ALLTRIM(cTo) ;
SUBJECT cSubject ;
FROM USER ;
RECEIPT ;
FILES cEmFile
Hello.
You have to use full path.
Hello,
Thank you, the values contain the full path...
AADD( aStmnAttach, { cFText, cFText } ) ---------------------------------------------------> c:\upload\test.htm
AADD( aStmnAttach, { PA[25] + cPdf + '.pdf', PA[25] + cPdf + '.pdf' } ) -----------------> c:\upload\A0001.pdf
Darrell,
I have never tried both an HTML and another type of attachment at the same time. Have you tried two non-html attachments using your code? Does that work?
James
Hi James,
Yes, with a single attachment it works fine. Perhaps there is a limitation of one attachment?
Sincerely,