1 Reply Latest reply on Apr 9, 2011 12:33 PM by Todd Morrison

    AWS Ses JavaMail

    Todd Morrison Newbie

      Has anyone successfully integrated AWS SES JavaMail transport into seam (Mail.xml)?

        • 1. Re: AWS Ses JavaMail
          Todd Morrison Newbie


          - Sign-up for an AWS SES Account.

          - Use their AWS Scripting API to create/verify to/from addresses while in sandbox mode


          - Add com.amazonaws.aws-java-sdk, and commons-httpclient on your class-path

          - Add both to your EAR

          - Here is the jboss mail bean:

          <?xml version="1.0" encoding="UTF-8"?>
          <!-- $Id: mail-service.xml 62350 2007-04-15 16:50:12Z dimitris@jboss.org 
               $ -->
               <!-- ==================================================================== -->
               <!-- Mail Connection Factory - copy this file to the JBOSS server -->
               <!-- ==================================================================== -->
               <mbean code="org.jboss.mail.MailService" name="jboss:service=Mail">
                    <attribute name="JNDIName">java:/Mail</attribute>
                    <attribute name="User">VERIFIED_EMAIL</attribute>
                    <attribute name="Configuration">
                              <property name="mail.transport.protocol" value="aws" />
                              <property name="mail.aws.user" value="AWS_KEY" />
                              <property name="mail.aws.password" value="AWS_SECRET" />
                              <property name="mail.debug" value="true" />

          At this point, JBoss will detect an Amazon AWS Mail Transport Impl., and the jboss-seam-mail.jar will work with your renderer.

          Have fun!