how can i add the cc, subject and body to the mailto functionality using the ASP.net with c#
string email = "abc@abc.com"; ClientScript.RegisterStartupScript(this.GetType(), "mailto", "parent.location='mailto:" + email + "'", true);
Hi amitgrover,
Check with below code.
string email = "abc@abc.com"; string cc = "xyz@abc.com"; string subject = "Test Subject"; string body = "Test Body."; ClientScript.RegisterStartupScript(this.GetType(), "mailto", "parent.location='mailto:" + email + "?subject=" + subject + "&body=" + body + "&cc=" + cc + "'", true);
Please refer below link for more details.
https://blog.escapecreative.com/customizing-mailto-links/
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.