User Created Email With An Image(s) in the Message Body in Grid Application

Hi Everyone,

I need a bit of guidance from all of you gurus!

I have created a Grid Application and an “Email” Button with on record email creation which works just great.

I would really like to be able to use the HTML Editor to first create the email message before the end user selects the records which are to be emailed.

Included at the top of the actual email, I would like the end user to be able to upload an image(s) into the library which could be selected and embeded at various locations in the message body.

It would appear that SC is using Swift Mailer so I would like to utilize this framework if possible.

Anyone tried this before?

All suggestions/examples would really be appreciated.

Ken

It can work if you embed the images as url’s in your tiny-mce. PRoblem is that the tinyMCE does not have the fileupload plugin so you need to enter the path to the image yourself. But I managed to email nice templates edited with tinyMCE and by replacing template variables to database data.

Inline Code Example?

Hi Albert,
I’m attempting something like the following but wish to have a .png at the top of the email then the Dear…

$mail_message = “Dear “.$var_FirstName.”, <br><br> Spring is finally here after a long winter…”; // Message body

Would you mind letting me know a code recomendation and placement if say for instance I would like the file “header_image.png” embeded before the “Dear…”

Thanks for all of the time you have spent helping us with Scriptcase. You are truely a valued member that we look up to!

What I useually do is create a template file with tinyMCE. Then I do a str_replace to replace variables in the template by a variable. To insert a logo I simply apply an image by an external reference. This way the email to send is easy to modify if the customer wishes it.

Point is that I am sending html mail. So I have <img source=…> in my code. Don’t forget to set the H value to allow sending html mail. In general I do it the old-fashion way. I create a table to setup my page including the images.