If I have a .txt file I want to email the contents to say... A hotmail email address, how would I go about doing this?
Google didn't help. :(
Printable View
If I have a .txt file I want to email the contents to say... A hotmail email address, how would I go about doing this?
Google didn't help. :(
do you want to use the current user mail-client program and user credantials? or do you want to make all the work by your program itself? what user account you are planning to use as source address? Do you plan to send through SMTP server or Hotmail HTML mail server?
Just the email address defined in the source code.
You have essentially two options:
1. the easy way:
use the system() function to call another program to send the email for you.
2. the "right" way:
either write your own implementation of SMTP, or link your program to a SMTP library to do this for you.
What you are trying to do sounds more like a job for scripting languages.
Oh :(
Oh well, too bad I guess.