mail sending problem in using smtp

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"
LVL 2
Dinesh SubramanianSenior Software EngineerAsked:
Who is Participating?
 
Dinesh SubramanianConnect With a Mentor Senior Software EngineerAuthor Commented:
problem was with setting the relay server.
0
 
Sanjay SantokiCommented:
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
 
Dinesh SubramanianSenior Software EngineerAuthor Commented:
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Jesus RodriguezIT ManagerCommented:
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
 
Jesus RodriguezIT ManagerCommented:
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
 
Dinesh SubramanianSenior Software EngineerAuthor Commented:
problem solved by adding the receipiants mail server address in the relay server
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.