This is a discussion on The server rejected one or more recipient addresses. The server response was: 550 5.7 within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, The server rejected one or more recipient addresses. The server response was: 550 5.7.1.How to overcome ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, The server rejected one or more recipient addresses. The server response was: 550 5.7.1.How to overcome this exception.While sending mail with attachment? |
| Sponsored Links |
| |||
| hi This is happening because your SmtpMail.SmtpServer is rejecting addresses. * Make sure all email addresses specified at MailMessage.To, MailMessage.Cc, MailMessage.Bcc and MailMessage.From are valid email addresses. * Make sure you have permissions to relay through the server. * Make sure the MailMessage.From has permissions to relay through the server. |
| |||
| The server rejects the mail because you have no privilage to access the SMTP server. One must require authentication to access this server. So if your company have any SMTP server then you may use it as a mean to send mails to the others. |
| |||
| Hi, Use the following in a button Click event MailMessage mail = new MailMessage(); mail.From = new MailAddress(fromTextBox.Text); mail.To.Add(toTextBox.Text); mail.Subject = subjectTextBox.Text; mail.Body = messageTextBox.Text; Attachment mailAttach = new Attachment(fileUpload1.PostedFile.FileName); mail.Attachments.Add(mailAttach); SmtpClient smtp = new SmtpClient("127.0.0.1"); smtp.Send(mail); Response.Write("Mail has been sent Successfully"); For this u have to include the namespace using System.Net.Mail; |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is the difference between Server.Transfer and Response.Redirect?.. | H2o | ASP and ASP.NET Programming | 4 | 11-22-2007 05:25 AM |
| Difference between Server.Transfer and Response.Redirect | Arun | ASP and ASP.NET Programming | 4 | 09-19-2007 10:52 PM |
| What is the range of addresses in the classes of internet addresses? | anbuchezhians | Java Programming | 1 | 08-06-2007 08:48 AM |
| What is the difference between Server.Transfer and Response.Redirect? Why would I cho | prasath | ASP and ASP.NET Programming | 1 | 07-19-2007 02:41 AM |
| Diff between Transaction-time and Server response-time | vadivelanvaidyanathan | Software Testing | 0 | 03-21-2007 07:29 AM |