Dinesh Arunachalam wrote:
how to integrate
the SMTP with lwIP -1.3.2.please give suggestions to implement it.

The SMTP client only support unencrypted transfer. It supports different authentication methods by default. Usage is like this:

// first, set the server address
smtp_set_server_addr("smtp.yourdomain.com");
// set the server port: only necessary if != default (which is 25)
smtp_set_server_port(25);
// set your authentication data (unless the server does not need this, which is very rare)
smtp_set_auth("YourUserName", "YourPassword");
// then, call one of the send functions, like:
smtp_send_mail("[email protected]", "[email protected]", "SomeSubject", "Email Body...", CB, NULL); // ... where "CB" is a callback function that gets called when the transfer to the mail server is finished (successfully or not - this is indicated in the various arguments passed to the callback functions)

BTW: I thought those functions were pretty self-explanatory...

Simon
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to