Closed Eonasdan closed 10 years ago
Your first point is kind of already implemented as suggested (if SetMailMethod
is not called, It will use SMTP by default in MailerBase
.)
MailAttributes = mailAttributes ?? MailMethodUtil.GetAttributes();
MailSender = mailSender ?? MailMethodUtil.GetSender();
You have a fair point with the MainAttributes thing, We'll look into it soon.
Thanks for your feedback.
ah ok. I had to look at the wiki for the usage instructions since it was different. Maybe the wiki should be modified to include a comment as such.
I also realized that the To
and From
want a MailAddress
instead of a string so I'm going to have to change any migrated function over anyway. So, adding MailAttributes
isn't going to be to much extra work.
I started using your nuget/repo since the original is no longer updated. You've made some breaking changes that I'd like to suggest that "put back"
SetMailMethod(...);
optional. I don't want to have to specify this in each action. I'd like to either have a place in the controller that overrides this or let it default to SMTP.MailAttributes
in front ofTo
,From
, etc. which addes to my setup time if I copy mail actions/view across applicationsSetMailMethod
is more annoying then the second point.Thank you keeping this project maintained.