Saturday 15 May 2010

How to user erlang gen_smtp to send html-formatted email? -


Gn_smtp can be found here

Whatever I want, Such as & lt; Strong> Hello & lt; / Strong>

See gen_smtp mmm test for an example:

  email = {& lt ; & Lt; "Text" & gt; >, & Lt; & Lt; "Html" & gt; >, [[& Lt; & Lt; "From" & gt; >, & Lt; & Lt; "Me @ Example.com" & gt; & Gt;}, {& lt; & Lt; "to" & gt; & Gt;, & lt; "you@example.com" & gt; & Gt;}, {& lt; & Lt; "topics" & gt; & Gt;, & lt; & Lt; "This is an examination" & gt; & Gt;}], [], & lt; & Lt; "This is a & lt; strong & gt; HTML & lt; / strong & gt; message with some non-ASCY characters; ¿\ R \ nwhere there is also a & gt; & Gt;} Encoded = Encoded (Email)    

No comments:

Post a Comment