Re: WOMailDelivery Error In Code
Re: WOMailDelivery Error In Code
- Subject: Re: WOMailDelivery Error In Code
- From: "Jonathan Fleming" <email@hidden>
- Date: Tue, 11 Mar 2003 01:27:15 +0000
From: Chuck Hill <email@hidden>
To: Jonathan Fleming <email@hidden>
CC: email@hidden
Subject: Re: WOMailDelivery Error In Code
Date: Mon, 10 Mar 2003 15:40:14 -0800
-WOSMTPHost"smtp.mac.com" ?
When I put a space in it won't allow me to include the "" quotes... I put
them in and they remove themselves on save, enter or moving to another
aurgument.
I've also tried runing the app without the quotes in the aurgument - no go.
I don't see a space after host:
-WOSMTPHost "smtp.mac.com"
Or, set it in code in Application.java:
setSMTPHost("smtp.mac.com");
If I use this option would this be correct:
protected String sMTPHost;
---------
//Application constructor
setSMTPHost("smtp.mac.com");
---------
//Application Body of code
public void setSMTPHost( String value ) {
sMTPHost = value;
}
Now for the obligatory stupid question:
as I don't know excactly how to impliment target aurguments in code I don't
really know where to put this other than here:
WOMailDelivery sharedInstance =
WOMailDelivery.sharedInstance(((Application)application()).sMTPHost());
but then that don't make sense...
So what do I do?
Jonathan
Chuck
Jonathan Fleming wrote:
From: Art Isbell <email@hidden>
To: email@hidden
Subject: Re: WOMailDelivery Error In Code
Date: Mon, 10 Mar 2003 12:40:21 -1000
On Monday, March 10, 2003, at 04:36 AM, Jonathan Fleming wrote:
I'm trying to send email from an error page by using WOMailDelivery and
I am getting this error:
Error: java.net.SocketException
Reason: Connection reset by peer: JVM_recv in socket input stream read
Have you set the WOSMTPHost property to an SMTP server's
fully-qualified host name either programmatically in Application, as an
entry in the app's Properties file, or as a launch argument?
Launch argument: -WOSMTPHost"smtp.mac.com" -DWORootDirectory=C:/Apple
If so, is this SMTP server reachable and functioning correctly?
Yes, I have pop accounts set up on this SMTP and they all work fine
Aloha,
Art
http://homepage.mac.com/aisbell/
_______________________________________________
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.
_________________________________________________________________
Use MSN Messenger to send music and pics to your friends
http://messenger.msn.co.uk
_______________________________________________
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.
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.
_________________________________________________________________
Chat online in real time with MSN Messenger http://messenger.msn.co.uk
_______________________________________________
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.