• Post Reply Bookmark Topic Watch Topic
  • New Topic

Domain of sender address does not exist

 
vinitha simon
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I get the following exception when I try to send a mail.l'm doing TDD, the code works perfectly fine through Dumbster for unit testing. But, it fails when deployed, I get tha following Exception

Domain of sender address Company@abcdef123 does not exist

I'm not sure if I'm missing out on anything... here is the exception

nested exception is: com.sun.mail.smtp.SMTPSendFailedException: 553 5.1.8 ... Domain of sender address Company@abcdef123 does not exist at com.people.sample.Email.sendMail(Unknown Source) ... 156 more Caused by: com.sun.mail.smtp.SMTPSendFailedException: 553 5.1.8 ... Domain of sender address Company@abcdef123 does not exist at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388) at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583) at javax.mail.Transport.send0(Transport.java:169)



Any help is appreciated!!

TIA,
[ August 22, 2008: Message edited by: vinitha simon ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Umm, are you really asking why an address that contains an invalid domain would cause an error message stating that it contains an invalid domain?

That it doesn't cause a problem in unit testing doesn't surprise - it probably uses mock objects that don't actually attempt to send an email, and thus doesn't encounter the problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!