Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pete Brown 47 posts 77 karma points
    Feb 26, 2010 @ 07:30
    Pete Brown
    0

    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

  • Pete Brown 47 posts 77 karma points
    Feb 26, 2010 @ 07:43
    Pete Brown
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft