473,385 Members | 1,267 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

SMTPMail

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

Nov 15 '05 #1
4 3118
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" <an*******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
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

Nov 15 '05 #2

"bonbon" <an*******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
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/
--
Rocky Moore
www.HintsAndTips.com


Nov 15 '05 #3
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" <an*******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
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

Nov 15 '05 #4
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" <an*******@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
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" <an*******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
> 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

>

Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jason | last post by:
Hi just a really quick simple question. Can you configure SmtpMail class in C# to use a different port? or does it have to be port 25? Thanks Jason
2
by: Leszek | last post by:
Hello, I have created a simple code to send emails using the MailMessage class and the SmtpMail.Send() method: MailMessage mail = new MailMessage(); mail.From = echidna@somewhere.com; //...
5
by: ElanKathir | last post by:
Hi ! I wrote one code for Send the E-mail, But that code have some problem , So please help me Here i paste my code and Error: Error: Server Error in '/Elan_Sample' Application. ...
2
by: Edward | last post by:
Hello, everybody, I tried to send Email out using ASP.NET, but failed, here is the code of sending: -------------------------------------------------------------------------------- Try...
1
by: Jens Øster | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
3
by: Jens | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
4
by: Aren Cambre | last post by:
Why does SmtpMail.Send throw an exception if the MailMessage's BodyFormat = MailFormat.Html? I've searched all over the place and cannot find a solution anywhere. I am running this on Windows XP...
2
by: kmbarz | last post by:
I'm trying to expand my horizons here by working through an ASP.Net book. When I do the example that uses: Line 55: Mail.From = "feedback@graymad.com" Line 56: ...
3
by: aslantifosi | last post by:
hi all, My question is about that i use a smpt server which is running on a different machine from my webserver machine. And i can authenticate with a user and password. I use SmtpMail class. i...
19
by: zdrakec | last post by:
Hello all: Using an "Imports System.Web.Mail" clause at the head of my module, and after executing the following code: Dim msg As New MailMessage msg.From = sender msg.To = recipient...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.