Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def send_email
mg_client ="YOUR-API-KEY")
message_params = {
from: '',
to: IronWorker.payload['email'],
subject: 'Your daily developer articles!',
text: email_body()
result = mg_client.send_message('', message_params).to_h!
message_id = result['id']
message = result['message']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment