Hello,
I have a working form using image uploads and the image resizer mentioned here:
http://www.chronoengine.com/forums.html?cont=posts&f=4&t=12016
Everything is working well. ChronoForms is a great tool.
My email gets sent to a moderator who approves the image for display in a simple comments tool.
Chronoforms likes to send the original uploaded image as an attachment to the email, which is OK I guess but it would be nicer if I could send an email with a link to the resized version on the web site and NOT the full size image. I can handle all of this except that ChronoForms is determined that the original image will be attached to the email.
I took all reference of the image out of the email by overriding the email template with some code before the email is sent:
The message template simply contains
Still the image is attached. Is there a way for me to drop the original image from the email without making adjustments to CF itself?
Thanks for any help.
I have a working form using image uploads and the image resizer mentioned here:
http://www.chronoengine.com/forums.html?cont=posts&f=4&t=12016
Everything is working well. ChronoForms is a great tool.
My email gets sent to a moderator who approves the image for display in a simple comments tool.
Chronoforms likes to send the original uploaded image as an attachment to the email, which is OK I guess but it would be nicer if I could send an email with a link to the resized version on the web site and NOT the full size image. I can handle all of this except that ChronoForms is determined that the original image will be attached to the email.
I took all reference of the image out of the email by overriding the email template with some code before the email is sent:
defined('_JEXEC') or die('Restricted access');
$message = "";
$message .= "<h1>" . $_POST['user_name'] . ", has posted a comment at ..... <br /></h1>";
$message .= "<p><span>" . $_POST['title'] . "</span></p><hr />";
$message .= "<p><span>" . $_POST['comments'] . "</span></p><hr />";
$message .= "<img src=\"http://www..../.../" . $_POST['image_file'] . "\" />";
$_POST['sf_message'] = $message;
The message template simply contains
{sf_message}
Still the image is attached. Is there a way for me to drop the original image from the email without making adjustments to CF itself?
Thanks for any help.
Hi nfg,
The file information is in the $attachments array, not in the message html.
Bob
The file information is in the $attachments array, not in the message html.
Bob
Well, of course it is.
I'm trying not to make a habit of this dumb thing.
$attachments= array();
I'm trying not to make a habit of this dumb thing.
This topic is locked and no more replies can be posted.