WOMailDelivery UnknownHostException: mailhost
WOMailDelivery UnknownHostException: mailhost
- Subject: WOMailDelivery UnknownHostException: mailhost
- From: Denis Stanton <email@hidden>
- Date: Thu, 2 Oct 2003 22:36:26 +1200
I'm having trouble using WOMailDelivery to send email from my WO
application.
It works perfectly well on my development Mac in dev mode
I works on my test deployment Mac in deployment mode (this machine also
has WO development installed, if that makes a difference)
Move it to the deployment server and when I try to send a mail I get
java.net.UnknownHostException: mailhost
All computers are Macs running OS X. 10.2.6 (well one has 10.2.8, but
that one is OK ) and WebObjects 5.2.1
I thought the problem might be because the server had never been used
for email. I fired up Mail (this is a painful process on a remote
server through Timbuktu without true broadband at my end) and found
that the owner of the server had not set up password authentication on
the email accounts. I thought maybe WebObjects would use Mail's smtp
configuration, so I corrected the omission but it hasn't helped.
I added a line to the application class
System.out.println(" SMTPHost = " + this.SMTPHost());
On startup this tells me that the SMTPHost = smtp
I tried adding -WOSMTPHost=smtp.mac.com to the WebObjects instance
startup parameters. The change is duly reflected in the println
message but I still can't get the mail out. I did manage to get the
error message to change to "relaying denied 554 recipient address
rejected"
This apparently means that the From address does not match the smtp
authentication, except that I think they are the same.
Does anyone have any other clues? Does WebObjects use the mail
configuration, or am I wasting time with that line of investigation?
Denis
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.