Tuesday, 16 December 2014

ASP.NET - how to open mail program on client computer

Watch this example on YouTube

The following code will open mail program on client's computer and will populate email, subject and body with some values:
   Page.ClientScript.RegisterStartupScript(this.GetType(), "some name",
                "parent.location='mailto:name@name.com?Subject=some subject&body=Line One%Line Two'", true);

No comments:

Post a Comment