Hello,
I am confused about how to use Shell_smtp to connect to a gmail account. How do I find out what gmail server to target? Is it smtp.gmail.com or gmail.google.com? I have my shell commands setup like:
const SHELL_COMMAND_STRUCT Shell_commands[] = {
{ "ipconfig", Shell_ipconfig },
#if RTCSCFG_ENABLE_ICMP
{ "ping", Shell_ping },
#endif
{ "smtp", Shell_smtp },
{ "sh", Shell_sh },
{ "help", Shell_help },
{ "?", Shell_command_list },
{ "exit", Shell_exit },
{ NULL, NULL },
};
shell> smtp -h
-f <sender@email.com> -t <recipient@email.com> -s www.mail.server.com [-u Username] [-p Password] -m "text of email message"
-f - Sender email address.
-t - Recipient email address.
-s - Email server that should be used for sending of email.
-u - Username for authentication.
-p - Password for authentication.
-m - Email text.
-h - Display this usage information.
shell>
So is the command something like this?
shell>smtp -f myAccount@gmail.com -t yourAccount@gmail.com -s gmail.google.com -u myGmailAccountUsername -p myGmailAccountPassword -m "text of email message"
When I try variants of the command above I get the following after some minutes of delay:
SMTPClient - Connection failed. Error: 0x1649
Thanks for any help,
David
.