How can I use Shell_smtp and gmail

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How can I use Shell_smtp and gmail

ソリューションへジャンプ
3,013件の閲覧回数
davidrwhite
Contributor I

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

.

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
2,818件の閲覧回数
karelm_
Contributor IV

Hi David,

this is most likely not possible yet. Gmail and vast majority of SMTP servers connected to internet use SSL protocol on top of SMTP (so called SMTPS) on port 465. However RTCS SMTP client does not support this protocol. We plan to add SSL to SMTP client in future MQX/RTCS version but there is no specific deadline.

Best regards,

Karel

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,652件の閲覧回数
BenSuite
Contributor I

Hi, I think everyone has heard of business marketing, so this is very cool service that allows you to buy Gmail account , a very cool site where you can find many different and more important - safe accounts that you can buy with no problem at a very good price

0 件の賞賛
返信
2,819件の閲覧回数
karelm_
Contributor IV

Hi David,

this is most likely not possible yet. Gmail and vast majority of SMTP servers connected to internet use SSL protocol on top of SMTP (so called SMTPS) on port 465. However RTCS SMTP client does not support this protocol. We plan to add SSL to SMTP client in future MQX/RTCS version but there is no specific deadline.

Best regards,

Karel

0 件の賞賛
返信
2,818件の閲覧回数
davidrwhite
Contributor I

Karel,

OK and thanks, I guess I need to go down the cyassl route.  Does that make sense to you?

Thanks,

David

.

0 件の賞賛
返信