Re: WOMailDelivery UnknownHostException: mailhost
Re: WOMailDelivery UnknownHostException: mailhost
- Subject: Re: WOMailDelivery UnknownHostException: mailhost
- From: MadBrowser <email@hidden>
- Date: Thu, 2 Oct 2003 13:15:42 -0700
My understanding is that WO tries to use a host called 'smtp' as the
default host to send mail. I think it is assuming that the hostname
'smtp' could be looked up in DNS and would resolve to
smtp.yourdomain.com and hopefully that would be valid.
I don't think it uses any settings from Mail or the Internet prefs,
since you can deploy on Solaris, Windows, etc... and they don't have
those apps.
I set my SMTP server explicitly in my code to MY SMTP server that I
have running on my co-located deployment server. It is a sendmail
server. The hostname isn't actually 'mail.host.com', I was just using
that as an example. That should be replaced with a value for a real
mail server.
I don't know if .Mac will allow you to send mail from a WebObjects app.
I think you need your own mail server... You should be able to run one
on your box...
-H
On Thursday, October 2, 2003, at 12:55 PM, Denis Stanton wrote:
Thank you for you help Hunter
I'm sure you are right about authentication, but I don't understand
how my two computers at home work without me having to think about
authentication, but the server located at the ISP is stuck on this.
There must be something in the configuration that tells WO where to
send.
The default value in each case is SMTPHost = smtp. Somehow WebObjects
gets a proper smtp address. Do you know if it uses the email settings
in Mail? The Internet System Preference also lists an Outgoing Mail
Server, so I guess that's the logical place to set it.
Your "mail.host.com" is a value I haven't tried, or is that specific
to your network? I haven't found anywhere that allows me to set user
and password inside my program.
I thought it might be a block on port 25 so I fired up Mail on the
server via Timbuktu and sent myself a message. That worked fine, and
presumably passed out through port 25
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.