Does anyone know if there is an API Function to send an email?

If not, can anyone show me an example of a function to send an email using the POP3 Transfer protocall and WinSock?

SPH