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: Vincent Cui
Subject: Re: [lwip-users] Integrate the SMTP with lwIP -1.3.2.
Date: Tue, 4 Jun 2013 05:31:13 +0000

Hi simon:

 

Does smtp code support NLTM authentication ?

 

Vincent  

 

 

Vincent Cui

Firmware Engineer Leader

Room1106, Building A, New Caohejing Business Centre, No.391, Guiping Road, Xuhui District, Shanghai, P.R.China

T: +86 21 34612525, Ext: 6104, M: +86 13482482211

www.enlogic.com


P please consider the environment before printing this email


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed.  If you have received this e-mail in error, please notify the sender immediately and then delete it.  If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message.  We cannot accept liability for any loss or damage caused by software viruses.  Any views and/or opinions expressed in this e-mail are of the author only and do not necessarily represent the views of Enlogic.


From: lwip-users-bounces+address@hidden [mailto:lwip-users-bounces+address@hidden On Behalf Of address@hidden
Sent: 2013
425 AM 4:47
To: Mailing list for lwIP users
Subject: Re: [lwip-users] Integrate the SMTP with lwIP -1.3.2.

 

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]