bazzer747 25 Posted December 17, 2021 Hi, I create emails in HTML using the following code to display a signature in the message: cMsg:= cMsg + ' <img src="BarrysSignature.jpg" '> Which means I need to have the jpg available in the current directory (and distribute it with the executable). I also use these same signature jpgs elsewhere in my program as I've loaded them as resources. What would be better is if I used the resource for the signature in the email, rather than the external jpg picture. I've tried a few ways of doing this but can't get it working. Any thoughts, please? Share this post Link to post
Lajos Juhász 295 Posted December 17, 2021 I doubt this will work, you've to include the picture into the e-mail, I don't know any e-mail client that would search the HDD for an e-mail attachment. You should check out: https://www.indyproject.org/2005/08/17/html-messages/ and https://www.indyproject.org/2008/01/16/new-html-message-builder-class/ 1 Share this post Link to post
Remy Lebeau 1436 Posted December 17, 2021 (edited) You asked this exact same question on StackOverflow, and received answers there: https://stackoverflow.com/questions/70394569/delphi-using-resource-in-email-rather-than-image Edited December 17, 2021 by Remy Lebeau Share this post Link to post
bazzer747 25 Posted December 17, 2021 Only because I'd received no replies to my question. Share this post Link to post
Remy Lebeau 1436 Posted December 17, 2021 11 minutes ago, bazzer747 said: Only because I'd received no replies to my question. You posted your question on this forum at 14:17:35Z, then you posted on StackOverflow at 14:21:24Z. That is a difference of only 4 MINUTES. These are NOT real-time forums. You have to give people TIME to answer. Personally, I didn't see your questions on either forum until 3 HOURS after you had posted them. Sometimes it can take people DAYS to answer. So please be patient. Also, it is generally considered rude to ask the same question on multiple forums at the same time. It means you consider other people's time less important than your own ("I posted here, but I'm not going to wait around for a response, I'm going to go over there instead"). Share this post Link to post
bazzer747 25 Posted December 17, 2021 That's untrue. I posted the question a few days ago on a different forum, but when I received no replies I thought I had posted it in the wrong forum. Hence I re-posted it in what I then considered a more appropriate forum. As I look at Stackflow a lot it s4eemed reasonable to see if anyone different had any thoughts. I was not assuming peoples time is less important, I value both forums and everybodies time as important to me and am very thankful. Do not assume the worst of people. Share this post Link to post
Remy Lebeau 1436 Posted December 17, 2021 1 hour ago, bazzer747 said: That's untrue. I posted the question a few days ago on a different forum According to the timestamps of the posts, you posted this topic here at 2021-12-17 14:17:34Z, and posted on StackOverflow at 2021-12-17 14:21:24Z. Same day, 4 minutes apart. Share this post Link to post
bazzer747 25 Posted December 17, 2021 And on Monday, 13th December at 14:18 in the RTL & Delphi Object Pascal forum, just as I said. Perhaps you didn't understand my comment when I said I'd posted the question on a different forum (which I thought was maybe the wrong one)? I have the utmost respect for anyone who helps with queries as it certainly helps me understand this great language. As I always ask for suggestions and not solutions I can then think my way into the problem if given an idea of how to progress. I've always though Praxis and StackFlow are completely different forums and often see similar questions posted on both forums. Share this post Link to post
Remy Lebeau 1436 Posted December 20, 2021 On 12/17/2021 at 2:06 PM, bazzer747 said: And on Monday, 13th December at 14:18 in the RTL & Delphi Object Pascal forum, just as I said. Ah. I see it now. I wonder why that message didn't show up on my feed earlier? Oh well. Share this post Link to post