Welcome to Working With Rails

 

Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
How to embeded googlemap in emails
2 Posts
How to embeded googlemap in emails

Hi , I want to send googlemap via emails Can anybody suggest that how to embeded googlemaps in htmlemail pages.

Person
Forum Rating: 50
Sign In To Rate Post

The below URL will explain you "how to embed google maps as still images dynamically?"

http://www.labnol.org/internet/tools/embed-google-maps-still-images-email-blogs/2349/

you can see the requirement of longitude and latitude values to locate the google map and marker, If you see the url of the example mapped image.

http://www.google.com/staticmap?center=17.498727,78.36374&markers=17.498727,78.36374,red&zoom=13&size=450x250&key=ABQIAAAA6C4bndUCBastUbawfhKGURQviNTBAztVc6-FhSQEQv6BdFn_BBRfktMUHCKH-MICXpvRmJU3x-Ly0w

So just you want to get the Lat and Lon, then change the values dynamically on the above url. Then just add this image into you htmlized mail by standard tag as SRC attribute. Thats it. It works cool one of my app.

Regards, Gokul

2 Posts
Login to add your message