• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOMailDelivery UnknownHostException: mailhost
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOMailDelivery UnknownHostException: mailhost


  • Subject: Re: WOMailDelivery UnknownHostException: mailhost
  • From: MadBrowser <email@hidden>
  • Date: Thu, 2 Oct 2003 10:09:13 -0700

I had a similar message. My problem was that my ISP blocks port 25 so I cannot use it to send... When I moved my machine to another network that allowed outbound 25, it was fine.

I set my SMTP host in my Application class:

setSMTPHost("mail.host.com");

Doesn't mac.com require SMTP to be authenticated? I.e. you have to pass user/pass to send via their servers?

Hunter

On Thursday, October 2, 2003, at 03:36  AM, Denis Stanton wrote:

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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: WOMailDelivery UnknownHostException: mailhost
      • From: Denis Stanton <email@hidden>
    • Re: WOMailDelivery UnknownHostException: mailhost
      • From: Denis Stanton <email@hidden>
References: 
 >WOMailDelivery UnknownHostException: mailhost (From: Denis Stanton <email@hidden>)

  • Prev by Date: Re: Session languages partially ignored with direct actions
  • Next by Date: Re: WOMailDelivery UnknownHostException: mailhost
  • Previous by thread: Re: WOMailDelivery UnknownHostException: mailhost
  • Next by thread: Re: WOMailDelivery UnknownHostException: mailhost
  • Index(es):
    • Date
    • Thread