The problem seems to be your SMTP server is not relaying to destination.
Try checking your destination and sending a test email from www.dnsdtuff.com
if it send the email successfully .. then the problem is at ur end. Need to turn on the SMTP replay at ur Email server.
However try this one as well :::
Anyway, to solve the problem here is what I did to enable SMTP Relaying on my test machine:
1) Go to: start > settings > control panel > Administrative Tools > Internet Information Services
2) Expand the " (local computer)" node
3) Right click on your SMTP server > go to "Properties"
4) Click "Access" tab
5) Under Relay Restrictions, click the "Relay" button
6) Click "Add"
7) Select "Single Computer" and enter IP address 127.0.0.1
8) Continue until the properties dialog is closed
Still not quite there. I started with that error message, got rid of it, ended up with Mailbox not available. Got rid of that, but now I see all my outgoing email is sitting in the queue subdiretory. How do I get SMTP to send it out of there? Or rather,
what do I need to do to not have it go to the queue and just get sent? I have complete control over the server where both my website and the smtp server are located. all I want to use this one for is to send a thank you email. I will not process any inbound
email at all.
My password must be written down, let's make sure it is secure. But of course, I misplaced the paper, so I have to keep asking for a new one.
I am getting the below error: "Failure sending mail" "Unable to connect to remote server" Please check the below code: using System.Net.Mail; using System.Net; MailMessage mailMsg = new MailMessage(); mailMsg.From = new System.Net.Mail.MailAddress(abcd@gmail.com);
mailMsg.To.Add(abcdefgh@mydomain.com); mailMsg.Subject = "Send Using console Mail"; mailMsg.Body = "Test mail"; SmtpClient smtpClt = new SmtpClient("smtp.gmail.com"); smtpClt.Credentials = new NetworkCredential("abcd@gmail.com", "mypassword"); smtpClt.Send(mailMsg);
I had been looking for this too and just found it; solved it by specifying a DeliveryMethod of PickupDirectoryFromIis. For this to work you need to have SMTP Server running.
For example:
Dim myMailClient As New System.Net.Mail.SmtpClient(AppSettings("SMTPHost"))
myMailClient.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis
Ather Ali Shaikh
Sr. System Analyst
GASCO
Abu Dhabi, UAE.
Hi, i have the same problem using virtual goddady windows server 2008, can you help me ? i was reading many posts and doing many configurations and nothing, my web application cant send emails.
The web application dont have problems with the internal code, because works on local server 2003 and local windows server 2008, only with godaddy virtual server dont send emails, and always show the erro: failure sending mail. Unable to connect to the remote
server.
any idea to solve this problem and send emails with my web application on the virtual goddady windows server 2008?? or is godaddy bloquingme this option????
senthil_os
Member
37 Points
69 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for unixpeter@hotmail.com
Sep 03, 2007 12:01 PM|LINK
you have to set smtp setting under
IIS-->smpt-->acess-->Access TAB-->Relay-->only the list below-->Add-->ip Address and granted..
Refer ::http://codebetter.com/blogs/peter.van.ooijen/archive/2006/04/05/142331.aspx
tabish82
Member
284 Points
61 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for unixpeter@hotmail.com
Sep 03, 2007 01:23 PM|LINK
Try with your antivirus turned off
The problem seems to be your SMTP server is not relaying to destination.
Try checking your destination and sending a test email from www.dnsdtuff.com
if it send the email successfully .. then the problem is at ur end. Need to turn on the SMTP replay at ur Email server.
However try this one as well :::
Anyway, to solve the problem here is what I did to enable SMTP Relaying on my test machine:
1) Go to: start > settings > control panel > Administrative Tools > Internet Information Services
2) Expand the " (local computer)" node
3) Right click on your SMTP server > go to "Properties"
4) Click "Access" tab
5) Under Relay Restrictions, click the "Relay" button
6) Click "Add"
7) Select "Single Computer" and enter IP address 127.0.0.1
8) Continue until the properties dialog is closed
Check this link this might help you
http://codebetter.com/blogs/peter.van.ooijen/archive/2006/04/07/142484.aspx
Regards,
Muhammad Tabish Sarwar.
senthil_os
Member
37 Points
69 Posts
Scroll in Text box multiline ..
Sep 04, 2007 11:35 AM|LINK
how to scroll and focus the text box to the last line...in case of multiline type ASP.Net C#..
as such in chat..
Sergei Shiko...
Member
2 Points
1 Post
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for unixpeter@hotmail.com
Sep 21, 2007 11:29 AM|LINK
thanks - that helped
JustWantAnAn...
Member
78 Points
164 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for unixpeter@hotmail.com
Apr 13, 2009 01:21 AM|LINK
Still not quite there. I started with that error message, got rid of it, ended up with Mailbox not available. Got rid of that, but now I see all my outgoing email is sitting in the queue subdiretory. How do I get SMTP to send it out of there? Or rather, what do I need to do to not have it go to the queue and just get sent? I have complete control over the server where both my website and the smtp server are located. all I want to use this one for is to send a thank you email. I will not process any inbound email at all.
senthil_os
Member
37 Points
69 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for unixpeter@hotmail.com
Jun 02, 2009 12:06 PM|LINK
shaikhather
Member
642 Points
165 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for unixpeter@hotmail.com
Mar 03, 2010 03:49 AM|LINK
I had been looking for this too and just found it; solved it by specifying a DeliveryMethod of PickupDirectoryFromIis. For this to work you need to have SMTP Server running. For example: Dim myMailClient As New System.Net.Mail.SmtpClient(AppSettings("SMTPHost")) myMailClient.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIisSr. System Analyst
GASCO
Abu Dhabi, UAE.
jeeva_kavi
Member
2 Points
1 Post
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for unixpeter@hotmail.com
Aug 05, 2010 07:16 AM|LINK
try this
client.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;
SmtpMail.Send(MailMsg)
bdmrd
Member
7 Points
33 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for unixpeter@hotmail.com
Nov 16, 2010 03:58 PM|LINK
I faced same problem.....
my outgoing email is in the C:\Inetpub\mailroot\Pickup subdiretory.
.please any idea or suggestion??
cesardgo
Member
23 Points
10 Posts
Re: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for unixpeter@hotmail.com
Jul 05, 2011 10:03 PM|LINK
Hi, i have the same problem using virtual goddady windows server 2008, can you help me ? i was reading many posts and doing many configurations and nothing, my web application cant send emails.
you can see my configuration here:
http://97.74.85.68/serverimages/01.jpg
http://97.74.85.68/serverimages/020.jpg
http://97.74.85.68/serverimages/021.jpg
http://97.74.85.68/serverimages/022.jpg
http://97.74.85.68/serverimages/03.jpg
http://97.74.85.68/serverimages/04.jpg
The web application dont have problems with the internal code, because works on local server 2003 and local windows server 2008, only with godaddy virtual server dont send emails, and always show the erro: failure sending mail. Unable to connect to the remote server.
any idea to solve this problem and send emails with my web application on the virtual goddady windows server 2008?? or is godaddy bloquingme this option????