简体   繁体   English

通过邮件联系表格7接收字段

[英]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*|test@hotmail.co.uk" 
"GB|GB@hotmail.co.uk" 
"Ireland|ireland@emeraldcolour.com" ]

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. 但这是通过电子邮件地址而不是GB,爱尔兰等来实现的。我需要这样,因为无论选择哪个国家都可以接收该电子邮件。

Any ideas? 有任何想法吗? Thanks! 谢谢! Scott 斯科特

This Contact 7 documentation explains how to retrieve any info from the selector. Contact 7文档说明了如何从选择器中检索任何信息。

You can try with [ raw {field name}], in your case ([_raw_recipient]. 您可以尝试使用[ raw {field name}]([_raw_recipient]。

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

PS I change the field name according your code PS我根据您的代码更改字段名称

I hope this can help you 希望对您有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM