Hello , please help us to configure the SMTP mail client
SMTP settings that SMTP library accepts and we have configured for 0) Username - maheshmax007@gmail.com 1) Password - ******* 2) From - maheshmax007@gmail.com 3) To - Ramesh@gmail.com 4) Subject - Subject 5) Data - Mail Data
we have confusion between the Username(0) and From(2)to configure.
Thanks in advance
Regards Mahesh M
Try doing it in Thunderbird on a PC, and understand the POP/SMTP setting Google requires there, once that works, uses similar settings here.
Hello,
We did same Thunderbird settings and applied same in our setting but still not working. Please tell us if there are any more settings to do in keil related to SMTP.
Thanks in advance.
When it fails do you get some specific error code, or anything?
Have you tried other mail servers over which you have control? Perhaps within your own network?
hello,
We have tried doing the SMTP settings as per below:
SMTP server ip = 74.125.136.108
SMTP authentication ID = xyz@gmail.com
SMTP authentication password = password of xyz@gmail.com
MAil server port = 465(SSL)
Source email address = xyz@gmail.com
Recipient email address = xyz@gmail.com
but still we are not able to send mails. So what more we are lacking. Can you please help us out.
Just a question - does the Keil code support SSL-encrypted SMTP connections?
I guess no.
http://www.keil.com/forum/20603/
Can anyone provide setting of working example code of the SMTP (Not the one given in example code)
Thanks in Advance
To make sure it is not an issue with the server's security permissions, try having your SMTP client connect to a local server.
I used http://www.hmailserver.com/
With the mail server running on a local machine, you can then use wireshark to analyze the messages sent between the PC and the board.
wireshark.org
both programs are free downloads.
Are you using the Keil Network debug library? You can configure it to Status messages - via UART - about SMTP, TCP, ARP events. That way you can see what is going on from the board's perspective.
See: http://www.keil.com/support/man/docs/rlarm/rlarm_tn_debug_en.htm http://www.keil.com/support/man/docs/rlarm/rlarm_tn_debug_lvl.htm
There is a SMTP example here
C:\keil\arm\Boards\Keil\MCBSTM32F400\RL\TCPnet\SMTP_demo
if you look in the \boards folder, you may be able to find an example for your board.
Finally, can you Telnet in to the SMTP server? Does everything work OK there?
Some SMTP servers may: -not accept connections from IP addresses outside their network -only accept encrypted SMTP communication, which Keil cannot do -block messages to port 25, in which case you would have to connect to a different port on the server.
If you are able to connect to the server once, but not able to after resetting your board, the server's Port 25 may be in a TIME-WAIT state,
en.wikipedia.org/.../Transmission_Control_Protocol
You would have to wait a few minutes before the connection is fully closed. This would depend on the MSL value (which I think is 4) used by the server.
en.wikipedia.org/.../Maximum_Segment_Lifetime