To send mails using a SMTP server see RFC 5321 [
^] and the Wikipedia [
^]. When not using an encrypted connection, this is quite simple. If you don't want to implement it yourself, you may use a SMTP library.
You may also use the Windows MAPI interface [
^] to send mails.
Another option is using the Windows Mail interface [
^].
Web servers use the HTTP protocol which did not support sending mails. If you want to use a mail form of a specific web page or a web mail server to send mails, you can do that if you know how the mail data are send by emulating the data transfer like a web browser. But this is always specific to the used web service and must be adjusted when the service changes his page or used scripts.