IT Community - Software Programming, Web Development and Technical Support

The server rejected one or more recipient addresses. The server response was: 550 5.7

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


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-30-2008, 09:48 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile The server rejected one or more recipient addresses. The server response was: 550 5.7

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?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-31-2008, 11:18 PM
rrrajesh84in rrrajesh84in is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 399
rrrajesh84in is on a distinguished road
Default Re: The server rejected one or more recipient addresses. The server response was: 550

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.
__________________
.....................................
''''''
Rajesh''''''
Ants. . . . . . Like me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-01-2008, 10:34 PM
GDevakii GDevakii is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 138
GDevakii is on a distinguished road
Smile Re: The server rejected one or more recipient addresses. The server response was: 550

You can send this Code

Last edited by GDevakii : 02-01-2008 at 10:44 PM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-04-2008, 10:09 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: The server rejected one or more recipient addresses. The server response was: 550

Hi,
In the following lines only i m getting the exception.

SmtpMail.SmtpServer = "localhost";
SmtpMail.Send (email);
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 04:26 AM
Kirubhananth Kirubhananth is offline
D-Web Programmer
 
Join Date: Feb 2008
Location: My native is Madurai but now in Chennai
Posts: 61
Kirubhananth is on a distinguished road
Send a message via AIM to Kirubhananth Send a message via Skype™ to Kirubhananth
Smile Re: The server rejected one or more recipient addresses. The server response was: 550

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 10:04 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: The server rejected one or more recipient addresses. The server response was: 550

Hi,
Our Company have access over it.Still i used.
I solved it using SMTPClient request...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2008, 11:12 PM
Kirubhananth Kirubhananth is offline
D-Web Programmer
 
Join Date: Feb 2008
Location: My native is Madurai but now in Chennai
Posts: 61
Kirubhananth is on a distinguished road
Send a message via AIM to Kirubhananth Send a message via Skype™ to Kirubhananth
Smile Re: The server rejected one or more recipient addresses. The server response was: 550

Hi,

May i get the source code of that module. Just to analyse and learn.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-29-2008, 01:07 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: The server rejected one or more recipient addresses. The server response was: 550

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;
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 07:47 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0