Forums

1 Problem and 1 question on Email [GH} action

tsili 11 Jan, 2012
Hi,

I have installed Email [GH} action to be able to send a mail based on the input selected from a dropdown field.
I have 1 question and 1 problem.
The problem first:
Reply to name / Reply to email don't seem to work if they are both dynamic. If on the other hand you set only one of them as dynamic (field name inside curly brackets) and the other as static (i.e. [email]email@email.com[/email]) then the dynamic field seems to work fine.
The question:
In my dropdown field, I have set the options as following:
[email]sales@company.com[/email]=Sales Department
[email]marketing@company.com[/email]=Marketing Department.
Is it possible in the email template, instead of getting the value (i.e. [email]sales@company.com[/email]) to get the text (Sales Department)?

Thank you in advance!
GreyHead 11 Jan, 2012
Hi tsili,

I'm not sure why the Reply To entries are giving problems; I'll take a look at the code. From memory they are both handled in the same way.

The answer to your second question is to avoid putting the email in the Form HTML at all (if you do there is a chance that the address will be scraped and spammed). Instead put a code for the department and look up the name and email address after the form is submitted. If the list is short I'd use an array of values and look up the data I needed from that.

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