org.ofbiz.common.email
Class EmailServices

java.lang.Object
  extended by org.ofbiz.common.email.EmailServices

public class EmailServices
extends java.lang.Object

Email Services


Nested Class Summary
static class EmailServices.ByteArrayDataSource
          class to create a file in memory required for sending as an attachment
static class EmailServices.StringDataSource
          class to create a file in memory required for sending as an attachment
 
Field Summary
protected static FoScreenRenderer foScreenRenderer
           
protected static HtmlScreenRenderer htmlScreenRenderer
           
static java.lang.String module
           
 
Constructor Summary
EmailServices()
           
 
Method Summary
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
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.
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

htmlScreenRenderer

protected static final HtmlScreenRenderer htmlScreenRenderer

foScreenRenderer

protected static final FoScreenRenderer foScreenRenderer
Constructor Detail

EmailServices

public EmailServices()
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 in
context - 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 in
rcontext - 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 in
rServiceContext - Map containing the input parameters
Returns:
Map with the result of the service, the output parameters