com/libs/mtwin/mail/smtp [en]
Differences between version EMPTY and #4122
0a1,19
> ====== mail.Smtp ======
>
> ''mtwin.mail.Smtp'' is a minimal smtp client, that you can use to send an email via a smtp host .
>
> An usual use of ''mail.Smtp'' to send a text/plain and text/html email will be :
>
> <code haxe>
> var p = new mtwin.mail.Part("multipart/alternative");
> p.setHeader("From",from);
> p.setHeader("To",to);
> p.setDate();
> p.setHeader("Subject","A Haxe e-mail !");
> var h = p.newPart("text/html");
> var t = p.newPart("text/plain");
> h.setContent("<html><p>some html ...</p></html>");
> t.setContent("some plain text...");
>
> mtwin.mail.Smtp.send( "smtp.host.com", from, to, p.get() );
> </code>
\ No newline at end of file
| Ver | Date | User | Action |
|---|---|---|---|
| #8139 | 2010-02-23 03:59:44 | Abscissa | View | Diff |
| #6932 | 2009-09-02 05:22:37 | exint | Restored to version #4122 |
| #6931 | 2009-09-02 05:18:28 | exint | View | Diff |
| #4122 | 2008-08-29 01:33:49 | baurel | View | Diff |
Previous | Next