useMailSender method

void useMailSender(
  1. DVMailAddress sender
)

The From on mail sent through the email channel.

Required rather than guessed: a plausible default sender is a domain the application does not control, so the mail is delivered to spam by everyone who checks SPF and to nobody by everyone who checks DMARC.

Implementation

void useMailSender(DVMailAddress sender) {
  _mailSender = sender;
}