Link to home
Start Free TrialLog in
Avatar of DrPepper061499
DrPepper061499

asked on

student needs help

I'm still studying at school, and I want to create an executable that will e-mail a specific file to a pre-determined list of e-mail.  All I need is--> how can I send the file to a     e-mail account, I really have no clue as how to do it, I only need help for this part of my program...how do I code to make the file "c:.../.../... .txt" go to this e-mail address without me doing anything.  I only need a bit of code to get me started.
                       thanx in advance.


                    Thanx in advance.
Avatar of myqlG
myqlG

there is a RFC for SMTP.
I have a sample that is all of 5 lines long.
for a single mailing.
It would be simple to add a for loop
which part do you need?
the SMTP is REALLY easy using winsock.ocx
There is a sample of VB and e-mail in the VB samples directory which is normally installed in VB\Samples\CompTool\VBMail  I have a sample of attaching a file to an e-mail and sending it at work, but I wont be able to send it until Monday.

It works by signing on to your MAPI session (of Windows it's sometimes Outlook) and sending the message through your MAPI compliant e-mail system.
ASKER CERTIFIED SOLUTION
Avatar of Taitor
Taitor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial