Example: smtp_translate
In the following example, the smtp_translate function translates the file testfile.txt.
smtp_translate("testfile.txt", "ABC",
RAW_CONTENT, "outfile.txt");
smtp_send_mail("SendMail",
"To=henry_tilden@northander_abbey.com",
"Subject=In defense of novels",
MAILOPTIONS,
"X–Priority: 3",
"X–MSMail–Priority: Normal",
"X–Mailer: Microsoft Outlook Express 5.00.2919.6700",
"X–MieOLE: Produced By Microsoft MimeOLE V5.00.2919.6700",
MAILDATA,
"AttachRawFile=outfile.txt",
LAST );