Forum Discussion
Plain Text Formatting with VPE email agent
When email is sent from the VPE email agent, it is formatted as Plain Text. I would like to add a carriage return-line feed after the first period in the following example:
Logon by %{session.logon.last.username}. Client Platform is %{session.client.platform}.
I have tried \r\n with and without both single and double quotes but whatever I type simply becomes part of the email body. If there is no way to do this can I somehow change it to html or is that a completely differntly field in the message header?
APM 11.5.1
Thanks
- kunjanNimbostratus
Currently it is not supported. There is feature request been raised for this. May be you can raise a support case.
- Colin_StubbsNimbostratus
sigh Yet more feature fail. Love it.
- jk20004Cirrus
any news about the feature request in 11.6.0 HF5 or in 12.0?
- David_GillCirrus
I had a requirement to send an email with an attachment using a bash script and in doing so discovered that the email message could also contain html formatting. I used Mark's HTTP Super SIDEBAND Requestor to call the script to send the email. Once you have this setup you can simply call it from an irule event. Definitely not as easy as filling out a box in the VPE but it works well once the heavy lifting is done.
Here is a sample script which simply paints a number blue – I think it demonstrates the capabilities…
!/bin/bash (echo "Subject: Your Secret Password " echo "To: toaddress@company.com" echo "Content-Type: TEXT/HTML; charset=US-ASCII" echo "" echo "" echo "" echo "Your password is: 12345" echo " ") | sendmail toaddress@company.com
- Jad_Tabbara__J1Cirrostratus
Hello,
I think it is now supported
* https://support.f5.com/csp/article/K55045050Will try to make it work and post the answer here
Regards
- Jad_Tabbara__J1Cirrostratus
It is working as expected, I added the "html code" and the sent email with VPE SMTP Email Agent.
The result was as expected ! The formating was following the HTML syntax put in the messageOne-Time Password: <b> %{session.otp.assigned.val} </b><br><br> Expires after use OR in %{session.otp.assigned.ttl} seconds
The result is as expected "bold" for the OTP & two new lines were added because of the double <br>
Regards
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com