> Hi,
>
> I've tried to send e-mail using WOMailDelivery, but I've never received
> my e-mail. Could someone send me some examples?
>
> Here is my code;
>
> application().setSMTPHost("smtp.xxxxx.com");
> WOMailDelivery mail=WOMailDelivery.sharedInstance();
> NSArray gavejai=new NSArray("email@hidden");
> String
> message=mail.composePlainTextEmail("email@hidden",gavejai,null,"WO","
> LALALAL",true);
>
> _______________________________________________
Hi, this is what I use :
String from = "email@hidden";
NSArray to = new NSArray("email@hidden");
sujet = "The subject of the message";
message = "The text";
try { WOMailDelivery.sharedInstance().composePlainTextEmail(from, to, null,
sujet, message, true); }
catch (Exception e) {
System.out.println("Exception dans WOMailDelivery : " +
e.getMessage());
}
This way, if you have an exception, you can figure what it is.
I hope this helps.
Yves
--
Yves Selliez
Styrion
http://www.styrion.com
--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden