Better Email Scripting

User avatar
DaveL17
Posts: 7323
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Better Email Scripting

Post by DaveL17 »

Wanted to pass along something I discovered about scripting the Better Email plugin API.

I wanted to add some additional formatting to messages sent as HTML and found the plugin is able to pass along in-line css formatting. For example, in one case I wanted to turn off text wrapping. This is easily done.

Code: Select all

message_text = "<p style="white-space:nowrap;">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</p>"
Works perfectly. That doesn't mean all style attributes will work, but I tested a few others and they all worked as expected. Nice!
I came here to drink milk and kick ass....and I've just finished my milk.

My Plugins and Scripts

Return to “Better Email”