Hi all,
I have read previous posts about this issue, but I haven't solved my problem yet with the provided solutions!
First of all I am using Joomla 2.5.8 with ChronoForms V.4.
What I want is after a user submits his *name, *surname and *email on a form and the rest required information, on the sent email's 'From' field the following must appear:
From: Name Surname <email_address_of_the_sender>
Is there any possibility to take this result? The suggested php codes - with a hidden field and a custom code before email box in events didn't work for me. Any suggestions?
(Words marked with a * are actual fields of the form)
--
Thank you in advance
I have read previous posts about this issue, but I haven't solved my problem yet with the provided solutions!
First of all I am using Joomla 2.5.8 with ChronoForms V.4.
What I want is after a user submits his *name, *surname and *email on a form and the rest required information, on the sent email's 'From' field the following must appear:
From: Name Surname <email_address_of_the_sender>
Is there any possibility to take this result? The suggested php codes - with a hidden field and a custom code before email box in events didn't work for me. Any suggestions?
(Words marked with a * are actual fields of the form)
--
Thank you in advance
Hi,
Yes, just use the dynamic "from name" and "from email" fields in the email settings, and since you have the from name in 2 fields then you will have to concatenate them first using php, add a "custom code" action before the email action and use this code:
Now add "fullname" in the dynamic from name field.
Note: some ISPs may block this email message.
Regards,
Max
Yes, just use the dynamic "from name" and "from email" fields in the email settings, and since you have the from name in 2 fields then you will have to concatenate them first using php, add a "custom code" action before the email action and use this code:
<?php $form->data['fullname'] = $form->data['name'].' '.$form->data['surname']; ?>
Now add "fullname" in the dynamic from name field.
Note: some ISPs may block this email message.
Regards,
Max
This topic is locked and no more replies can be posted.