Scott
Scott

Reputation: 59

Contact form 7 receiving field via mail

I have a few conditions and fields with my contact form, all is working fine. However I want to recieve the country and not the email address when the email is sent. Please see here:-

[select* recipient first_as_label 
"Market*|[email protected]" 
"GB|[email protected]" 
"Ireland|[email protected]" ]

My mail code is:-

<p>Email Address: <strong>[your-email]</strong></p>

But this comes through as the email address and not GB, Ireland etc... I need to have it this way, as whatever country is chosen will recieve the email.

Any ideas? Thanks! Scott

Upvotes: 0

Views: 149

Answers (1)

Jose M. Gonz&#225;lez
Jose M. Gonz&#225;lez

Reputation: 14980

This Contact 7 documentation explains how to retrieve any info from the selector.

You can try with [raw{field name}], in your case ([_raw_recipient].

<p>Email Address: <strong>[_raw_recipient]</strong></p>

P.S. I change the field name according your code

I hope this can help you

Upvotes: 1

Related Questions