Hi There,
I have the following question,
I have a form with a couple of input fields and i want to add a server-generated file as attachement to the form email.
The file gets properly generated but i have no clue on how to attach it to the email.
Is this in possible within chronoforms?
Kind regards,
Johan van Leur
I have the following question,
I have a form with a couple of input fields and i want to add a server-generated file as attachement to the form email.
The file gets properly generated but i have no clue on how to attach it to the email.
Is this in possible within chronoforms?
Kind regards,
Johan van Leur
Hi Johan,
The email sender looks for an array called $attachments - add the path of your file to this array and it should be sent OK.In OnSubmit Before:
Bob
The email sender looks for an array called $attachments - add the path of your file to this array and it should be sent OK.In OnSubmit Before:
<?php
$attachments[] = "some/path/or/other";
?>
Bob
Hi,
I found it. and it works.
I have another question about that.
My form sends 2 email messages. 1 to the user (with limited information) the other to the admin (with much more information)
Is it possible to send the first mail without attachment and the 2nd one with attachment?
or is there some other callback function between the different email messages that i can (ab)use?
Kind regards,
Johan van Leur
I found it. and it works.
I have another question about that.
My form sends 2 email messages. 1 to the user (with limited information) the other to the admin (with much more information)
Is it possible to send the first mail without attachment and the 2nd one with attachment?
or is there some other callback function between the different email messages that i can (ab)use?
Kind regards,
Johan van Leur
Hi Johan,
I think - can't check right now - that there's only one attachment array in the current release. But this did come up recently and Max has talked about changing it - possibly in the next release. I know that he's re-factoring a lot of the code to aid flexibility like this.
Bob
I think - can't check right now - that there's only one attachment array in the current release. But this did come up recently and Max has talked about changing it - possibly in the next release. I know that he's re-factoring a lot of the code to aid flexibility like this.
Bob
Hi Johan,
in V3.1 RC3 there is an option in the Email properties to disable/enable attachments per email! in RC4 chronoforms is going to have an API which will give you more control, but for this feature, its already there in RC3 only right now!
Cheers,
Max
P.S: I suggest you wait for RC4
in V3.1 RC3 there is an option in the Email properties to disable/enable attachments per email! in RC4 chronoforms is going to have an API which will give you more control, but for this feature, its already there in RC3 only right now!
Cheers,
Max
P.S: I suggest you wait for RC4
Hi Johan,
The email sender looks for an array called $attachments - add the path of your file to this array and it should be sent OK.In OnSubmit Before:
<?php
$attachments[] = "some/path/or/other";
?>
Bob
In RC5 I tried it and it's not work 😟 . Is there any changes in this version?
Hi Johan,
Yes it has changed, Max has just posted abotu attachements in another thread (in the last hour or so). I think that the code you need is there.
Bob
Yes it has changed, Max has just posted abotu attachements in another thread (in the last hour or so). I think that the code you need is there.
Bob
Thanx.
Sorry for duplicating same questions.
http://www.chronoengine.com/forums.html?cont=posts&f=2&t=14073#p31177
Sorry for duplicating same questions.
http://www.chronoengine.com/forums.html?cont=posts&f=2&t=14073#p31177
This topic is locked and no more replies can be posted.