Re: [Pharo-users] GMail example html

2017-03-02 Thread Jeff Gray
Gah - nabble rendered my source. It was supposed to show a string with an
anchor tag embedded in it :-(




--
View this message in context: 
http://forum.world.st/GMail-example-html-tp4936801p4936805.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



[Pharo-users] GMail example html

2017-03-02 Thread Jeff Gray
I copied the example from Zodiac. Changed to my credentials and got a simple
message mailed out successfully.

Then I tried changing to an html message:

| mailMessage |
mailMessage := MailMessage empty.
mailMessage setField: 'subject' toString: 'Mail Test'.
mailMessage body: (MIMEDocument 
 contentType: MIMEDocument contentTypeHtml  
 content: 'This is test  Pharo <> 
').
ZdcSecureSMTPClient
sendUsingGMailAccount: 'myn...@mydomain.com' 
password: 'MyPWord01'
to: 'myothern...@myotherdomain.com' 
message: mailMessage.

What appeared in the email content was this:
This is test  Pharo <[http://pharo.org> 
http://pharo.org'>Pharo 

Where did I go wrong?
Thanks. 



--
View this message in context: 
http://forum.world.st/GMail-example-html-tp4936801.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.