can a geo scripts be sent in email?

Discussion in 'Programming' started by AMFsound, Sep 11, 2010.

  1. #1
    hey roomies,

    can I place a geo script when sending email so it will
    show the name of the local city to the recipient?

    I have html options in email (who doesn't!) but I don't know if a
    script I have (I have a couple) either max mind or geo java script
    works in email?

    thanks !! I'm open to any thoughts

    AMF~
     
    AMFsound, Sep 11, 2010 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Well, I am not sure if calling a script generating html output in email will be allowed.

    I would suggest to keep img tag with source to a php script which will generate an image of the city name based on the geocode data received from user's ip address.

    I recommend using MaxMind for this purpose.
     
    mastermunj, Sep 29, 2010 IP
  3. jocurileus

    jocurileus Peon

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I do think that mastermunj idea is the best. I can't think of any other way.
     
    jocurileus, Sep 29, 2010 IP
  4. AMFsound

    AMFsound Peon

    Messages:
    187
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    that was very creative thanks for the idea and suggestion
     
    AMFsound, Sep 29, 2010 IP
  5. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Your going to be very hit and miss with running javascript in an email and probably not worth trying.

    Your best option is to capture the IP at the same time as capturing the email address and use that to generate the emails with the correct city name in it.

    The idea of using a server side script to output the city name is a good one if you haven't captured IPs and will be more "realtime" if people are in hotels etc when accessing their email but will mean that people will have to look at the HTML version and have internet images turned on.
     
    AstarothSolutions, Sep 30, 2010 IP