Hi simon:

Does smtp code support NLTM authentication ?

Vincent




Vincent Cui

Firmware Engineer Leader

[cid:[email protected]]

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: [email protected] 
[mailto:[email protected]] On Behalf Of 
[email protected]
Sent: 2013年4月25日 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("[email protected]"<mailto:[email protected]>,
 "[email protected]"<mailto:[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

<<inline: 4b8bf2.png>>

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

Reply via email to