send mail error when sending mail from web

The "SendUsing" configuration value is invalid.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The
"SendUsing" configuration value is invalid.

Source Error:

Line 41:
Line 42: 'Now, to send the message, use the Send method of the SmtpMail
class
Line 43: SmtpMail.send (objMM)
Line 44:
Line 45:

Source File: c:\inetpub\wwwroot\sendmailthink\WebForm1.aspx Line: 43

Please saywhat i have to do to solve this bug
-1
mitatasp
7/28/2005 10:33:58 AM
asp.net.getting-started 91979 articles. 4 followers. Follow

3 Replies
1149 Views

Similar Articles

[PageSpeed] 48

Please share some of your code... it's hard to find the bug without it;-)

Cheers,
Wes

P.S. I think you forgot to set the server......
-1
webbes
7/28/2005 11:32:17 AM

The SendUsing method determines whether the message is sent by a port or dropping in the pickup folder, as well as the address of the SMTP server.  If you're using a local SMTP server (on the same system) it's supposed to default to Localhost, though this may not function correctly.  It's always better to specify the SMTP server.

See:

http://www.systemwebmail.com/faq/4.2.2.aspx

Jeff


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
-1
jeff
7/28/2005 11:44:25 AM
Hay man the problem is solved ,i changed my server smtp adn all thing work fine.It run good  at  local server bu when i upload the doe on my web site it give me error for web config file change and also not view  fro mreomote error

The SendUsing method determines whether the message is sent by a port or dropping in the pickup folder, as well as the address of the SMTP server.  If you're using a local SMTP server (on the same system) it's supposed to default to Localhost, though this may not function correctly.  It's always better to specify the SMTP server.

See:

http://www.systemwebmail.com/faq/4.2.2.aspx

Jeff



http://forums.asp.net/1002432/ShowPost.aspx#1002485

1
mitatasp
7/30/2005 6:43:48 AM
Reply:

Similar Artilces:

Why do Sending SMTP Authenticated E-mail succeed using SmtpMail.Send() function but fail using SmtpClient.send() function ? Bugs in System.Net.Mail.SmtpClient when send a Authenticated E-mail?
I click btnOK button, the email can send OK, but click btnFail button,  the following error is displayed! why ? you can test the section code. The SMTP, username, password are valid!  Many thanks! "Syntax error, command unrecognized. The server response was: authentication failed,decode user password error" I have tested some other SMTP, somes is OK. I think there are some bugs with System.Net.Mail.SmtpClient when send a Authenticated E-mail with some SMTP!   //------------------------------------------.ASPX Code----------------------------------------...

Sending Email through System.Net.Mail is generating errors "Failure Sending mail
hi Sending Email through System.Web.Mail is working fine but System.Net.Mail is generating errors "Failure Sending mail  i treid in all possible ways but did't  pls help in giving a solution thanks & Regards vittal Maybe you can show us some code and post the exact error mesg as well (by looking at the value in ex.tostring)?My HomePage - www.findingsteve.net"It is more blessed to give than to receive." Acts 20: 35 (NIV, Bible)Progress - "Never discourage anyone...who continually makes progress, no matter how slow." Plato System.Web.Ma...

Sending mails with Net.Mail: no Email, No Error
hi,i'm using the system.net.Mail namespace to send an email from my application. when i send, the application does not fire any exception, neither does it send the email to my account.below is the code i'm using  Dim mmailMessage As New Net.Mail.MailMessage Dim mFrom As New Net.Mail.MailAddress(mailFrom) mmailMessage.From = mFrom Dim ll As String = "myname@ourmail.com" mmailMessage.To.Add(ll) mmailMessage.Subject = "Talk Concerns" mmailMessage.Body = "Testing Concerns One Two" Dim sm As...

