Hello !
I just want to attach automatically a doc file to an email. The user has nothing to upload, it's just an automatic attached file to the email that I need. Is it possible ?
Thank you
I just want to attach automatically a doc file to an email. The user has nothing to upload, it's just an automatic attached file to the email that I need. Is it possible ?
Thank you
So I found out how to attach file with this code :
But the thing is, I need this file to be sent to one of my two email adresses (one is a notification to me that somebody fill out the form and another is to the user, it's this one who need the file attached). I had the idea to use a IF condition with the "to" email adress but I don't know how to catch it ?
Thank you
<?php
$MyForm =& CFChronoForm::getInstance('MyForm');
$form_id = $MyForm->formrow->id;
$MyUploads =& CFUploads::getInstance($form_id);
$MyUploads->attachments [] = 'images/stories/MyFile';
?>
But the thing is, I need this file to be sent to one of my two email adresses (one is a notification to me that somebody fill out the form and another is to the user, it's this one who need the file attached). I had the idea to use a IF condition with the "to" email adress but I don't know how to catch it ?
Thank you
Hi MushRr00m,
Create two Email Setups one for you and the other for the user and only enable Attachments on the one for the user.
Bob
Create two Email Setups one for you and the other for the user and only enable Attachments on the one for the user.
Bob
Thanks a lot !
Works perfectly !
PS : Is it possible to change my pseudo ? When I register on the forum I enter "MushRr00m" instead of "Mushr00m".
Works perfectly !
PS : Is it possible to change my pseudo ? When I register on the forum I enter "MushRr00m" instead of "Mushr00m".
Hi Mushr00m,
I've changed your name - you'll need to use the new version to log in again.
Bob
I've changed your name - you'll need to use the new version to log in again.
Bob
Hi!
It does not work for Joomla 1.6 version.
There is no CFUploads class.
Anybody know hot to attach file in 1.6 version?
Thanks,
Boris
It does not work for Joomla 1.6 version.
There is no CFUploads class.
Anybody know hot to attach file in 1.6 version?
Thanks,
Boris
Hi Boris,
There are several posts about this in the ChronoForms v4 forum here.
Bob
There are several posts about this in the ChronoForms v4 forum here.
Bob
Hi GreyHead!
Thanks for your reply.
But I just found only this topic http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=26&t=20878 and it does not match the problem.
Can you provide me with the appropriate links?
Thank you,
Boris
Thanks for your reply.
But I just found only this topic http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=26&t=20878 and it does not match the problem.
Can you provide me with the appropriate links?
Thank you,
Boris
Hi Boris,
My aplogies, I was rushing through a backlog of posts and misread yours. I don't know how to do this in CFv4; I'll try to work it out when I have some time.
Bob
My aplogies, I was rushing through a backlog of posts and misread yours. I don't know how to do this in CFv4; I'll try to work it out when I have some time.
Bob
This topic is locked and no more replies can be posted.