Mailbox Simulator for the Amazon Simple Email Service
As mentioned in AWS Blog,
Today we are introducing the Amazon SES Mailbox Simulator to allow you to test your application without affecting your sending quota or the bounce and complaint metrics that drive it. You can now send test emails to specific email addresses hosted by the mailbox simulator. Each address has a specific, defined response. You can send email to these new addresses even if you are still running in the Amazon SES sandbox.
I am using PHPMailer for for testing mailbox simulator code below
use PHPMailerPHPMailerPHPMailer;
use PHPMailerPHPMailerException;
//Load Composer's autoloader
require 'vendor/autoload.php';
$emp_email="bounce@simulator.amazonses.com";
$emp_name="testbounce";
$mail = new PHPMailer(true); // Passing `true` enables exceptions
try {
//Server settings
$mail->SMTPDebug = 0; // Disable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'email-smtp.us-west-2.amazonaws.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'sesusername'; // SMTP username
$mail->Password = 'sespassword'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587; // TCP port to connect to
$mail->From = 'testmail@example.com';
$mail->FromName = "testname";
$mail->addAddress($emp_email,$emp_name);
//Content
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
$mail->send();
echo 'Message has been sent';
} catch (Exception $e) {
echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo;
}
I am getting error as
Message could not be sent. Mailer Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Message rejected: Email address is not verified. The following identities failed the check in region US-WEST-2: testname , testmail@example.com SMTP code: 554
As I know for sending email using SES we need verified From mail id in general way.
So how to configure simulator to test new email id.
php amazon-web-services email amazon-ses
add a comment |
As mentioned in AWS Blog,
Today we are introducing the Amazon SES Mailbox Simulator to allow you to test your application without affecting your sending quota or the bounce and complaint metrics that drive it. You can now send test emails to specific email addresses hosted by the mailbox simulator. Each address has a specific, defined response. You can send email to these new addresses even if you are still running in the Amazon SES sandbox.
I am using PHPMailer for for testing mailbox simulator code below
use PHPMailerPHPMailerPHPMailer;
use PHPMailerPHPMailerException;
//Load Composer's autoloader
require 'vendor/autoload.php';
$emp_email="bounce@simulator.amazonses.com";
$emp_name="testbounce";
$mail = new PHPMailer(true); // Passing `true` enables exceptions
try {
//Server settings
$mail->SMTPDebug = 0; // Disable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'email-smtp.us-west-2.amazonaws.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'sesusername'; // SMTP username
$mail->Password = 'sespassword'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587; // TCP port to connect to
$mail->From = 'testmail@example.com';
$mail->FromName = "testname";
$mail->addAddress($emp_email,$emp_name);
//Content
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
$mail->send();
echo 'Message has been sent';
} catch (Exception $e) {
echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo;
}
I am getting error as
Message could not be sent. Mailer Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Message rejected: Email address is not verified. The following identities failed the check in region US-WEST-2: testname , testmail@example.com SMTP code: 554
As I know for sending email using SES we need verified From mail id in general way.
So how to configure simulator to test new email id.
php amazon-web-services email amazon-ses
add a comment |
As mentioned in AWS Blog,
Today we are introducing the Amazon SES Mailbox Simulator to allow you to test your application without affecting your sending quota or the bounce and complaint metrics that drive it. You can now send test emails to specific email addresses hosted by the mailbox simulator. Each address has a specific, defined response. You can send email to these new addresses even if you are still running in the Amazon SES sandbox.
I am using PHPMailer for for testing mailbox simulator code below
use PHPMailerPHPMailerPHPMailer;
use PHPMailerPHPMailerException;
//Load Composer's autoloader
require 'vendor/autoload.php';
$emp_email="bounce@simulator.amazonses.com";
$emp_name="testbounce";
$mail = new PHPMailer(true); // Passing `true` enables exceptions
try {
//Server settings
$mail->SMTPDebug = 0; // Disable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'email-smtp.us-west-2.amazonaws.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'sesusername'; // SMTP username
$mail->Password = 'sespassword'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587; // TCP port to connect to
$mail->From = 'testmail@example.com';
$mail->FromName = "testname";
$mail->addAddress($emp_email,$emp_name);
//Content
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
$mail->send();
echo 'Message has been sent';
} catch (Exception $e) {
echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo;
}
I am getting error as
Message could not be sent. Mailer Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Message rejected: Email address is not verified. The following identities failed the check in region US-WEST-2: testname , testmail@example.com SMTP code: 554
As I know for sending email using SES we need verified From mail id in general way.
So how to configure simulator to test new email id.
php amazon-web-services email amazon-ses
As mentioned in AWS Blog,
Today we are introducing the Amazon SES Mailbox Simulator to allow you to test your application without affecting your sending quota or the bounce and complaint metrics that drive it. You can now send test emails to specific email addresses hosted by the mailbox simulator. Each address has a specific, defined response. You can send email to these new addresses even if you are still running in the Amazon SES sandbox.
I am using PHPMailer for for testing mailbox simulator code below
use PHPMailerPHPMailerPHPMailer;
use PHPMailerPHPMailerException;
//Load Composer's autoloader
require 'vendor/autoload.php';
$emp_email="bounce@simulator.amazonses.com";
$emp_name="testbounce";
$mail = new PHPMailer(true); // Passing `true` enables exceptions
try {
//Server settings
$mail->SMTPDebug = 0; // Disable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'email-smtp.us-west-2.amazonaws.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'sesusername'; // SMTP username
$mail->Password = 'sespassword'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587; // TCP port to connect to
$mail->From = 'testmail@example.com';
$mail->FromName = "testname";
$mail->addAddress($emp_email,$emp_name);
//Content
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
$mail->send();
echo 'Message has been sent';
} catch (Exception $e) {
echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo;
}
I am getting error as
Message could not be sent. Mailer Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Message rejected: Email address is not verified. The following identities failed the check in region US-WEST-2: testname , testmail@example.com SMTP code: 554
As I know for sending email using SES we need verified From mail id in general way.
So how to configure simulator to test new email id.
php amazon-web-services email amazon-ses
php amazon-web-services email amazon-ses
edited Nov 21 '18 at 19:55
John Rotenstein
68.5k775120
68.5k775120
asked Nov 21 '18 at 16:52
PatataPatata
281112
281112
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
All addresses that you send from must be verified. You can do this via the console or via API. See the documentation. You can also verify an entire domain.
thanks for your time but I want to know how to verify the bulk email address before sending. It affect the reputation statistic(bounces etc) if they are incorrect. Does AWS provides services to verify the bulk email ids
– Patata
Nov 22 '18 at 5:04
3
AWS does not provide email verification. Try Kickbox.com
– bwest
Nov 22 '18 at 15:20
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416979%2fmailbox-simulator-for-the-amazon-simple-email-service%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
All addresses that you send from must be verified. You can do this via the console or via API. See the documentation. You can also verify an entire domain.
thanks for your time but I want to know how to verify the bulk email address before sending. It affect the reputation statistic(bounces etc) if they are incorrect. Does AWS provides services to verify the bulk email ids
– Patata
Nov 22 '18 at 5:04
3
AWS does not provide email verification. Try Kickbox.com
– bwest
Nov 22 '18 at 15:20
add a comment |
All addresses that you send from must be verified. You can do this via the console or via API. See the documentation. You can also verify an entire domain.
thanks for your time but I want to know how to verify the bulk email address before sending. It affect the reputation statistic(bounces etc) if they are incorrect. Does AWS provides services to verify the bulk email ids
– Patata
Nov 22 '18 at 5:04
3
AWS does not provide email verification. Try Kickbox.com
– bwest
Nov 22 '18 at 15:20
add a comment |
All addresses that you send from must be verified. You can do this via the console or via API. See the documentation. You can also verify an entire domain.
All addresses that you send from must be verified. You can do this via the console or via API. See the documentation. You can also verify an entire domain.
answered Nov 21 '18 at 17:42
bwestbwest
5,74111745
5,74111745
thanks for your time but I want to know how to verify the bulk email address before sending. It affect the reputation statistic(bounces etc) if they are incorrect. Does AWS provides services to verify the bulk email ids
– Patata
Nov 22 '18 at 5:04
3
AWS does not provide email verification. Try Kickbox.com
– bwest
Nov 22 '18 at 15:20
add a comment |
thanks for your time but I want to know how to verify the bulk email address before sending. It affect the reputation statistic(bounces etc) if they are incorrect. Does AWS provides services to verify the bulk email ids
– Patata
Nov 22 '18 at 5:04
3
AWS does not provide email verification. Try Kickbox.com
– bwest
Nov 22 '18 at 15:20
thanks for your time but I want to know how to verify the bulk email address before sending. It affect the reputation statistic(bounces etc) if they are incorrect. Does AWS provides services to verify the bulk email ids
– Patata
Nov 22 '18 at 5:04
thanks for your time but I want to know how to verify the bulk email address before sending. It affect the reputation statistic(bounces etc) if they are incorrect. Does AWS provides services to verify the bulk email ids
– Patata
Nov 22 '18 at 5:04
3
3
AWS does not provide email verification. Try Kickbox.com
– bwest
Nov 22 '18 at 15:20
AWS does not provide email verification. Try Kickbox.com
– bwest
Nov 22 '18 at 15:20
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416979%2fmailbox-simulator-for-the-amazon-simple-email-service%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown