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: 'myname@mydomain.com'
password: 'MyPWord01'
to: 'myothername@myotherdomain.com'
message: mailMessage.
What appeared in the email content was this:
<html><body>This is test <a href='[http://pharo.org'>Pharo</body></html]
http://pharo.org'>Pharo</body></html>
Where did I go wrong?
Thanks.