C code for Sending Email with attachment

Hi,

I need the C code for Sending Email with attachment through
SMTP protocol, running under linux platform.

Thanks

sendmail source code - Google Search