?
Solved

mail sending problem in using smtp

Posted on 2011-05-12
6
Medium Priority
?
239 Views
Last Modified: 2012-05-11
in my windows application, i am accessing the smtp of a server, and sending mail using the system.net.mail, i could able to send mail to email address which does not have a .(dot) in the address section. (ie) - i can send mail to xxx@yyy.com, but when i try to send mail to xxx.yyy@zzz.com.. smtp mail sending is failed and and error is thrown.

the error message is:
"Mailbox unavailable. The server response was: 5.7.1 Unable to relay for xxx.yyy@zzz.com"
0
Comment
Question by:Dinesh Subramanian
  • 3
  • 2
6 Comments
 
LVL 11

Expert Comment

by:Sanjay Santoki
ID: 35744846
Hello,

Based on the error issue most likely seems with the receipt end. Please be sure the email address xxx.yyy@zzz.com exist on the appropriate mail server.

Regards,
Sanjay Santoki
0
 
LVL 2

Author Comment

by:Dinesh Subramanian
ID: 35745320
yes it exists... and it was working earlier also.
I mean sending to email ids of xxx.yyy@zzz.com was working earlier....
Please suggest
0
 
LVL 13

Expert Comment

by:Jesus Rodriguez
ID: 35756364
Check if your SMTP server have the right to relay mails to this domain (zzz.com) or try to send to another address on the same domain
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Expert Comment

by:Jesus Rodriguez
ID: 35756388
Try to add this line to your code to configure your SMTP Delivery method (2nd line)

  Dim myMailClient As New System.Net.Mail.SmtpClient(AppSettings("SMTPHost"))
 myMailClient.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis
 myMailClient.Send(strFromEmail, strTo, strSubject, strBody)
0
 
LVL 2

Accepted Solution

by:
Dinesh Subramanian earned 0 total points
ID: 35894740
problem was with setting the relay server.
0
 
LVL 2

Author Closing Comment

by:Dinesh Subramanian
ID: 35921395
problem solved by adding the receipiants mail server address in the relay server
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question