EHLO
250-smtpcorp.com Hello dslb-088-077-003-169.pools.example.net [88.77.3.169]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH CRAM-MD5 PLAIN LOGIN
250-STARTTLS
250 HELP
AUTH LOGIN
334 VXNlcm5hbWU6
bm90bXl1c2VybmFtZQ==
334 UGFzc3dvcmQ6
bm90bXlwYXNzd29yZA==
235 Authentication succeeded
MAIL FROM:<arduino@example.com>
250 OK
RCPT TO:<info@example.com>
250 Accepted <info@example.com>
DATA
354 Enter message, ending with "." on a line by itself
from:arduino@example.com
to:info@example.com
subject:This is a test
Really, it is a test!
.
250 OK id=1WrAQ9-4gfLuZ-5U
QUIT
221 smtpcorp.com closing connection
Connection closed by foreign host.
Although it s more complex, this session is similar to our Daytime example.
We only send more complex commands. (By the way, you don t have to write
the commands in uppercase.) Please note that we re connecting to port 2525,
which is not the standard SMTP port (25). Check your SMTP service provider s
website to see what port you have to use.
We start the session using
server that we d like to use a slightly extended version of SMTP that supports
authentication.
After that, we send the
like to send our username and password. The SMTP server sends back the
string VXNlcm5hbWU6. It looks a bit weird at first, but it s only the string
"Username:" encoded using Base64.
3.
http://en.wikipedia.org/wiki/Base64
text into Base64 strings.
Chapter 11. Creating a Burglar Alarm with Email Notification
EHLO
. We use the
EHLO
AUTH LOGIN
command to tell the SMTP server that we d
3
At
http://www.freeformatter.com/base64-encoder.html
www.it-ebooks.info
command to tell the SMTP
, you can convert
186
report erratum
discuss
Need help?
Do you have a question about the Arduino Uno and is the answer not in the manual?