javascript - Calling Mailto inside body of another mailto -
javascript - Calling Mailto inside body of another mailto -
is possible give mailto within body of mailto?
i have vb.net code through opening outlook window.
i have below code,
smsg = user.redirect("mailto:" + legrev + "& cc=" + cc + "&subject= " + outersubject + "&body=" + body) scriptmanager.registerstartupscript(me.page, me.gettype(), "showalert", smsg, true) public function redirect(byval pagename string) string dim sb new stringbuilder() sb.append("window.location.href='" + pagename + "'; ") homecoming sb.tostring() end function
in body string have
mailto:" + innerto + "&cc=" + innercc + "&subject= " + innersubject
problem getting mail service opened subject set 'innersubject' instead of 'outersubject'
i think outersubject getting replaced innersubject. please help asap.
the body string needs escaped function uri.escapedatastring
. uri should end having 1 ?
in it, , none of &
characters body should visible. example:
mailto:john.doe@example.com?subject=test+message&body=mailto%3ajane.doe%40example.com%3fcc%3dbob%40bob.com%26subject%3dreply%2bto%2byou
javascript c# vb.net
Comments
Post a Comment