Forums

How to get email with dynamic and static fields

jrthor2 12 Sep, 2012
I have a for where I want the email to go to a particular email address, and I want the from name and from email address to come from the form they filled out. Below is how I have it set up, but when the email is sent it has the name as "admin" and not the users name from the form and the from and reply to email looks like it is the users email address, which is what I want. I'm sure I'm just missing something in setting this up, could someone please help me?

Static
To (Required): [email]test@domain.com[/email]
Subject (Required): Vision Gathering Sign Up
BCC: [email]testbcc@different-domain.com[/email]

Dynamic
Dynamic From name: first_name last_name
Dynamic From email: email_address
Dynamic Reply to name: me last_name
Dynamic Reply to email: email_address

Thanks

UPDATE: I think I just found the issue. If for the Dynamic From Name and Dynamic Reply to name, I only use "first_name" it seems to work. So, how can I have "first_name" and "last_name" be in these fields? These are separate form fields on my form.
GreyHead 12 Sep, 2012
Hi jrthor2,

Please see this FAQ it talks about building a Subject but you can use exactly the same method in the Dynamic From Name box.

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.
jrthor2 12 Sep, 2012
Ok, i did what you suggested, but when I hit reply in my email client, it is actually putting 2 email addresses in the To box. It's using the Static from name/email and then also adds the Dynamic reply to/email address. Is this the intended behavior? I'd like to just hit reply, and it would reply to the user who submitted the form.

Thanks
jrthor2 14 Sep, 2012
Hmm, ok. I'd rather not update any core joomla code though, since it will just get overwritten every time there is an update for Joomla.

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