Forums

Emails with dynamic 'from' names

pks 21 Nov, 2014
I am using Chronoforms V5 to enable visitors to send booking forms to our organisation. Under V4 RC3.0 I was able to have the form sent from the visitors email address. ie:
[list]# The visitor submits the form
# We receive an email from them showing their email address as the sender
# When we click 'Reply' our email is addressed to the visitor[/list]


Frustratingly the visitor's email shows as either:-
[list]# From a static name and address entered in the Basic -> From name & From email boxes
# From Root User & root@localhost[/list]
...but never shows as the {name} and {emailaddress} fields, even when I put the Advanced -> Dynamic from name & Dynamic from email fields in their boxes.


I have also tried putting the {name} and {emailaddress} fields in the Advanced -> Dynamic reply to name & Dynamic reply to email boxes as recommended in a post on this forum. However, clicking on 'Reply' in my mail client (Outlook) merely replies to the static address (or to root@localhost depending whether there is a valid address in the 'From' box).

Has anybody worked out how to have the dynamic data used to show the sender's name and email address? And if so, please could you help point me in the right direction?


Note.
I have a form which does exactly this in V4 RC 3.0 on a Joomla 2.5 site. As the old site is live online and the new Joomla 3 site is only on my PC, I can refer to the old settings for comparison. It utilises the Email [GH] custom action, but I have not found this anywhere for the V5 version of Chronoforms.
pks 21 Nov, 2014
Answer
1 Likes
Solved it 😀 ...after a few hours of trial and error. 😟

For the sake of anyone else who wants the info:
In Advanced ->Dynamic from email (& indeed, any other dynamic boxes) enter ONLY the fieldname and not {fieldname} - ie: do NOT include the curly brackets '{' and '}' ...unlike what was needed for the [GH] Custom Action where you did need to use the curly brackets. Ho hum.
GreyHead 22 Nov, 2014
Hi pks,

The standard Mail actions have only ever used plain input names with no quotes or brackets. My Email [GH] action allowed you to mix and match static and dynamic addresses in the same box so used curly brackets to show the difference.

I haven't so far found the time to update my Email [GH] action to CFv5 :-(

Bob
ron 30 Nov, 2014
Using V5 and having tried all of the above, still can't get it work as pks has done. Using the form exactly as he is and was works well in the older version of Chronoforms. Have been at it for hours and still can't get it too work. Any other thoughts?

Thanks
GreyHead 30 Nov, 2014
Hi ron,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.

Bob
ron 30 Nov, 2014
Array
(
    [option] => com_chronoforms5
    [chronoform] => EventQuoteRequest
    [event] => submit
    [text1] => ron
    [text2] => team
    [text3] => ron
    [text4] => 3346709953
    [emailaddress] => ron@butterandeggadventures.com
    [datepicker15] => 11-30-2014
    [text7] => 11
    [text8] => all day
    [checkbox_group10] => No
    [text12] => 
    [datepicker13] => 
    [captcha] => 
    [button16] => Submit
    [cf_id] => 0
    [ip_address] => 64.130.113.22
)

Array
(
)

Errors

Array
(
)

Debug Info

Array
(
    [4] => Array
        (
            [DB Save] => Array
                (
                    [Queries] => Array
                        (
                        )

                )

        )

    [3] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:ron@butterandeggadventures.com
                    [2] => Subject:Event Quote Request
                    [3] => From name:Organization or Person
                    [4] => From email:text5
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Body:
<table>
<tr><td>Organization or Person</td><td>ron</td></tr>
<tr><td>Goals for Event (i.e., teambuilding, recreation)</td><td>team</td></tr>
<tr><td>Name of authorized representative</td><td>ron</td></tr>
<tr><td>Phone</td><td>3346709953</td></tr>
<tr><td>email address</td><td>ron@butterandeggadventures.com</td></tr>
<tr><td>Potential Date of Event</td><td>11-30-2014</td></tr>
<tr><td>Estimated Attendance</td><td>11</td></tr>
<tr><td>Time at Camp (i.e., all daylight house, half day, etc.)</td><td>all day</td></tr>
<tr><td>Do you want Catering?</td><td>No</td></tr>
<tr><td>If yes, what meal, or snacks only</td><td></td></tr>
<tr><td>What, if any, is your budget for this event?</td><td></td></tr>
<tr><td>Select Date</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
</table><br /><br />IP: 64.130.113.22
                )

        )

)
GreyHead 30 Nov, 2014
Hi ron,

