How can I send inline attachments with D7 and IMSR suite?

mkmko
mkmko used Ask the Experts™
on
Hello all,

I need to use an old component suite (IMSR) with an old Delphi 7 project. I just have docs and help for this components but I can't find some description on how to send inline graphics using attachments. The requirement is to add some little icon-like graphics and one or two company logos in the mail footer.

So if I had those graphic files available on disk, how can I send them as inline graphics within a HTML mail, rather than as attached files?

Currently, I can send simple HTML files by writing HTML-style text into the mail body. I just don't know how to add attached files and refer to them from HTML mail.

Any help on this is appreciated.

TIA
Michael
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
Additional information: IMSR (Internet Mail Suite) was developed by ArGoSoft, but they don't sell it any longer. The last downloadable version seems to be v2.02, which we use in our old project.
Sinisa VukSoftware architect
Top Expert 2012

Commented:
Why not use Internet Component Suite (http://www.overbyte.eu/frame_index.html?redirTo=/products/ics.html), or Indy. Both support mail with attachment.

Author

Commented:
We once tested with Indy before we used IMSR - Indy wasn't very stable in the D7 version (at least, within our application). ICS could be another alternative that I will check. Thanks for this hint. I'll be back with results soon.
Michael
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Sinisa (et al),
sorry for the delay - I've been on vacation. Even if I worked with ICS in the past, I didn't do any mail stuff. Is there a simple example somewhere on how to use inline graphics in a HTML mail? I know the basics how to use links to graphics in HTML, but I don't know how to include those graphics into an email.

TIA
Michael
Software architect
Top Expert 2012
Commented:
There is demo project in component folder named OverbyteIcsMailSnd.
But there is similar question on EE - and with example at bottom. Please, try it.

Author

Commented:
Thanks for all help and comments. I'm now able to send jpeg attachments inline using the data option of HTML tag img and coding the attachment as base64.

One problem is left. Using Outlook within our company, my created mails look fine on the receiver's inbox, but forwarding or answering from there doesn't include the graphics. I just get the red cross and a placeholder instead of the graphic item. The same happens when I'm sending such mail to webmailers like WEB.de.

What else can I do for the inline graphics being accepted by all mailers and being valid for forwarding/answering?

Currently I'm using this syntax in HTML code:

<img width="xx" height="xx" src="data:image/jpeg;base64,=someBase64Code...." alt="ItemDesc"/>

Open in new window



TIA
Michael

Author

Commented:
Thanks for the hint to ICS and to the example code. Even if including inline graphics into HTML mail is a bit tricky, I'm now able to do it either way - IMS and ICS (and Indy maybe).

TIA
Michael

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial