Demo to send email from your email account, with optional attachment.
This program requires sendemail.exe and sendemail.pl, available free from Caspian's SendEmail Site
Commandline Switches:Required:
Thanks to Joseph Essin for the following link. This site contains mail setting information for many popular mail servers.
'Example to send email using gmail. 'For other services, see their documentation 'requires sendemail.exe and sendemail.pl from$ = "your_gmail_address@gmail.com" mailuser$ ="your_gmail_address@gmail.com" recipient$ ="email_of_recipient@hismail.com" server$ = "smtp.gmail.com:587" mailpwd$ = "your_mail_password" subject$ = "Desired Subject Line" message$ = "Your message." attach$ = "c:\folder\subfolder\filename.ext" cmd$ = " -f ";from$;" -t ";recipient$;" -s ";server$;" -xu ";mailuser$;" -xp ";mailpwd$;" -u ";subject$;" -m ";message$;" -a ";attach$ run "sendemail.exe ";cmd$, HIDE end