
AWS for Microsoft Workloads: Integrate Amazon Simple Email Service into your .NET Application
AWS for Microsoft Workloads: Integrate Amazon Simple Email Service into your .NET Application
For more information, visit the AWS for Microsoft Workloads Self-Study Guide at - https://amzn.to/2yt3yWe.
Follow .NET on AWS on Twitter - @dotNETonAWS
If you wish to send email from within your .Net application then integrating into the AWS Simple Email Service is a good way to go. In this video, you will learn how to send email from C# utilizing AWS SES.
Content
0.61 -> [Music]
5.99 -> hi my name is Greg Apple I'm a solution
9.599 -> architect specialized in Microsoft
11.429 -> technology on Amazon Web Services the
14.219 -> topic of today's session is integrating
16.139 -> Amazon simple email service otherwise
18.63 -> known as SES into your dotnet
20.55 -> application I'd like to point out this
22.439 -> video is not a deep dive into all the
24.42 -> features and capabilities of Amazon
26.13 -> simple email service this video will
29.429 -> include a brief general overview
30.99 -> followed by demo which will go over the
33.12 -> installation of the new get packages and
35.489 -> review specific steps to send email
37.86 -> using Amazon SES in your dotnet
40.41 -> application lastly we will review
43.32 -> monitoring and functionality available
44.879 -> in SES so why use Amazon SES SES is a
49.289 -> high performance platform with low
51.36 -> Lancie and error rates that can send
53.489 -> millions of emails Amazon SCS maintains
57.42 -> a strong reputation with ISPs so that
60 -> your emails are delivered to your
61.23 -> recipients inbox rather than their spam
63.39 -> folder Amazon SES integrates seamlessly
66.33 -> with other AWS services such as AWS
69.659 -> lambda AWS cloud watch Amazon Kinesis
73.65 -> firehose Amazon simple storage service
75.9 -> and the simple notification service you
78.81 -> can send emails using the Simple Mail
80.82 -> Transfer Protocol otherwise known as
83.119 -> SMTP the Amazon SES API or the Amazon
87.84 -> SES console SES also supports dedicated
91.89 -> IP addresses which are useful for
94.2 -> high-volume senders and allow for
96.509 -> complete control over sender reputation
99.409 -> lastly SES provides functionality
101.869 -> functionality to monitor your sending
104.1 -> activity SES also supports dedicated IP
107.61 -> addresses which are useful for
109.5 -> high-volume senders and allows for
111.689 -> complete control over sender reputation
114.329 -> lastly SES provides functionality to
117.479 -> monitor your sending activity now let's
119.85 -> go to the AWS management console and
121.799 -> take a look at Amazon SES after logging
124.89 -> into the AWS management console navigate
127.02 -> to simple email service here you'll see
130.89 -> a landing page like this navigate to
133.26 -> email
133.84 -> dresses under identity management Amazon
136.569 -> SES requires that you verify identities
138.94 -> from either the domains or email
141.489 -> addresses you own to prevent
143.2 -> unauthorized use to verify new email
145.87 -> address click the verify a new email
147.64 -> address button and enter your email
151.14 -> shortly after you should receive an
153.61 -> email asking you to confirm the email
155.5 -> address so as you can see here's the
157.959 -> email I've received simply click the
160 -> link in the email to complete the
161.26 -> verification process now that we have
165.069 -> authorized an email address we need to
166.75 -> generate SMTP credentials navigate to
169.84 -> the SMTP settings page take note of the
174.099 -> server name reports and click the Create
176.11 -> my SMTP credential button to generate a
178.629 -> set of credentials for sending emails
180.25 -> please note these credentials are not
182.59 -> the same as your AWS access key ID and
184.959 -> secret access key do not attempt to use
187.66 -> your AWS credentials to authenticate
189.43 -> yourself against the SMTP endpoint now
192.91 -> that we have verified an email that's
194.65 -> sending email to that email address in a
196.329 -> dotnet application here I have an
203.2 -> asp.net MVC application with three
205.81 -> fields two subject and message with two
208.75 -> buttons the AWS SDK button will send the
211.989 -> email using the SDK well the SMTP
215.26 -> interface button will send the email
216.849 -> using the SMTP client class in c-sharp
219.819 -> now let's go to visual studio and take a
222.669 -> look at the code that was used to send
224.26 -> the email using the SDK if you're going
227.019 -> to send the email using the SDK you will
228.76 -> need to ensure that you have added the
230.2 -> AWS SDK dot simple email NuGet package
234.419 -> right-click on your application and
236.41 -> click manage NuGet packages in the
241.06 -> search bar search for AWS SDK dot simple
244.48 -> email and click install as you can see I
248.59 -> already have this package installed for
250.48 -> this project now let's go back to visual
252.639 -> studio and take a deeper dive into the
254.47 -> code first we instantiate an Amazon
256.9 -> simple email service client and then a
259.389 -> send email request object we then
261.639 -> specify the destination message
263.77 -> including the body and subject and
265.81 -> finally the source
267.34 -> using the email address we previously
269.139 -> verified lastly we call the send email
273.85 -> async method on the object we just
276.07 -> instantiate 'add to send our email now
278.86 -> let's look at the code for sending an
280.81 -> email using the SMTP interface instead
286.96 -> of using the AWS SDK to send the email
289.449 -> you will use a SMTP address and port
292.21 -> that you can find on the SMTP settings
294.43 -> page on the Amazon SES console using the
298.63 -> address port and SMTP credentials I
301.33 -> downloaded from the Amazon SES console I
303.97 -> am constructing an SMTP client object
306.43 -> from dotnet and the new mail message to
310 -> send the email in my dotnet application
312.07 -> I passed the mail message object to the
314.32 -> SMTP client send method now that I've
318.7 -> shown you how this in the email in a
320.08 -> dotnet application let's look at some of
322.21 -> the monitoring functionality in the
323.95 -> Amazon SES console so here we are in my
327.52 -> inbox and as you can see I've received
329.71 -> my test email from my dotnet application
332.13 -> now that I've shown you how to send the
334.21 -> email in a dotnet application let's look
336.61 -> at some of the Mondrian functionality in
338.5 -> the Amazon SES console navigate to the
342.55 -> sending statistics section and scroll
344.71 -> down until you see several graphs these
346.96 -> graphs will show the number of emails
348.52 -> delivered rejected bounced and
350.8 -> complaints with these metrics you can
353.56 -> now segment you're sending stats and
355.24 -> publish them to cloud watch or Kinesis
356.919 -> firehose this will help you improve your
359.38 -> deliverability this concludes this
362.169 -> presentation of integrate Amazon SES
364.66 -> into your dotnet application thank you
367.03 -> for watching
368.76 -> [Music]
Source: https://www.youtube.com/watch?v=vLcUz11rzT8