I've been struggling for a couple of weeks and was hoping someone might have a solution. I need to send an email in plain text only, with no HTML. The legacy system I'm working with parses data solely in plain text, and any formatting throws it off.
My current flow grabs an email, performs several actions, and then uses a compose action (payload) to format the email. The compose action correctly formats each item on a new line (Using \n), but when the email is sent, it arrives as one long paragraph. This causes the legacy system to mess up the parsing. However when reviewing the flow run itself it looks exactly how I need it. I've tried deleting the <p></p> from the html view of send an email action. I've also tried using <pre></pre> and while the line breaks are there the html email itself ruins the parsing.
Has anyone faced a similar issue or have any ideas on how to ensure the email retains its plain text formatting when sent? Any help would be greatly appreciated!
Plain Text Emails Only: Web Interface parses key/value pairs from plain text emails. HTML or RTF emails will cause errors.
Subject Line Handling:
Successfully processed emails with the specified subject line will be deleted from the server.
Emails causing an error will be forwarded to the error email address in Mercury Administration. If forwarding fails, the email will stay on the server.
Error Handling: Emails without the specified subject line will be forwarded to the error email address in Administration.
Email Content:
All content should be in the body of the email, whether encrypted or not.
Encrypted content must be Base64 encoded with the correct line block length.
Attachments will be ignored.
Special Characters: Avoid special characters in the email except in the email address (e.g., no #, $, %, ^, &).
Product Fields:
If not using the Product Description field for a description, enter the product code in both the Product Description and Product Code fields.
Web Order Form Fields: Include all fields in the generated email, even if they are unused.
Sample should look like this:
Name: Joe Customer Address1: 12345 Main Street Address2: City: Anytown State: IL Country: USA Zip Code: 60515 Phone Area Code: 630 Phone Prefix: 555 Phone Number: 7890 Phone Extension: 1028
CUSTOMER NAME: John Doe=0A=
E-MAIL ADDRESS: johndoe@example.com =0A=
AD: 123 Main Street Apt 4=0A=
=0A=
AD: Springfield=0A=, MA =0A=
DAYTIME TEL. #: (555)=0A-1234567=0A= EXT. =0A=
NIGHT TEL. #:
FAX #: (=0A)=0A-=0A=
Recipient Name: Jane Doe=0A=
Recipient Address: 123 Main street=0A=
=0A=