Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Mailbox unavailable. The server response was: 5.7.1 <[DELETED]@gmail.com>... Relaying denied. IP name lookup failed [XXX.XXX.XXX.XX]
Posted
Updated 26-Mar-11 0:59am
v2
Comments
Wendelius 26-Mar-11 7:00am    
The email address and ip-address deleted. No need to reveal those to get answers to the issue.

1 solution

Assuming the mailbox does exists!

It can be because of various reasons. You need to look at them one by one.
Is the port open? Firewall permissions in place?
Further make sure you have configured SMTP configuration in Web.Config:
<system.net>
   <mailSettings>
     <smtp from="abc@somedomain.com">
       <network host="somesmtpserver" port="25" userName="name" password="pass" defaultCredentials="true" />
     </smtp>
   </mailSettings>
</system.net>

If needed, have a look at this Microsoft Video tutorial:
Use ASP.NET to send Email from Website[^]
Tutorials on sending Email in ASP.NET[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900