I have a problem with javamail trying to connect to the mailserver. I can send mails from another mailprogram like Thunderbird on my laptop, using authentication. I can send this mail to the outside world. Furthermore, I can send mail using javamail via an external mailserver (which can only be used for testing).
However, whenever I try to use Javamail, I get a "5.7.1 unable to relay" error message.
I have a user account "joe", with username "joe" and password "pwd. If the domainname is "somewhere", and the mailserver is "mail", then the logon should be:
transport.connect("mail", "somewhere\joe\joe", "pwd");
See
Any idea what I'm doing wrong here? I've tried other user accounts as well.
However, whenever I try to use Javamail, I get a "5.7.1 unable to relay" error message.
I have a user account "joe", with username "joe" and password "pwd. If the domainname is "somewhere", and the mailserver is "mail", then the logon should be:
transport.connect("mail", "somewhere\joe\joe", "pwd");
See
Any idea what I'm doing wrong here? I've tried other user accounts as well.