Error handling sending mail (system.net.mail)
 Hi I did an aplication for send membership comunications and i want make a simple upgrade. I have a while for sent the messages to every recipients but i want in each recipient get if the mail has sent or failed, this is for sum that on a cell for the message but i dont know how get if the message go or failed?Im using VB. Somebody can help me on that?  You can't know for sure if the message was delivered or not. The only option would be to read any returned messages from the mail server. Website Design Darlington - http://mdssolutions.co.ukhttp://lesstha...

send mail error 550 You must check your mail from this IP or SMTP Auth before sending
The server rejected one or more recipient addresses. The server response was: 550 You must check your mail from this IP or SMTP Auth before sending to majed3681@hotmail.com Dim objMail As New MailMessage objMail.From = "webmaster@dotnetwebhosts.com" objMail.To = "webmaster@dotnetwebhosts.com" objMail.Cc = "majed3681@hotmail.com" objMail.Bcc = "postmaster@dotnetwebhosts.com" objMail.BodyFormat = MailFormat.Text objMail.Priority = MailPriority.High ...

Send mail via background thread (System.Web.Mail) : Error 401
I have a class which takes care of sending out a mail if a new blog entry is posted or a new forum topic has been initiated...the part which sends mail goes something like this...  Public Class UserClass '... Public Sub Notify() Dim message As New MailMessage() message.To = "arun.jayapal@contoso.com" message.From = "IT@contoso.com" message.BodyFormat = MailFormat.Html message.Subject = "KNIT Notification" Try Dim objResponse As WebResponse Dim objRequest As Web...

System.Net.Mail.SmtpClient.Send() Error: An invalid character was found in the mail header
hi all!please help!I wanted to make an automatic email when I create user by CreateUserWizard. So I configured SMTP, then in properties of the wizard indicated textfile for message and wrote simple subject "registration" but I have an exception (like in subj).I even tried to set the subject in event handler for "emailsending" event. Same exception.  What is wrong? How could I fix it?  Here us some info from stack:[FormatException:An invalid character was found in the mail header.] System.Net.BufferBuilder.Append(String value, Int32 offset, Int...

Not able to send mail to Hotmail Account. Mail getting queued up in the mail server.
Hi, I have created a mobile web page in VS2005, which has the functionality of sending emails. With the code I have written, I am able to send mails to all the other accounts except Hotmail account. The email is getting queued up. This I was able to find out  from the Inetput\mailroot\queue folder. I am not able to find out why this is happening and what should be done to solve this. Any help on this would be appreciated. Thanks ASMJ      Check the SMTP logs to see what's happening.  Also post at www.iis.net, the forums there cover SMTP and i...

System.Net.Mail.SmtpClient.Send() Error: An invalid character was found in the mail header #2
Hello  I get This error when trying to send mailMessage. The problem wasn't there until today. Until today I developed my webside on Windows XP machine, Today I moved it to a new machine of Windows Vista Ultimate and the same Code on vista produce an error (same as you mentioned) Need Help.   Thanks, Hi,What character set are you using? Try setting the encoding to Encoding.UTF8;   Narmatha Balasundaramhttp://reflexangle.blogspot.com I tried to set the subject and body encoding to UTF8 with no luck.  The thing is that the code works fine on Windows ...

Sending mail through System.Web.Mail
Hi guys, long time no talk :) Ok, here's a question. I'm making a newsletter that will be sent to people on a mailing list. The System.Web.Mail object is helpful for this but I need to know one thing. I want to send the newsletter in a way that, when the recipient receives it, the "From" reads "Bensaude Turísmo" and not "geral@bensaude.pt". In other words, I want to be able to imitate the "Name <Email>" way of sending email, but I haven't found out how to do that with System.Web.Mail. Up until now, I keep getting a parse error ...

system.net.mail not sending out mail
I recently upgraded from a 2.0 framework to 3.5 using c#.  When I upgraded, I needed to change the way I was using MailMessage.  But now for some reason it doesn't work.  Am I missing something?Below is my code:using System.net.Mail; MailMessage msg = new MailMessage();msg.To.Add(toList);msg.CC.Add(ccList = null ? "" : ccList);msg.From = new MailAddress(fromList);msg.Subject = subject;msg.Body = body;msg.IsBodyHTML = true; SmtpClient smtp = new SmtpClient(smtpServer);smtp.Send(msg); I'm passing all the value from my web.config file inside AppSettings.What ...

