cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

Plain Text Formatting with VPE email agent

David_G__33241
Nimbostratus
Nimbostratus

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

 

6 REPLIES 6

kunjan
Nimbostratus
Nimbostratus

Currently it is not supported. There is feature request been raised for this. May be you can raise a support case.

 

Colin_Stubbs
Nimbostratus
Nimbostratus

sigh Yet more feature fail. Love it.

 

jk20004
Altocumulus
Altocumulus

any news about the feature request in 11.6.0 HF5 or in 12.0?

 

David_Gill
Cirrus
Cirrus

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__J1
Cirrostratus
Cirrostratus

Hello,

I think it is now supported
* https://support.f5.com/csp/article/K55045050

Will try to make it work and post the answer here

 

Regards

Jad_Tabbara__J1
Cirrostratus
Cirrostratus

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 message

One-Time Password: <b> %{session.otp.assigned.val} </b><br><br>
Expires after use OR in %{session.otp.assigned.ttl} seconds

Jad_Tabbara__J1_0-1644362881625.png

The result is as expected "bold" for the OTP & two new lines were added because of the double <br>

Regards