Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Using WOMailDelivery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using WOMailDelivery



> 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

References: 
 >Using WOMailDelivery (From: Aidas Dailide <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.