Suddenly started getting "client was not authenticated " error while sending mail
Hi,I was able to send mail with no trouble before few days.Then due to some reason, i Formatted pc &  re-installed visual studio & IIS Now when i try to send mail, i get this error.The SMTP server requires a secure connection or the client was not authenticated.In my web.config file i write<mailSettings>      <smtp from="myemail@gmail.com">        <network host="smtp.gmail.com" port="587" userName="myemail" password="xxxx" defaultCredentials="false&qu...

.net 2 beta 2 - System.Net.Mail
Hi guysI'm using the System.Net.Mail namespace in .net version 2, beta 2, to send out some HTML formatted e-mails.However, for some reason when the e-mail are sent out some of the full stops from the e-mail are removed.For example, part of the e-mail contains this code<img src="http://www.avonandsomerset.police.uk/images/grey_box_bottom.gif" alt="">But this is what the code is like when the e-mail source code is viewed<img src="http://www.avonandsomerset.police.uk/images/grey_box_bottomgif" alt="">Is this a known bug in beta 2? If so, where can I view a list of known bugs an...

Sending Mail Using SYSTEM.WEB.MAIL...
Hello: I have been experiencing a very strange problem that was not there before in the past. When I use the system.web.mail class to send e-mail... most of the messages trying to be sent result in an error while some go through very strange... In my code I specify a valid remote mail server, a valid to and from e-mail addresses on the same domain... Some of the e-mails go through some do not... here is the error below from the e-mails that do not go through... Send failure: System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetIn...

Web resources about - send mail error when sending mail from web - asp.net.getting-started

Sending/receiving relationship - Wikipedia, the free encyclopedia
A sending/receiving relationship is one in which a public school district sends some or all of its students to attend the schools of another ...

U.K. Woman Faces 20 Months For Creating Fake Facebook Accounts, Sending Herself Abusive Messages
A woman in Cornwall in the U.K. came up with a creative way to use Facebook to accelerate a family spat, and it earned her 20 months in prison. ...

CHVRCHES - Dear guys, Please stop sending us emails like... - Facebook
Dear guys, Please stop sending us emails like this. This is one of the more polite ones. Other recent classics include "I'm going to give her ...

Facebook Sending Perez Hilton More Traffic than Google, Driving 3.3% of All US Traffic to Video Sites ...
For media companies evaluating their Facebook marketing strategy , here’s an interesting sign of the times: web analytics firm Hitwise is reporting ...

A better experience for sending Tweets and DMs - Twitter Blog
... panel New Tweet panel in da...... Skip to main content Blog Got an account? Sign in Search form Search &nbsp A better experience for sending ...

How to Go From Working 60 Hours a Week to 40 By Sending 2 Emails a Week
I’m convinced 95% of cubicle workers who work over 60 hours a week constantly can cut it down to 40-45 hours by sending 2 emails a week to their ...

Live Emoji - sending GIF Animation Emoji for Zoosk,Skype,Kik,Whatsapp,Facebook Messenger Etc. on the ...
Get Live Emoji - sending GIF Animation Emoji for Zoosk,Skype,Kik,Whatsapp,Facebook Messenger Etc. on the App Store. See screenshots and ratings, ...


Cynthia McKinney - responds to Obama on sending troops into Afghanistan - Debate Answer - YouTube
Cynthia McKinney, Green Party Presidential candidate, responds to Barack Obama on his support for sending troops into Afghanistan. Based on his ...

Great-grandmother 'would die' before sending kids to Italy
Great-grandmother 'would die' before sending kids to Italy

Resources last updated: 11/22/2015 5:57:17 AM