[Music]
hi my name is Greg Apple I'm a solution
architect specialized in Microsoft
technology on Amazon Web Services the
topic of today's session is integrating
Amazon simple email service otherwise
known as SES into your dotnet
application I'd like to point out this
video is not a deep dive into all the
features and capabilities of Amazon
simple email service this video will
include a brief general overview
followed by demo which will go over the
installation of the new get packages and
review specific steps to send email
using Amazon SES in your dotnet
application lastly we will review
monitoring and functionality available
in SES so why use Amazon SES SES is a
high performance platform with low
Lancie and error rates that can send
millions of emails Amazon SCS maintains
a strong reputation with ISPs so that
your emails are delivered to your
recipients inbox rather than their spam
folder Amazon SES integrates seamlessly
with other AWS services such as AWS
lambda AWS cloud watch Amazon Kinesis
firehose Amazon simple storage service
and the simple notification service you
can send emails using the Simple Mail
Transfer Protocol otherwise known as
SMTP the Amazon SES API or the Amazon
SES console SES also supports dedicated
IP addresses which are useful for
high-volume senders and allow for
complete control over sender reputation
lastly SES provides functionality
functionality to monitor your sending
activity SES also supports dedicated IP
addresses which are useful for
high-volume senders and allows for
complete control over sender reputation
lastly SES provides functionality to
monitor your sending activity now let's
go to the AWS management console and
take a look at Amazon SES after logging
into the AWS management console navigate
to simple email service here you'll see
a landing page like this navigate to
email
dresses under identity management Amazon
SES requires that you verify identities
from either the domains or email
addresses you own to prevent
unauthorized use to verify new email
address click the verify a new email
address button and enter your email
shortly after you should receive an
email asking you to confirm the email
address so as you can see here's the
email I've received simply click the
link in the email to complete the
verification process now that we have
authorized an email address we need to
generate SMTP credentials navigate to
the SMTP settings page take note of the
server name reports and click the Create
my SMTP credential button to generate a
set of credentials for sending emails
please note these credentials are not
the same as your AWS access key ID and
secret access key do not attempt to use
your AWS credentials to authenticate
yourself against the SMTP endpoint now
that we have verified an email that's
sending email to that email address in a
dotnet application here I have an
asp.net MVC application with three
fields two subject and message with two
buttons the AWS SDK button will send the
email using the SDK well the SMTP
interface button will send the email
using the SMTP client class in c-sharp
now let's go to visual studio and take a
look at the code that was used to send
the email using the SDK if you're going
to send the email using the SDK you will
need to ensure that you have added the
AWS SDK dot simple email NuGet package
right-click on your application and
click manage NuGet packages in the
search bar search for AWS SDK dot simple
email and click install as you can see I
already have this package installed for
this project now let's go back to visual
studio and take a deeper dive into the
code first we instantiate an Amazon
simple email service client and then a
send email request object we then
specify the destination message
including the body and subject and
finally the source
using the email address we previously
verified lastly we call the send email
async method on the object we just
instantiate 'add to send our email now
let's look at the code for sending an
email using the SMTP interface instead
of using the AWS SDK to send the email
you will use a SMTP address and port
that you can find on the SMTP settings
page on the Amazon SES console using the
address port and SMTP credentials I
downloaded from the Amazon SES console I
am constructing an SMTP client object
from dotnet and the new mail message to
send the email in my dotnet application
I passed the mail message object to the
SMTP client send method now that I've
shown you how this in the email in a
dotnet application let's look at some of
the monitoring functionality in the
Amazon SES console so here we are in my
inbox and as you can see I've received
my test email from my dotnet application
now that I've shown you how to send the
email in a dotnet application let's look
at some of the Mondrian functionality in
the Amazon SES console navigate to the
sending statistics section and scroll
down until you see several graphs these
graphs will show the number of emails
delivered rejected bounced and
complaints with these metrics you can
now segment you're sending stats and
publish them to cloud watch or Kinesis
firehose this will help you improve your
deliverability this concludes this
presentation of integrate Amazon SES
into your dotnet application thank you
for watching
[Music]