It looks as though you have text5 in the From Email address but there is no text5 input in your form, it's called emailaddress.

Bob

I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.
ron 01 Dec, 2014
Hey Bob: I changed it to "text5" for a try, as I have had emailaddress in before. I have copy a debugger for one last try tonight, so if you see anything else that may be wrong. I appreciate your help in this matter and I am sure it is operator error.

Array
(
    [option] => com_chronoforms5
    [chronoform] => EventQuoteRequest
    [event] => submit
    [text1] => ron
    [text2] => team
    [text3] => ron
    [text4] => 3346709953
    [text5] => ron@butterandeggadventures.com
    [datepicker15] => 11-30-2014
    [text7] => 11
    [text8] => all day
    [checkbox_group10] => No
    [text12] => 
    [datepicker13] => 
    [captcha] => 
    [button16] => Submit
    [cf_id] => 0
    [ip_address] => 64.130.113.22
)

Array
(
)

Errors

Array
(
)

Debug Info

Array
(
    [4] => Array
        (
            [DB Save] => Array
                (
                    [Queries] => Array
                        (
                        )

                )

        )

    [3] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:ron@butterandeggadventures.com
                    [2] => Subject:Event Quote Request
                    [3] => From name:Organization or Person
                    [4] => From email:info@butterandeggadventures.com
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Body:
<table>
<tr><td>Organization or Person</td><td>ron</td></tr>
<tr><td>Goals for Event (i.e., teambuilding, recreation)</td><td>team</td></tr>
<tr><td>Name of authorized representative</td><td>ron</td></tr>
<tr><td>Phone</td><td>3346709953</td></tr>
<tr><td>email address</td><td>ron@butterandeggadventures.com</td></tr>
<tr><td>Potential Date of Event</td><td>11-30-2014</td></tr>
<tr><td>Estimated Attendance</td><td>11</td></tr>
<tr><td>Time at Camp (i.e., all daylight house, half day, etc.)</td><td>all day</td></tr>
<tr><td>Do you want Catering?</td><td>No</td></tr>
<tr><td>If yes, what meal, or snacks only</td><td></td></tr>
<tr><td>What, if any, is your budget for this event?</td><td></td></tr>
<tr><td>Select Date</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
</table><br /><br />IP: 64.130.113.22
GreyHead 02 Dec, 2014
Hi Ron,

That all looks OK - the Debugger says that an email was successfully sent. Have you checked your spam folder? Are info@ and ron@ different email boxes or aliases - that might cause a problem.

Bob
andrebertini 20 Nov, 2015
GH Hello, I have the same problem and could not solve, you can check for me?


Array
(
    [0] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:contato@jardinopolis.sp.gov.br
                    [2] => Subject:Contato do Site
                    [3] => From name:Prefeitura de Jardinopolis
                    [4] => From email:contato@jardinopolis.sp.gov.br
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:andre@jardinopolis.sp.gov.br
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<table>
<tr><td>Nome</td><td>Andre</td></tr>
<tr><td>Email</td><td>andre@jardinopolis.sp.gov.br</td></tr>
<tr><td>Assunto</td><td>assunto</td></tr>
<tr><td>Mensagem</td><td>mensagem</td></tr>
</table>
                )

        )

)
GreyHead 20 Nov, 2015
Hi andrebertini,

What problem do you have exactly?

Please make sure that the To and From email addresses are different - in your example they are the same.

Bob
This topic is locked and no more replies can be posted.