Forums

mails doesn't display pictures

tamarteleco 17 Dec, 2009
Hi,
I don't know if this post fit here, but I haven't found the topic.

Now the mails are being send and the records recorded in the database.
I would like that the email showes the image I have placed next to the text in the emails templates editor.
When I receive the email, the picture/logo is not displayed. I think this is because the address of the picture is sent but not the picture itself.

How do you achive to send emails with the text in the template and its pictures added with the editor?

Should I add a div, and make a css rule background for each picture, or there is a simpler way?

Thanks!
tamarteleco 17 Dec, 2009
Hi,
I attache what I receive if it helps...
Thanks.
GreyHead 17 Dec, 2009
Hi tamarteleco,

You'll need to add a full HTML img tag including the URL of the image. There are a few threads here about doing that.

Bob

PS I split these posts as they have nothing to do with the other thread about DB entries.
tamarteleco 17 Dec, 2009
Thanks it works for the emails.
I see that the thank you message won't work if I turn off the debug.
Is it normal?

Thanks Bob.
GreyHead 17 Dec, 2009
Hi tamarteleco,

No, a normal thank you message will display whether debug is on or off.

I suspect that your "Thank You" message is actually the dummy email that is displayed when debug is on.

To create a normal Thank You message add HTML (+PHP) to one of the OnSubmit boxes.

Bob
tamarteleco 17 Dec, 2009
Thanks Bob,
I pasted the code in "On Submit code - before sending email:" box and now it desplay fine.
But it doesnt't display the values between braces like {form_text_affected}.
Should I write some php code. Do you know what I have to type like <? php {form_text_affected ...

Thanks again!
GreyHead 17 Dec, 2009
Hi tamartelco,

The {field_name} syntax doesn't work there I'm afraid.

You need <?php echo JRequest::getVar('field_name', '', 'post'); ?>

Bob
tamarteleco 17 Dec, 2009
Pefect. It display the fields correctly.
Thanks for your help!!!!
tamarteleco 17 Dec, 2009
Thanks Bob,
To finish the thank you page, I have some garbage text displaying when the thank you page is showed.
This text comes from the text filled in the form in the step before. This text was displaying when I had empty my "Tooltip On Submit code - before sending email:" box. And If I let it empty it continues appearing. Do you know where is taken it, or where I could have typed a mistake?
I attache you a pic if it helps with the text that is appearing inside a red box.

Thanks again!
tamarteleco 17 Dec, 2009
I found it. Was in "Tooltip On Submit code - after sending email:"

Thanks, now is working perfect!!!

Now, I have to do another page to red the data from the table.

This is done with ChronoConnectivity, isn't?
This topic is locked and no more replies can be posted.