The code is really too simple, as long as you are willing to really just Ctrl + C thing. It is convenient for you to write less code and directly upload the code.
Using system; using system. net; using system. windows; using system. windows. controls; using system. windows. documents; using system. windows. ink; using system. windows. input; using system. windows. media; using system. windows. media. animation; using system. windows. shapes; using Microsoft. phone. tasks; namespace microblogforwp7.classes. util {// <summary> /// send email /// </Summary> public class sendemail {/// <summar Y> // send email /// </Summary> /// <Param name = "emailaddrss"> email address </param> /// <Param name = "emailcontent "> email content </param> /// <Param name =" emailsubject "> email title </param> /// <Param name =" fromemail "> from email address </param> // <returns> </returns> Public bool sendemailfrom (string emailaddrss, string fromemail, string emailsubject, string emailcontent) {emailcomposetask task = new emailcomposetask (); If (checkemail (emailad Drss) & checkemail (fromemail) & fromemail! = "" & Emailcontent! = "") {Task. to = emailaddrss; // mail address task. cc = fromemail; // The email comes from the address task. subject = emailsubject; // mail title task. body = emailcontent; // right-click the content task. show (); Return true;} else {return false ;}} /// <summary> /// verify the email format /// </Summary> /// <Param name = "emailaddress"> email address </param> /// <returns> </returns> Public bool checkemail (string emailaddress) {// verify the e-mail Format String regexemail = "^ \ W + ([-+.] \ W +) * @ \ W + ([-.] \ W + )*\\. \ W + ([-.] \ W +) * $ "; system. text. regularexpressions. regexoptions Options = (system. text. regularexpressions. regexoptions. ignorepatternwhitespace | system. text. regularexpressions. regexoptions. multiline) | system. text. regularexpressions. regexoptions. ignorecase); system. text. regularexpressions. regEx regemail = new system. text. regularexpressions. regEx (regexemail, options); string email = emailaddress; If (regemail. ismatch (email) // enter the regular expression {return true;} else {return false ;}}} in the email field ;}}}}