• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOMailDelivery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOMailDelivery


  • Subject: Re: WOMailDelivery
  • From: Jonathan Rochkind <email@hidden>
  • Date: Wed, 18 Feb 2004 10:29:56 -0600

Change the value of 'isSent'? You mean your own instance variable "isSent" which you are manually setting to true at the end of that method? If your line of code "isSent = true" is never being reached, that means either that method is never being called at all, or an exception is thrown in that method before that line is reached. I'd expect you'd have noticed the exception.

I'm confused about what you expect to be happening, and what actually is happening. If even after you remove the line that sends mail, the line "isSent = true;" is never reached, then it kind of sounds like your action method is never being called at all.

--Jonathan

At 4:51 PM +0100 2/18/04, Dev WO wrote:
Thanks George,
I'll try that in a few minutes.
I don't know if this is the only thing that doesn't work, as even if I
remove the WOMailDelivery part, it doens't change the value of
isSent...
I'll try and I'll keep you in touch

Thanks

Xavier



 Xavier: Make sure you have set your SMTPHost in your Application class:

	setSMTPHost(SMTPHostName);

 You may want to also test sending new NSArray() instead of null for
 otherPeople.

 -George

 On Feb 18, 2004, at 9:00 AM, Dev WO wrote:

Hi,
I have created a form in order to allow user to "talk" with us, and I
want people to be able to "send" it without requiring a client
program.
So I'm trying to use WOMailDelivery to send it server-side.
But it looks like it doesn't work.
The Web App is deployed on an Xserve running Panther server and the
default mail server (Postfix).
Here's the action I've created to send the form and also to change a
conditional (isSent) inside the component to display a "thank you"
message. But none work:
----
public WOComponent sendCommentaire()
{
WOMailDelivery wom = WOMailDelivery.sharedInstance();
String myMessage = "nom:" + personName + personLast + "\n" +
"email:"
+ personEmail + "\n" + "adresse:" + personPostal + "\n" +
personPostal2
+ "\n" + personZIP + personCity + "-" + personCountry + "\n" +
"fonction:" + personFonction + "-" + "entreprise:" + personCompany +
"\n" + "subject:" + personSubject + "\n" + "commentaires:" +
personComment;
NSMutableArray destinataires = new NSMutableArray();
destinataires.addObject("email@hidden");
wom.composePlainTextEmail("email@hidden", destinataires, null,
"Commentaires depuis le site", myMessage, true);
isSent = true;
return null;
}


 ----

 If anyone can point me to the mistake, thanks a lot

 Xavier
 _______________________________________________
 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.
_______________________________________________
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.
_______________________________________________
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.

References: 
 >WOMailDelivery (From: Dev WO <email@hidden>)
 >Re: WOMailDelivery (From: George Domurot <email@hidden>)
 >Re: WOMailDelivery (From: Dev WO <email@hidden>)

  • Prev by Date: Re: WOMailDelivery
  • Next by Date: Re: [Hints] Publishing Web Service through secure HTTP (SSL)
  • Previous by thread: Re: WOMailDelivery
  • Next by thread: Re: WOMailDelivery
  • Index(es):
    • Date
    • Thread