• mcibene

    (@mcibene)


    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Benjamin Pick

    (@benjamin4)

    That’s weird. I mean yes it can happen that an IP doesn’t have any data associated, but then the call in the backend is the same, so the result should be the same as well …

    If you use the shortcode “[geoip_detect2_user_info]” in a post or page, which output do you get?

    Thread Starter mcibene

    (@mcibene)

    When I put that shortcode on a page and visit the page, it shows correct info for my IP, Country, State or region, and City.

    Not sure why it isn’t showing up in mail messages.

    Any thoughts?

    Thread Starter mcibene

    (@mcibene)

    The shortcode is on this page: https://megavoice.com/test/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Won’t Show Country Info In Email’ is closed to new replies.