Class EmailServices

java.lang.Object
org.apache.ofbiz.common.email.EmailServices

public class EmailServices extends Object
Email Services
  • 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 in
      context - 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 in
      rcontext - 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 in
      rServiceContext - 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 in
      rServiceContext - 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)