• 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: Dev WO <email@hidden>
  • Date: Thu, 19 Feb 2004 17:00:16 +0100

Thanks guys for your inputs.
So the "isSent" didn't work because I had 2 WOSubmitButton, and even if they were link to different actions, I couldn't figure out why they would invoke the same action (in fact the action of the first button in the form).
So I remove the "edit form" button, and change it with a regular WOhyperlink, and now the form works (both 3 states).


I didn't have to set the SMTPHost, most probably because it uses the Mail server on the same server. Maybe it's required if it was deployed on another server that didn't have mail server on.

So everything works perfectly except that if I enter accentuated characters in the form, they're wrongly display in the mail I'm receiving... Any idea how to correct that? Maybe I could specify an encoding type somewhere?

Thanks a lot for your valuable inputs

Xavier

Xavier,

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

Not a huge deal, but it's actually better to use NSArray.EmptyArray instead of new NSArray(). This is slightly more efficient if you just need an empty array.


On Feb 18, 2004, at 10:42 AM, George Domurot wrote:

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.


--
Sincerely,
Robert Walker
Programmer
Bennett Technology Group
_______________________________________________
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.

  • Follow-Ups:
    • Re: WOMailDelivery
      • From: Jonathan Rochkind <email@hidden>
References: 
 >WOMailDelivery (From: Dev WO <email@hidden>)
 >Re: WOMailDelivery (From: George Domurot <email@hidden>)
 >Re: WOMailDelivery (From: Robert Walker <email@hidden>)

  • Prev by Date: request Error, what is mean?
  • Next by Date: Re: WOMailDelivery
  • Previous by thread: Re: WOMailDelivery
  • Next by thread: Re: WOMailDelivery
  • Index(es):
    • Date
    • Thread