mailto

How to pass an URL in mailto's body

柔情痞子 提交于 2019-12-08 14:56:20
问题 I need to send an URL of my site in the body so the mail recipient can click on that to join my site. However currently mail client renders the mail like this: Link goes here http://www.example.com/foo.php?this=a The URL is truncated on the & symbol, thus the whole process of joining failed. How can I pass the URL like http://www.example.com/foo.php?this=a&join=abc&user454 in mailto body? My current HTML is the following: <a href="mailto:test@test.test?body=Link goes here http://www.example

Cordova iOS Simulator tel and mailto not working

懵懂的女人 提交于 2019-12-07 14:24:27
问题 I am unable to initiate the call and mailto via href on my iOS Cordova app. For the code: <a href="tel:XXX">Call</a> I get the error in the Xcode console as There is no registered handler for URL scheme tel. Same for mailto. How can this be fixed? I've added these to config.xml. <access origin="tel:*" launch-external="yes"/> <access origin="geo:*" launch-external="yes"/> <access origin="mailto:*" launch-external="yes"/> <access origin="sms:*" launch-external="yes"/> <access origin="market:*"

HTML: send image in mailto?body

吃可爱长大的小学妹 提交于 2019-12-07 07:36:30
问题 I am used to setting the body and subject of an email with text with the mailto function, eg: href="mailto:?body=Thanks!" But is there a way to send an image in the body? Eg: href="mailto:?body=<img src='http://www.example.com/image.jpg'>" (obviously above doesn't work - it just adds the html as a string) Any advice appreciated! Thanks! 回答1: From the horse's mouth: The "body" hname should contain the content for the first text/plain body part of the message. The mailto URL is primarily

How do I properly encode a mailto link?

时光总嘲笑我的痴心妄想 提交于 2019-12-07 01:46:51
问题 I am generating some HTML and I want to generate an XSS- and database-content-safe mailto link. What is the proper encoding to use here? How's this? myLiteral.Text = string.Format( "mailto:{0}?Content-Type=text/html&Subject={1}&body={2}", HttpUtility.UrlEncode(email_address), HttpUtility.UrlEncode(subject), HttpUtility.UrlEncode(body_message)); Should I use UrlEncode here? HtmlEncode ? Do what I did, then HtmlEncode the entirety? I'm writing HTML of a URL, so I'm a little unclear... @Quentin,

Google Chrome mailto Status canceled

谁都会走 提交于 2019-12-07 00:43:36
问题 I have a very simple hyperlink in my MVC App. <a href="mailto:&subject=somesubject" class="anchoroffset nounderline shareusingemail" title="Share using Email"><div class="sprite icon-email-gray "></div></a> Now when I click on this link in Google Chrome (v36.0.1985.125) I always notice Status cancelled under Network tab. However it does open my Outlook with the right subject. To troubleshoot this problem I disabled all the Chrome extensions too but it had no impact on the issue. This is not a

How do I make mailto subject and body work in gmail etc?

最后都变了- 提交于 2019-12-06 21:25:50
问题 Good afternoon, I have a site with a mailto link used to email my mothers business, pretty standard stuff I recently tried adding some other bits to get a standard subject and body, which works find when I use outlook (on my work PC) but doesn't work if I use my home PC which automatically opens gmail: The code I have for the mailto is: <a href="mailto:childminding.butterflies@gmail.com &subject=Childminding%20query &body=Dear%20Jo,%0A%0AYour%20message%20here%0A%0ARegards,%0A%0AName:%0AEmail:

Gmail signature not working on mailto

有些话、适合烂在心里 提交于 2019-12-06 18:33:26
问题 When I use Gmail to send an email, the email signature defined in the settings is automatically added at the bottom of the email. However, when I open a mailto link to send a message, the email signature is not automatically added. Here's the code: <a href="mailto:john@smith.com?subject=Thanks for your time&body=Hi,%0A%0AIt%20was%20a%20real%20pleasure%20speaking%20with%20you.%20Thank%20you%20for%20your%20time%20and%20we'll%20be%20in%20touch%20soon." target="_blank">test</a> And there's a

C# Start a new MailTo Process and HTML URL Encoding

此生再无相见时 提交于 2019-12-06 16:13:47
问题 I have created a new MailTo extension method for the Process class which just fills the Process with a new ProcessStartinfo which contains the required mailto arguments. I have created a method called FormatMailToArgument (Right at the end) which converts control characters to their Url Encoded equivelants and have tested this and it works but is there a better way of doing this? /// <summary> /// <see cref="Process"/> extension methods. /// </summary> public static class Processes { #region

mailto link encoding in MVC Razor

﹥>﹥吖頭↗ 提交于 2019-12-06 14:51:03
I have the following model public class EmailLinkModel { public string mailbody { get; set; } public string emailSubject { get; set; } public string emailto { get; set; } } mailbody contains the actual text which is a part of mail body. This text contains a long text [ contains special characters like ? < etc and can contain line breaks spaces etc] I want to create a mailto html tag in the partial view and i tried 3 different approaches and at some point my mailto link not opening the default mail client I think the reason was Html or Url ecnoding [ I am showing the mailbody content in a text

Passing special characters to mailto body blows up JavaScript

被刻印的时光 ゝ 提交于 2019-12-06 10:34:25
问题 I have a C# ASP.NET app that creates a JavaScript array of values for some user profile information. Client-side, I use jQuery/JavaScript to read the array and generate a mailto link. Some of the fields can contain special characters, such as ' & = / \ " . Here's the C# code: private String generateElementsArray(){ StringBuilder sb = new StringBuilder(); sb.Append("var currentElements = { currentUserName: '"); sb.Append(currentUserName); sb.Append("', currentUserEmail: '"); sb.Append