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: '<html><body>This is test  Pharo <> 
</body></html>').
ZdcSecureSMTPClient
sendUsingGMailAccount: 'myn...@mydomain.com' 
password: 'MyPWord01'
to: 'myothern...@myotherdomain.com' 
message: mailMessage.

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

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.

Reply via email to