Sending mail fails from runway contact form - System.NullReferenceException
The contact form says all is great, but the mail is never sent. I checked the umbraco log table and this is what I get:
umbraco.library.SendMail: Error sending mail. Exception: System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.library.SendMail(String FromMail, String ToMail, String Subject, String Body, Boolean IsHtml)
Umbraco 4.0.3
I have the smtp server set up in web.config. However, I never see any connection attempt at my mail server (mail server is on a different machine, relaying from this account is allowed).
First, the company name that was in the ascx is never sent along. Second, (the cause of the error) the name and email address were both null, despite having been configured in the macro call. Not sure what's up there.
Sending mail fails from runway contact form - System.NullReferenceException
The contact form says all is great, but the mail is never sent. I checked the umbraco log table and this is what I get:
umbraco.library.SendMail: Error sending mail. Exception: System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.library.SendMail(String FromMail, String ToMail, String Subject, String Body, Boolean IsHtml)
Umbraco 4.0.3
I have the smtp server set up in web.config. However, I never see any connection attempt at my mail server (mail server is on a different machine, relaying from this account is allowed).
Any idea what to look for?
Pete
ok, found it. The runway stuff is a little odd.
First, the company name that was in the ascx is never sent along. Second, (the cause of the error) the name and email address were both null, despite having been configured in the macro call. Not sure what's up there.
Pete
is working on a reply...