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

-1
vittal
11/28/2007 7:58:00 AM
asp.net.getting-started 91979 articles. 3 followers. Follow

3 Replies
1167 Views

Similar Articles

[PageSpeed] 28

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
-1
ngaisteve1
11/28/2007 9:42:38 AM

System.Web.Mail  you need the 1.1 of the .net framework more info at http://www.systemwebmail.com/
System.Net.Mail you need the 2.0 or greater of the .net framework more info at http://www.systemnetmail.com/

Hope the info helps


Regards
Jeremy
If this has helped 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
jeremyh
11/28/2007 9:48:51 AM

Hi,

Based on my understanding, you got the error message "Failure Sending mail" when you send email. If I have misunderstood you, please feel free to let me know.

As far as I know, there are several reasons can bring on arising this kind of error.

1. The SMTP server is wrong.

2. The port of SMTP server is wrong.

3. "cc" and "bcc" address = "from" address.

If you want the correct code, please try this: http://forums.asp.net/t/971802.aspx

If it can't help you out, you can post some source-code about it and I will follow it up if you don't mind.

Hope this can help you.

0
vincehsu
11/29/2007 9:07:17 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 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...

System.Net.Mail.SmtpException: Failure sending mail
Hi, I written the code in .aspx.cs mail send button click event  and i import name space using System.Net.Mail;  String strSubject = "Subject of the mail”;String strMailbody="Body of the mai"; Try{MailMessage Message = new MailMessage();Message.To.Add(new MailAddress("xxxx@domain.com"));Message.From = new MailAddress("xxxx@domain.com"); Message.CC.Add(new MailAddress("xxxx@domain.com"));Message.CC.Add(new MailAddress("xxxx@domain.com")); Message.Subject = strClaimSubject;Message.Body = strClaimMailbody;Messag...

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...

System.Net.Mail.SmtpException: Failure sending mail
 Hi All,i am sorry if i posted this in wrong forum. but i am stuck have no idea why i keep getting this error . i have mail server with my hosting company. its called mail.mysite.com ( mysite is my domain name. i do have the real domain name even thou i am displaying here). when a customer places a order online, he/she gets an order confirmation email saying that the order has been placed along with their confirmation number. now thats where the error is coming and displays the customer an custom error page to go back and try again. if they do , it finally gives them the order confirmat...

.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...

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 ...

Sending Email 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 ...

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...

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 ...

About: how can i send a MIME(Text und Html Format) Mail by System.Net.Mail und .Net 2.0
Helle to all, I hope that someone can help me. I need to implement a programm to send newsletters. The newsletter Format can be Html, Text and MIME(Html and Text). when using CDONTS library man can set MailFormat = MIME. But i use System.Net.Mail and there are only text or html Format. Can someone tell me how can i use System.Net.Mail to send a MIME Mail? Thanks Best Regards Pinsha perhaps this link can help:  http://systemnetmail.com/faq/3.1.3.aspxIn this world there are 10 types of people, those that know binary and those who don't....

[:'(] system.net.mail with Exchange Server
Dear all,  I have been fighing this since this morning, somebody please help!! Here's my code, I get emailMessage.DeliveryNotificationOptions = 0 it goes to Catch block but all of the exceptions has this error ex.InnerException.InnerException' is not declared or the module containing it is not loaded in the debugging session. We are using Exchange Server 2003 SP2. 1 Dim emailMessage As MailMessage = New MailMessage() 2 Dim arRecipients() As String 3 Dim i As Integer 4 5 emailMessage.From = New MailAddress("email@domain.com") 6 ...

Sending an Email with system.net.mail -- problem with strings and body of the email.
Hi,I am trying to email the contents of a contact form such that the email body looks like this:Last name: Smith First name: John Comment: Test comment. I am using the MailMessage object.I am storing the textbox values in strings://assign values from form to variables   string first = textboxFirst.Text;   string last = textboxLast.Text;   string comment = textboxComment.Text;and then combining the strings into one string for my MaiMessage.Body property.  //create message body from textbox variables     string message = "Last Name: "  + l...

Sending Email with System.Net.Mail
I Wants to Send Email using System.Net.Mail without editing / Adding New Tag in web.config.How can i set Host in cs file.  Thanks & Regards,Mac try the following linkds dotnetslackers.com/Community/blogs/haissam/archive/2007/03/19/Sending-Email-Using-System.Net.Mail.aspx weblogs.asp.net/scottgu/archive/2005/12/10/432854.aspx aspnet.4guysfromrolla.com/articles/072606-1.aspx  using System;using System.Web.Mail;using System.Data;using System.Data.SqlClient;using System.IO;using System.Configuration;/// <summary>/// Summary description for EmailClass/// </sum...

Web resources about - Sending Email through System.Net.Mail is generating errors "Failure Sending mail - asp.net.getting-started

Resources last updated: 12/19/2015 6:53:10 AM