Package org.apache.ofbiz.common.email
Class EmailServices
java.lang.Object
org.apache.ofbiz.common.email.EmailServices
Email Services
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
class to create a file in memory required for sending as an attachmentstatic class
class to create a file in memory required for sending as an attachment -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
sendFailureNotification
(DispatchContext dctx, Map<String, ? extends Object> context, javax.mail.internet.MimeMessage message, List<com.sun.mail.smtp.SMTPAddressFailedException> failures) sendMail
(DispatchContext ctx, Map<String, ? extends Object> context) Basic JavaMail ServicesendMailFromScreen
(DispatchContext dctx, Map<String, ? extends Object> rServiceContext) JavaMail Service that gets body content from a Screen Widget defined in the product store record and if available as attachment also.sendMailFromUrl
(DispatchContext ctx, Map<String, ? extends Object> rcontext) JavaMail Service that gets body content from a URLsendMailHiddenInLogFromScreen
(DispatchContext dctx, Map<String, ? extends Object> rServiceContext) JavaMail Service same than sendMailFromScreen but with hidden result in log.
-
Constructor Details
-
EmailServices
public EmailServices()
-
-
Method Details
-
sendMail
public static Map<String,Object> sendMail(DispatchContext ctx, Map<String, ? extends Object> context) Basic JavaMail Service- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
sendMailFromUrl
public static Map<String,Object> sendMailFromUrl(DispatchContext ctx, Map<String, ? extends Object> rcontext) JavaMail Service that gets body content from a URL- Parameters:
ctx
- The DispatchContext that this service is operating inrcontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
sendMailFromScreen
public static Map<String,Object> sendMailFromScreen(DispatchContext dctx, Map<String, ? extends Object> rServiceContext) JavaMail Service that gets body content from a Screen Widget defined in the product store record and if available as attachment also.- Parameters:
dctx
- The DispatchContext that this service is operating inrServiceContext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
sendMailHiddenInLogFromScreen
public static Map<String,Object> sendMailHiddenInLogFromScreen(DispatchContext dctx, Map<String, ? extends Object> rServiceContext) JavaMail Service same than sendMailFromScreen but with hidden result in log. To prevent having not encoded passwords shown in log- Parameters:
dctx
- The DispatchContext that this service is operating inrServiceContext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
sendFailureNotification
public static void sendFailureNotification(DispatchContext dctx, Map<String, ? extends Object> context, javax.mail.internet.MimeMessage message, List<com.sun.mail.smtp.SMTPAddressFailedException> failures)
-