In the autoresponder can we have images? Is there a limitation to only allow text? Everytime I add an image I get an error. The error is below
If I leave the image out this code works fine.....If i leave it in the code errors.
I've put this code here: "On Submit code - after sending email:"
Can you let me know what i can do to make this work?
Please and Thank you
Paaren
.../components/com_chronocontact/chronocontact.php(567) : eval()'d code on line 5
If I leave the image out this code works fine.....If i leave it in the code errors.
I've put this code here: "On Submit code - after sending email:"
<?php
$recipient = $_POST['text_2'];
$subject = "Widgets - thanks";
$html_message = "<p>Dear ".$_POST['text_'].",</p>
<br><p>Thank you for your interest in Widgets<br />We will review your request and contact you shortly.</p><br><img src="images/stories/easy1_short.png" border="0" width="225" height="118" /><a href=\"http://www.Widgets.com/\">Widgets.com</a>
<p>Widgets Admin.</p>";
mosMail($from, $fromname, $recipient, $subject, $html_message, true );
echo $html_message;
?>
Can you let me know what i can do to make this work?
Please and Thank you
Paaren
Hi Paaren,
you didn't add back slashes before the image src path, your code should be like this :
you didn't add back slashes before the image src path, your code should be like this :
<?php
$recipient = $_POST['text_2'];
$subject = "Widgets - thanks";
$html_message = "<p>Dear ".$_POST['text_'].",</p>
<br><p>Thank you for your interest in Widgets<br />We will review your request and contact you shortly.</p><br><img src=\"images/stories/easy1_short.png\" border=\"0\" width=\"225\" height=\"118\" /><a href=\"http://www.Widgets.com/\">Widgets.com</a>
<p>Widgets Admin.</p>";
mosMail($from, $fromname, $recipient, $subject, $html_message, true );
echo $html_message;
?>
You learn something new everyday.....didn't know about the slashes.
Thank you very much! Great help. I'll give it a try.
Paaren
Thank you very much! Great help. I'll give it a try.
Paaren
Hi pdidy,
It's one of those PHP things. You identify a string by enclosing it in quotes "some words" but if you want to use quotes in the string then you need to tell PHP that they don't mark the end.
There are two ways of doing this either you can escape the quote with slashes as Max did, or - and I usually prefer this - you can use single quotes inside the string:
Bob
It's one of those PHP things. You identify a string by enclosing it in quotes "some words" but if you want to use quotes in the string then you need to tell PHP that they don't mark the end.
There are two ways of doing this either you can escape the quote with slashes as Max did, or - and I usually prefer this - you can use single quotes inside the string:
"<p>Dear ".$_POST['text_'].",</p>
<br><p>Thank you for your interest in Widgets<br />We will review your request and contact you shortly.</p><br><img src='images/stories/easy1_short.png' border='0' width='225' height='118' /><a href='http://www.Widgets.com/'>Widgets.com</a>
<p>Widgets Admin.</p>";
Bob
This topic is locked and no more replies can be posted.