PHP Amazon SES Email Verification -


is there way verify email domain or send verification through api? client confirm email domain when create email campaign in website.

i using php aws sdk v2. http://docs.aws.amazon.com/aws-sdk-php/v2/guide/service-ses.html

$mailbox_email = 'email@yourdomain.com';  $aws_client = \aws\common\aws::factory(array(   'region'  => 'eu-west-1',   'credentials' => array(   'key'         => aws_access,   'secret'  => aws_secret   ) ));  $ses_client = $aws_client->get('ses');  $ses_result = $ses_client->verifyemailidentity(['emailaddress' => $mailbox_email]);  // set bounces, complaint, deliveries notification $ses_client->setidentitynotificationtopic(array(  'identity' => $mailbox_email,  'notificationtype' => 'bounce',  'snstopic' => 'arn:aws:sns:eu-west-1:9:ses_bounces' ));  $ses_client->setidentitynotificationtopic(array(  'identity' => $mailbox_email,  'notificationtype' => 'complaint',  'snstopic' => 'arn:aws:sns:eu-west-1:9:ses_complaints' ));  $ses_client->setidentitynotificationtopic(array(  'identity' => $mailbox_email,  'notificationtype' => 'delivery',  'snstopic' => 'arn:aws:sns:eu-west-1:9:ses_deliveries' ));  $ses_client->setidentityfeedbackforwardingenabled(array(  'identity' => $mailbox_email,  'forwardingenabled' => false )); 

in aws ses email domain verification need dns settings either add dkim or txt record cannot done using api except domain in route 53 , have access account. ways verify email domain. email domain verification have done manually.

http://docs.aws.amazon.com/ses/latest/developerguide/verify-domains.html

you can verify email address using aws ses api.

http://docs.aws.amazon.com/ses/latest/developerguide/verify-email-addresses.html


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -