Jump to content
bazzer747

Using Resource in Email

Recommended Posts

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
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

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
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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×