Hi Can i use arbitary host name to send email using java mail api or should there be an smtp sever running with that host name. i tried with arbitary host name and i got the exception.
javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Unknown SMTP host: myDomain.com; nested exception is: java.net.UnknownHostException: myDomain.com