Changes for page Sending Emails

Last modified by Pascal Robert on 2012/08/12 21:24

From version 9.1
edited by Pascal Robert
on 2007/09/03 18:22
Change comment: There is no comment for this version
To version 10.1
edited by Pascal Robert
on 2012/07/19 21:12
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Web Applications-Development-Sending Emails
1 +Development-Sending Emails
Content
... ... @@ -9,8 +9,16 @@
9 9  * [[JavaMail>>http://java.sun.com/products/javamail/downloads/index.html]]
10 10  * [[Java Activation Framework>>http://java.sun.com/products/javabeans/jaf/downloads/index.html]]
11 11  
12 +== ERJavaMail ==
13 +
14 +ERJavaMail is part of Project Wonder and provides an API for sending component-based emails. ERJavaMail also uses the JavaMail API's underneath, but it includes the jars inside its framework, so you don't need to manually install JavaMail to use it. Because it does not have any external dependencies on other Project Wonder frameworks, you can use it without bringing in any other Project Wonder frameworks. For more information on ERJavaMail, see the [[ERJavaMail>>ERJavaMail Framework]] page.
15 +
12 12  == WOMailDelivery ==
13 13  
18 +{{warning}}
19 +You really should use ERJavaMail, WOMailDelivery is not as flexible as ERJavaMail is.
20 +{{/warning}}
21 +
14 14  Built into WebObjects is the WOMailDelivery class. It provides a very simple API for sending mails, but lacks the power of Project Wonder's version. To use WOMailDelivery, you will need to set your SMTP server in one of the following ways:
15 15  
16 16  * Add DWOSMTPHost=smtp.yourmailserver as a launch parameter
... ... @@ -17,7 +17,7 @@
17 17  * Set WOSMTPHost=smtp.yourmailserver.com in your Properties file
18 18  * Hardcode it with WOApplication.application().setSMTPHost("smtp.yourmailserver.com");
19 19  
20 -Refer to the [[WOMailDelivery API>>http://developer.apple.com/documentation/WebObjects/Reference/API/com/webobjects/appserver/WOMailDelivery.html]] for more information, but to simply send an email, you can use the following command:
28 +Refer to the [[WOMailDelivery API>>http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/appserver/WOMailDelivery.html]] for more information, but to simply send an email, you can use the following command:
21 21  
22 22  {{code}}
23 23  
... ... @@ -32,7 +32,3 @@
32 32  {{/code}}
33 33  
34 34  By default, WOMailDelivery with use Sun's old SMTP implementation. However, if you install JavaMail (as described above) into your WOA or /Library/WebObjects/Extensions, WOMailDelivery will use it instead.
35 -
36 -== ERJavaMail ==
37 -
38 -ERJavaMail is part of Project Wonder and provides an API for sending component-based emails. ERJavaMail also uses the JavaMail API's underneath, but it includes the jars inside its framework, so you don't need to manually install JavaMail to use it. Because it does not have any external dependencies on other Project Wonder frameworks, you can use it without bringing in any other Project Wonder frameworks. For more information on ERJavaMail, see the [[ERJavaMail>>Project WONDER-Frameworks-ERJavaMail]] page.