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
This is a discussion on Email Function??? within the Windows Programming forums, part of the Platform Specific Boards category; Does anyone know if there is an API Function to send an email? If not, can anyone show me an ...
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
No simple function in API....but you can implement it yourself.....
Open a socket to your SMTP server on port 25
Send the following strings;
[list=1][*]HELO mysmtpserver\r\n[*]MAIL FROM:<myaddress>\r\n[*]RCPT TO:<send address>\r\n[*]DATA\r\n[*]SUBJECT:thesubject\r\nFROM:you\r\nTO:to\r\n[*]the text you want to send[*]\r\n\r\n[*]QUIT\r\n[/list=1]
After each \r\n, listen for a response.........
That should work
What about MAPI??
See http://msdn.microsoft.com/library/?u...asp?frame=true