System.Web.Mail FAQ

Complete FAQ Listing


4.2.2 The "SendUsing" configuration value is invalid. Printer Friendly   Email This FAQ   Discuss

Typically this exception has to deal with the following line of code (or I should say ABSENCE of the following line of code):
SmtpMail.SmtpServer = "mail.your-domain.com"
By default, if SmtpMail.SmtpServer is not set, System.Web.Mail is supposed to use localhost as the default property. However, for some reason this doesn't appear work. If you are using the local SMTP Service to send emails, you may try the following values:
"127.0.0.1"
"localhost"
"the_machine_name_here"
"the_real_dns_name_here"
"the_machine_IP_Address_here"
That should fix it.
 

Discuss This FAQ Item
Got a question? Another Suggestion? Want to post your solution? Discuss it below.
New Post
  • Help    [ Reply ]
    • RE: Help    [ Reply ]
      • RE RE: Help    [ Reply ]
        • RE: RE RE: Help    [ Reply ]
    • RE: Help    [ Reply ]
      • RE RE: Help    [ Reply ]
      • RE RE: Help    [ Reply ]
        • RE: RE RE: Help    [ Reply ]
          • RE RE: RE RE: Help    [ Reply ]
            • RE: RE RE: RE RE: Help    [ Reply ]
        • RE: RE RE: Help    [ Reply ]
    • RE: Help    [ Reply ]
      • RE RE: Help    [ Reply ]
    • RE: Help    [ Reply ]
  • filedialogbox    [ Reply ]
  • filedialogbox    [ Reply ]
  • Help with EMail Feedback form    [ Reply ]
    • RE: Help with EMail Feedback form    [ Reply ]
    • RE: Help with EMail Feedback form    [ Reply ]
  • The server rejected one or more recipient addresses    [ Reply ]