Better Email Scripting

Posted on
Sat Jan 23, 2021 8:19 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Better Email Scripting

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] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests