• 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 sendEMail result?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOMailDelivery sendEMail result?


  • Subject: Re: WOMailDelivery sendEMail result?
  • From: Kieran Kelleher <email@hidden>
  • Date: Wed, 14 Sep 2005 18:22:21 -0400

Yes, sometimes the cvs download may not work from sourceforge ..... heavy traffic I guess, I don't know.

Project Wonder is really the biggest and most elaborate collection of open-source WebObjects frameworks, projects, etc. For a newbie, it can be a bit daunting, but it can save you a lot of effort once you poke around and get familiar with it enough to put it to use. I have found ERExtensions, ERJavaMail, ERMailer, ExcelGenerator to be very useful for common stuff.

There are a couple of WebObjects community sites with lots of sample code, classes, snippets and how-to's for WebObjects. Here are a few community sites:
http://homepage.mac.com/kelleherk/iblog/C1216817469/E1154644165/ index.html


It is essential to get a few of the good reference books such as Practical WebObjects.

All I can say is don't waste time reinventing the wheel when someone has already done it in some shape of form.

Remember WO is java, so you can more or less drop any jar library you want into the classpath, import the packages and use the classes anywhere. Also work with WO, not against it, if you want an easy life .... especially study APIs and understand the roles of WOComponent and EOEditingContext and EOGenericRecord.

Have fun!

Kieran

On Sep 14, 2005, at 5:10 PM, Miguel Arroz wrote:

Hi!

It's working now, the CVS! Don't ask... I'll give a serious look at this! Thanks for your help!

BTW, as I am a newbie, what are the "essential frameworks" every self-respecting WO Developer should now about? I have seen Project Wonder references on many places. What is it exactly?

  Yours

Miguel Arroz

On 2005/09/14, at 13:17, Kieran Kelleher wrote:

Miguel,

If you are comfortable with adding a couple of frameworks, you can use Project Wonder's ERJavaMail and withlogging set to WARN for the PW frameworks, you will see error messages immediately if sending fails. By default PW ERJavaMail does the sending in a separate thread, but you can call sendMail with a boolean telling it to process it in the same thread too and catch any errors yourself.

Additionally PW includes an ERMailer app which uses an ercore EOModel/database which provides a very nice solution for your app (or multiple different apps) which involves your app simply creating an ERMailMessage entity for each message and saving it to the database. Then the ERMailer app sends pending emails from the database. ERMailer app will save exceptions to the database if any single message fails for any reason. I use both solutions and they work well. For ERMailer though you do need to download the latest source from CVS.

The really nice thing about ERJavaMail and ERMailer is that even if you never use them, you can still download them, look at the source code (opening the projects in XCode) and see working examples of how to work with the Sun javamail API (which is what WOMailDelivery does in the latest versions of WO anyway).

If you want to explore these options, I have some notes here:
http://homepage.mac.com/kelleherk/iblog/C183784902/E1851653685/ index.html
http://homepage.mac.com/kelleherk/iblog/C183784902/E2093239404/ index.html


HTH,

-Kieran
________________________________________________________________
Blog: http://webobjects.webhop.org/


On Sep 13, 2005, at 7:49 PM, Miguel Arroz wrote:


Hi!

I need to send emails from my application. I found that WOMailDelivery allows me to do that, but I have a question... how can I know if the email was sent when I call sendEMail? I mean, there may be a problem (like the SMTP being down), and in that case I would like to save the email on the database and try to send it some minutes later. sendEMail returns void, so I have no return code. Is there any other way to do this, that gives me some king of result related to the success of the mail sending operation?

  Yours

Miguel Arroz

      "GUERRA E' PAZ
       LIBERDADE E' ESCRAVIDAO
       IGNORANCIA E' FORCA"       -- 1984

Miguel Arroz
http://www.ipragma.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden






      "GUERRA E' PAZ
       LIBERDADE E' ESCRAVIDAO
       IGNORANCIA E' FORCA"       -- 1984

Miguel Arroz
http://www.ipragma.com




_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >WOMailDelivery sendEMail result? (From: Miguel Arroz <email@hidden>)
 >Re: WOMailDelivery sendEMail result? (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: Child Parent Editing Context
  • Next by Date: Re : Child Parent Editing Context
  • Previous by thread: Re: WOMailDelivery sendEMail result?
  • Next by thread: Re: WOMailDelivery sendEMail result?
  • Index(es):
    • Date
    • Thread