[CLOSED] How to send a multipart/mixed email from a fex?
Hi All,
I would like to be able to send a multipart email from within a fex. This would mean having text (as well as amper variable data) in the body of the email and also be able to send attachment(s) along with this same email.
I currently do this using Perl in my fexs, but, we are upgrading from 7.1.x to 7.7.x and the admins have decided Perl will not be installed on our new environment.
So.....
I am looking for alternate ways to send an email notification with or without one or more attachments.
I have been trying out the EDAMAIL option, but can only seem to get that to work with sending one piece of information (either one attachment or one inline piece of data).
I would rather be able to do this from a fex instead of using reportcaster.
If you have done anything like this, please let me know.
Thanks JimThis message has been edited. Last edited by: Kerry,
WebFocus 8.201M, Windows, App Studio
August 18, 2011, 02:54 PM
ABT
have you tried writing out values from one hold to DM variables and referring to them as amper vars? not exactly in line data grid with attachment, but maybe this is what you're looking for.
I would like to use EDAMAIL. If I could just include some text in the body and then attach a file, I would be good to go. Sounds pretty basic. Has anybody done this? Is there some documentation about EDAMAIL?
You can createa multipart email, but you will have to create the email structure yourself.
HEre is a simple way to have text as the body, and an attachment, but it relies on having UUENCODE.
FILEDEF MAILFILE DISK mailfile.txt
-RUN
-WRITE MAILFILE This is the body of the email
-WRITE MAILFILE
-WRITE MAILFILE Attached is the report.
-WRITE MAILFILE
TABLE FILE CAR
PRINT COUNTRY
ON TABLE HOLD AS MAILREPT FORMAT PDF
END
-RUN
! "C:\Program Files\GnuWin32\bin\uuencode" mailrept.pdf My_Report.PDF >> mailfile.txt
-RUN
EX EDAMAIL {email to},{email from},EDAMAIL test,,TXT,mailfile