Package org.apache.ofbiz.common.email
Class EmailServices
- java.lang.Object
-
- org.apache.ofbiz.common.email.EmailServices
-
public class EmailServices extends java.lang.Object
Email Services
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EmailServices.ByteArrayDataSource
class to create a file in memory required for sending as an attachmentstatic class
EmailServices.StringDataSource
class to create a file in memory required for sending as an attachment
-
Constructor Summary
Constructors Constructor Description EmailServices()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
sendFailureNotification(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context, javax.mail.internet.MimeMessage message, java.util.List<com.sun.mail.smtp.SMTPAddressFailedException> failures)
static java.util.Map<java.lang.String,java.lang.Object>
sendMail(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Basic JavaMail Servicestatic java.util.Map<java.lang.String,java.lang.Object>
sendMailFromScreen(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> rServiceContext)
JavaMail Service that gets body content from a Screen Widget defined in the product store record and if available as attachment also.static java.util.Map<java.lang.String,java.lang.Object>
sendMailFromUrl(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> rcontext)
JavaMail Service that gets body content from a URLstatic java.util.Map<java.lang.String,java.lang.Object>
sendMailHiddenInLogFromScreen(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> rServiceContext)
JavaMail Service same than sendMailFromScreen but with hidden result in log.
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
resource
public static final java.lang.String resource
- See Also:
- Constant Field Values
-
-
Method Detail
-
sendMail
public static java.util.Map<java.lang.String,java.lang.Object> sendMail(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> sendMailFromUrl(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> sendMailFromScreen(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> sendMailHiddenInLogFromScreen(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.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, java.util.Map<java.lang.String,? extends java.lang.Object> context, javax.mail.internet.MimeMessage message, java.util.List<com.sun.mail.smtp.SMTPAddressFailedException> failures)
-
-