This project is read-only.

Trying to integrate MvcMailer

Topics: Troubleshooting
Jul 12, 2011 at 4:54 AM

Has anyone integrated MvcMailer with Orchard?  

I created a module and am trying to do so, but have run across "SMTP server requires authentication or client was not authenticated". I did have the Messaging/Email modules enabled, so I tried changing my mailMessage.To.Add(...) to be the e-mail user of the particular site, and then I got to the anti-forgery/token error message.  I disabled Messaging/Email modules to try and see if that would work, and then I changed AntiForgery (in module.txt) to "disabled", but neither worked and I was returned to the "SMTP server requires...." message.

I got this to work outside of Orchard in my original Mvc3 project which I am integrating. If viewing snippets of code I used would be helpful in diagnosing, rather than re-post everything I'll direct you to SO: