Reply To: Pull data from form and create email

  • Isaac Harned

    Member
    July 27, 2023 at 2:51 pm
    Points: 8,900
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Ok, a little farther, MIMEType should make this HTML, but it still creates a plain text email. no errors encountered, and all setting in Outlook set to create in HTML.

    var eabJobNumber = this.getField(“EAB Job Number”).value;

    var currentDocument = this.path;

    var cMyMsg = “Click here to view the document”;

    // Compose the email subject and body

    var subject = eabJobNumber + ” Job Transmittal”;

    var body = cMyMsg;

    // Call the mailMsg method with MIMEType set to “text/html” for HTML email

    app.mailMsg({

    bUI: true,

    cTo: “address“,

    cSubject: subject,

    cMsg: body,

    MIMEType: “text/html”

    });