Sending an email through WiShield 2.0

Hello! I have been looking all over the place but I couldn't find an answer to a problem I have been having. I am trying to send an email from the WiShield 2.0. I connected to yahoo through telnet and sent an email just by typing the following:

telnet smtp.mail.yahoo.com 587
HELO 
AUTH LOGIN 
my user name in base64
my password in base64
MAIL FROM: <my_email_account@yahoo.com>
RCPT TO: <who_I_am_sending_an_email_to@somewhere.com>
DATA
TO: <who_I_am_sending_an_email_to@somewhere.com>
FROM: <my_email_account@yahoo.com>
Subject:Testing

This is a test

.

However when I do the same through the wishield I do not receive an email.

PSOCK_SEND_STR(&s.p, "EHLO");
PSOCK_SEND_STR(&s.p, "AUTH LOGIN");
PSOCK_SEND_STR(&s.p, "username in base64");
PSOCK_SEND_STR(&s.p, "password in base64");
PSOCK_SEND_STR(&s.p, "MAIL FROM: <my_email_account@yahoo.com>");
PSOCK_SEND_STR(&s.p, "RCPT TO: <who_I_am_sending_an_email_to@somewhere.com>");
PSOCK_SEND_STR(&s.p, "DATA");
PSOCK_SEND_STR(&s.p, "TO: <who_I_am_sending_an_email_to@somewhere.com>");
PSOCK_SEND_STR(&s.p, "FROM: <my_email_account@yahoo.com>");
PSOCK_SEND_STR(&s.p, "subject: Test");
PSOCK_SEND_STR(&s.p, " ");
PSOCK_SEND_STR(&s.p, "Wazzup?  ");
PSOCK_SEND_STR(&s.p, " ");
PSOCK_SEND_STR(&s.p, "Sincerely  ");
PSOCK_SEND_STR(&s.p, "Your Arduino  ");
PSOCK_SEND_STR(&s.p, ".");

Oh and by the way I have been able to connect to a server I created on my computer so I have all that kind of stuff correct.

Any help would be much appreciated.

Thanks,
Mitchell

HELO
PSOCK_SEND_STR(&s.p, "EHLO");

Which is it?

Yahoo is fine with either but I should probably be more consistent with that sort of thing.

Mitchell

PSOCK_SEND_STR(&s.p, "EHLO\r\n");

...no line terminators?

It worked! I didn't realize you needed the line terminators. Thank you so much Coding Badly!

Mitchell

You are welcome. Just trying to fulfill the expectations set by my moniker.

Hi Mitchell

Is there any chance you could show the full code? I would very much like to send email from my WiShield but I am much more a beginner.

Thanks
Kevin

kgarner:
Hi Mitchell

Is there any chance you could show the full code? I would very much like to send email from my WiShield but I am much more a beginner.

Thanks
Kevin

Sorry I haven't been on so long but it looks like now the WiShield is pretty outdated so you will probably want to use the new Arduino WiFi shield which will probably be easier to use but the basic concept is still the same. Just test things out on telnet first and then implement them into your code.

Mitchell

Moderator edit: correct accidental drag-and-drop