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.


The following information was sent to me by someone named "delonge". Some helpful information (they sent):

Wanted to provide some additional information regarding a topic you have listed on SMTP and the SendUsing parameter.

Issue: Number=-2147220502(0x800403EA) App [1002]
Source=CDO.Message.1
Description= -2147220960[0x80040220]The "SendUsing" configuration value is invalid.

Additional Cause: The account running the code (usually a COM+ packaged component) which calls CDO (SMTP) does not have permissions to access the SendUsing configuration of the SMTP Metabase.

Additional Resolution: Run the adadd.vbs with the user account running the component code calling CDO.

 

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 ]
    • 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 ]
  • SMTPMail.SmtpServer    [ Reply ]
    • RE: SMTPMail.SmtpServer    [ Reply ]
      • RE RE: SMTPMail.SmtpServer    [ Reply ]
        • RE: RE RE: SMTPMail.SmtpServer    [ Reply ]
          • RE RE: RE RE: SMTPMail.SmtpServer    [ Reply ]
          • RE RE: RE RE: SMTPMail.SmtpServer    [ Reply ]
  • support    [ Reply ]
    • RE: support    [ Reply ]
  • The "SendUsing" configuration value is invalid.    [ Reply ]
    • RE: The "SendUsing" configuration value is invalid.    [ Reply ]
    • RE: The "SendUsing" configuration value is invalid.    [ Reply ]
  • The "SendUsing" configuration value is invalid.    [ Reply ]
    • RE: The "SendUsing" configuration value is invalid.    [ Reply ]
  • The server response was not available    [ Reply ]
  • server rejected one or more receipients    [ Reply ]
    • RE: server rejected one or more receipients    [ Reply ]
  • 4.2.10 "Could not access 'CDO.Message' Object - Part 8    [ Reply ]
  • SendUsing still fails after above notes    [ Reply ]
  • custom error    [ Reply ]
  • THANKS!    [ Reply ]
  • working with CDOSYS    [ Reply ]
    • RE: working with CDOSYS    [ Reply ]
  • System.web.mail.STMPmail    [ Reply ]
    • RE: System.web.mail.STMPmail    [ Reply ]
  • MailFormat.Html    [ Reply ]
  • Another reason to receive this error code    [ Reply ]
  • CDO Fix for exception    [ Reply ]
  • SendUsing Configuration Invalid    [ Reply ]
  • The "SendUsing" configuration value is invalid    [ Reply ]
  • program error    [ Reply ]
  • Send Using config value is invalid    [ Reply ]
  • Thank You!!    [ Reply ]