attach file in one click

yoavchen

Registered User.
Local time
Today, 15:00
Joined
Jan 31, 2005
Messages
53
i am trying to attach a file, but i dont want to click and the browser will open, i want to click the send mail button and the file i want to attach will automatically attached and sent to the recipients
 
How are you going to get access to know which file to attach? It cant read your mind. You need to add the file path at some stage, if not when the email button is pressed, then when??
 
i want to write in the code, that if you click on A button,the path will be:c:\aaa.txt
and if you click on B button,the path will be:c:\bbb.txt

i just dont know how to write this in the code
 
clarifications

well, i have a feeling that you think i am an expert... :) so i am not, so i will need help in the below level...sorry.

i have a form, in this form,i have to buttons. the buttons is doind now a simple action. when i click on button A, a text is written in the mail body.
when i click on the button B, a different text is being written in the mail body.

(inside the form there is a listbox that calls: txtbody) this txtbody is the body of the mail i want to send.

now, i know how to send these texts, what i dont know is how to send these two different mails with two different attachments.
when i click on A i want some file to be attached, when i click on the B button i want a different file to be attached, thus i will be able to control which attachment i want to send without the function that opened me the windows browser.

i hope i make it understandable now... :)

thanks
 

Users who are viewing this thread

Back
Top Bottom