crossvertise / ActionMailerNext

Fork of ActionMailer.Net, A easy to use library to generate emails with razor views
MIT License
42 stars 24 forks source link

Update SmtpMailAttributes.cs #6

Closed nickalbrecht closed 7 years ago

nickalbrecht commented 9 years ago

Checking From.Address will cause an error if From has never been set and is still null. Trying to explicitly create a new MailAddress object in the From field to satisfy this check by passing in null MailAddress(null) or an empty string MailAddress(string.Empty) will both cause errors as well, there should be no condition under which From.Address is ever null or empty.

Eonasdan commented 8 years ago

this has been fixed in PR #23