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
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