This content has been marked as final.
Show 1 reply
-
1. Re: AWS Ses JavaMail
toddpi314 Apr 9, 2011 12:33 PM (in response to toddpi314)Prep:
- Sign-up for an AWS SES Account.
- Use their AWS Scripting API to create/verify to/from addresses while in sandbox modeConfig:
- 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 $ --> <server> <!-- ==================================================================== --> <!-- 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"> <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" /> </configuration> </attribute> <depends>jboss:service=Naming</depends> </mbean> </server>
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!