RE: WOMailDelivery 5.3
RE: WOMailDelivery 5.3
- Subject: RE: WOMailDelivery 5.3
- From: Marius Strumyla <email@hidden>
- Date: Tue, 31 Aug 2004 10:58:08 -0400
Add *sharedInstance.sendEmail( aMailMsg );*
-----Original Message-----
From: email@hidden
[mailto:email@hidden]On Behalf Of Erwin
Sent: Tuesday, August 31, 2004 9:29 AM
To: WebObjects
Subject: WOMailDelivery 5.3
I read all archived messages about the subject, most of them are old
(2000,2001)
I tried to use WOMAilDelivery to send simple email from my WO app
1- I set up first the WOSMTPHost default in the Terminal
defaults write NSGlobalDomain WOSMTPHost "smtp.myisp.com"
2- I set the from (String) to(NSArray) subject and content fields
within a WOForm in a page (action : send
got the value from the request.....
3 -then I used the WOMailDelivery binding the Form action (and Submit
button) to send...
public WOComponent send(){
WOMailDelivery sharedInstance =
WOMailDelivery.sharedInstance();
String aMailMsg =
sharedInstance.composePlainTextEmail(from,to,null,subject,contents,true)
;
logString("email sent from : " + from);
return null;
}
In debugging mode, I see the sharedInstance and aMailMsg and I got the
logstring in the log.... but not the email !!!!!
I should have forgotten one step.... but where ?
_______________________________________________
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.
The information transmitted in this E-mail is intended only for the person
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons other
than the intended recipient is prohibited. If you received this in error,
please contact the sender and delete the material from any computer.
_______________________________________________
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.