Example: smtp_translate_ex

In the following example, the smtp_translate_ex function translates a file into SMTP protocol.

smtp_translate_ex(&ppsmtp, "testfile.txt",
    "ABC", RAW_CONTENT, "outfile.txt");
smtp_send_mail_ex(&ppsmtp, "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 );