SMTPMail

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I used SmtpMail class sent email in asp.net before, no problem. Now I moved to Windows XP and Visual Studio .NET 2003. My ASP.NET app can not send out any email. The following exception is thrown:
System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.

I don't know how the sendusing configuration should be setup. Checked online help, found no useful info.
Any feedback is appreciated.

Thanx.

Bon
 
1) Make sure you set the smtp host name before calling Send
2) Make sure you have the latest CDO patches
3) Make sure the host isn't blocking relaying from your server

-Rob Teixeira [MVP]

bonbon said:
I used SmtpMail class sent email in asp.net before, no problem. Now I
moved to Windows XP and Visual Studio .NET 2003. My ASP.NET app can not send
out any email. The following exception is thrown:
System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.

I don't know how the sendusing configuration should be setup. Checked
online help, found no useful info.
 
bonbon said:
I used SmtpMail class sent email in asp.net before, no problem. Now I
moved to Windows XP and Visual Studio .NET 2003. My ASP.NET app can not send
out any email. The following exception is thrown:
System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.

I don't know how the sendusing configuration should be setup. Checked
online help, found no useful info.
Any feedback is appreciated.

Thanx.

Bon

As a side note, you can also use the OpenSmtp open source smtp module and
not have to bother with .NET's built in (wrapped) methods. Works really
well.

http://sourceforge.net/projects/opensmtp-net/
 
Thank you very much. Could you give me a little more detsils on this.

B

----- Rob Teixeira [MVP] wrote: -----

1) Make sure you set the smtp host name before calling Send
2) Make sure you have the latest CDO patches
3) Make sure the host isn't blocking relaying from your server

-Rob Teixeira [MVP]

bonbon said:
I used SmtpMail class sent email in asp.net before, no problem. Now I
moved to Windows XP and Visual Studio .NET 2003. My ASP.NET app can not send
out any email. The following exception is thrown:
System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.
online help, found no useful info.
 
1) make sure you set the SMTPMail.SmtpServer property to a valid mail server
before you call Send

2) pretty self-explanitory. check the msdn downloads area

3) most mail servers have a way of blocking relay to avoid unknown servers
from using it as a spam center. check with your Exchange administrators to
see if your web server is allowed to relay email through your Exchange
server.

-Rob Teixeira [MVP]

Bonbon said:
Thank you very much. Could you give me a little more detsils on this.

B

----- Rob Teixeira [MVP] wrote: -----

1) Make sure you set the smtp host name before calling Send
2) Make sure you have the latest CDO patches
3) Make sure the host isn't blocking relaying from your server

-Rob Teixeira [MVP]

bonbon said:
I used SmtpMail class sent email in asp.net before, no problem. Now
I
moved to Windows XP and Visual Studio .NET 2003. My ASP.NET app can not send
out any email. The following exception is thrown:
System.Runtime.InteropServices.COMException: The "SendUsing"
configuration
value is invalid. Checked
online help, found no useful info.
Any feedback is appreciated.
 
Back
Top