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.
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.
OS: Windows XP Home Edition SP3, Windows 7 Ultimate Beta Build 7000
LANGUAGES: C++, VB6
SKILL: Novice/Intermediate
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?
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
Just the email address defined in the source code.
OS: Windows XP Home Edition SP3, Windows 7 Ultimate Beta Build 7000
LANGUAGES: C++, VB6
SKILL: Novice/Intermediate
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.
OS: Windows XP Home Edition SP3, Windows 7 Ultimate Beta Build 7000
LANGUAGES: C++, VB6
SKILL: Novice/Intermediate