Link to home
Start Free TrialLog in
Avatar of maxlucy
maxlucy

asked on

How to send email in delphi with image

Hi i want to be able to click "send" button and for to put the image when before i send the email in my default email client "thunderbird" and add the following.

SEND.CLICK =
1) the subject being =  labelsales.caption;
2) the email address = DBAdd1.text
3) the message body needs to be an image of

C:\Users\Thomas\Desktop\SITESCANS\NEW\myfilename' + '\' + folder.text + '\' + DBSheet.text + '\' +  edit1.text;
Then send..

this is a extention of a JPG images, please do not alter the above line in any way.

I want to be able to click the send button, and for it to send the email out withought me click send again on the email if possible. Aslong as the image is inside the email it will be fine i guess too...


when i drag the image into the composed email its fine, so i want delphi to do that. cheers
     

so to recap..  send button clicks >> opens new mail >> adds subject from labelsales.caption >> adds email from dbadd1.text >> adds image from link above >> send email..
Avatar of Sinisa Vuk
Sinisa Vuk
Flag of Croatia image

Why to open "anything" in Thunderbird. Why not create own email client like this:
http://delphi.about.com/od/indy/a/email-send-indy.htm
... here is more sources ... http://www.torry.net/pages.php?id=211

There are few examples how o implement email client and send messages on your own in Indy (comes with delphi) or ICS. Try it. You will not regret. Using another client for sending something except text is a pain.
Avatar of maxlucy
maxlucy

ASKER

im not really bothered what i send it with really, just aslong as it send the picture to the correct format above if someone can write the code for that please that will be grand!
ASKER CERTIFIED SOLUTION
Avatar of Sinisa Vuk
Sinisa Vuk
Flag of Croatia 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
Avatar of maxlucy

ASKER

good