Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple example on how to send emails from Pharo using MandrillApp client
"Get client at!/~NorbertHartl/Mandrill"
"Set the api key only once."
MandrillClient apiKey: 'yourApiKeyGoesHere'.
(MandrillMessage new
addRecipient: (MandrillRecipient new email: '');
fromName: 'Bob';
fromEmail: '';
subject: 'Sending mails from Pharo';
text: 'This is the plain text body';
html: '<h1>But can have content in HTML!</h1>') send
"You can inspect the object returned to checked whether it succeeded or not."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment