Won’t Show Country Info In Email
-
I have Contact Form 7 and GeoIP Detection plugins installed and activated. I put the shortcode “[geoip_detect2_user_info]” in the message body field under the “mail” tab in a contact form 7 form.
When I use the form, I get the following in an email:
“From: Test Name
Country: Test Country
Subject: Inquiry From Contact Page On MegaVoice.com
Message Body: Test Message————–
IP of the user: 50.156.139.138
————–
This e-mail was sent from the Contact Us form on MegaVoice’s Contact page (https://megavoice.com/contact/)”
You can see it just states the IP of the user but doesn’t show the country or any other information.
When I do a “Test IP Detection Lookup” for my IP, it shows the following.
$record->city->name Jacksonville [geoip_detect2 property=”city”]
$record->mostSpecificSubdivision->isoCode FL [geoip_detect2 property=”mostSpecificSubdivision.isoCode”]
$record->mostSpecificSubdivision->name Florida [geoip_detect2 property=”mostSpecificSubdivision”]
$record->country->isoCode US [geoip_detect2 property=”country.isoCode”]
$record->country->name United States [geoip_detect2 property=”country”]
$record->location->latitude 30.4901 [geoip_detect2 property=”location.latitude”]
$record->location->longitude -81.6717 [geoip_detect2 property=”location.longitude”]
$record->continent->code NA [geoip_detect2 property=”continent.code”]
$record->location->timeZone America/New_York [geoip_detect2 property=”location.timeZone”]Any ideas on how to get it to show the country in the email?
Thanks in advance!
- The topic ‘Won’t Show Country Info In Email’ is closed to new replies.