2

I'm trying to set up the Mail plugin with my SES credentials, but I am obviously missing something because I keep getting this error:

Class: javax.mail.NoSuchProviderException
Message: No provider for aws

I've added the following to my Config.groovy:

grails {
    mail {
       host = "email-smtp.us-east-1.amazonaws.com"
       port = 465
       username = "XXXXXXXXX"
       password = "YYYYYYYYY"
       props = [
            'mail.transport.protocol': 'aws',
            'mail.aws.class': 'com.amazonaws.services.simpleemail.AWSJavaMailTransport',
            'mail.aws.user': 'WWWWWWWWWWWW',
            'mail.aws.password': 'ZZZZZZZZZZZ'
        ]
    }
 }

I've been looking through all the possible tutorials, half of them were from the time SES didn't support SMTP, thats why I have the class reference from the maven repo.

Does anyone know how I can configure this?

4

1 回答 1

7

这是我一直在成功使用的 -

grails {
    mail {
        host = "email-smtp.us-east-1.amazonaws.com"
        port = 587
        username = "smtp user name"
        password = "smtp password"
        props = ["mail.smtp.starttls.enable":"true",
                    "mail.smtp.port":"587"]
    }
}

让我知道以上是否有效

于 2013-08-26T02:43:30.040 回答