email - Embed gvis object (image stored as HTML) as inline in mailR - R -
i working on googlevis
chart , wanted embed gvis object (image stored html) inline using mailr
package.
i have below code send mail sever -
library(mailr) send.mail(from = "admin_xxx@apsmail.xx.xxx.xx", = c("first.second@jba.com"), subject = paste("batch job stats on",now), body = paste("dear sir/madam,<br><br> please find below image",".<br><br>", "<img src=\"d:/xx/batch_processing/batch_processing_run/rplot1.png\">",".<br><br>" ), html = true,inline = true, smtp = list(host.name = "xxxx01.xxx.xxx.xx"), authenticate = false, send = true)
the above code working fine - , embedding image (present in d drive of server)
now using googlevis
create chart , storing them in html
file. (present in d drive of server)
gauge <- gvisgauge(citypopularity, options=list(min=0, max=800, greenfrom=500, greento=800, yellowfrom=300, yellowto=500, redfrom=0, redto=300, width=400, height=300)) plot(gauge) print(gauge, tag="chart", file="test1.html")
so question not able embed .html
file (created using above code - test1.html
) send email googlevis
chart image embedded in mail description body.(i not able save gvis object -chart .png). have seen solution - similar in so, it's not helping me.
on off chance open "tmp.html" record (i.e, location says documents://*/tmp.html), security cautioning may happen. need html through http://.
so on off chance can alter website page tag accessible (e.g., blogger), can utilize duplicate , glue substance of tmp.html, similar this:
http://takahashik.blogspot.com/2011/01/googlevis-example.html
here celebrated "iris" form of case:
http://takahashik.blogspot.com/2011/01/googlevis-case for-information iris_10.html
something else, in event have web server, can utilize transferring tmp.html on server.
Comments
Post a Comment