Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCX-24 Add newMessage method to MailSender class #20

Merged
merged 1 commit into from
Feb 4, 2020
Merged

Conversation

dolfinus
Copy link
Contributor

@dolfinus dolfinus commented Feb 3, 2020

Now you can split auth and sending message via SMTP:

def mailSender = new MailSender(execution).connect()

messageList.each { Map msg ->
  mailSender.newMessage().setRecipient(msg.recipient).addTextPart(msg.body).send()
}

@dolfinus dolfinus requested a review from sugarfree1 February 3, 2020 13:05
@dolfinus dolfinus force-pushed the HCX-24 branch 2 times, most recently from b57940e to e13461f Compare February 3, 2020 13:06
@dolfinus dolfinus merged commit aaf2f63 into master Feb 4, 2020
@dolfinus dolfinus deleted the HCX-24 branch February 4, 2020 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants