lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Integrate the SMTP with lwIP -1.3.2.


From: address@hidden
Subject: Re: [lwip-users] Integrate the SMTP with lwIP -1.3.2.
Date: Wed, 24 Apr 2013 22:47:22 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130307 Thunderbird/17.0.4

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("address@hidden", "address@hidden", "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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]