mailto

Is there a “map:” URI prefix to launch map application? (like mailto: or tel:)

徘徊边缘 提交于 2019-12-18 03:06:55
问题 Is there such prefix for launching map application on phones, <a href="map:21st,High Street, London">Toto's home</a> like can do <a href="mailto:toto@gmail.com">Toto's mail</a> 回答1: geo: is an officially-recognised URI scheme, and maps: may be implemented in some clients. https://en.wikipedia.org/wiki/Geo_URI_scheme 回答2: In each plantform: Apple Documentation Example: <a href="http://maps.apple.com/?ll=12.34567,8.90123"> Android: Documentation Example: <a href="geo:40.726966,-74.006076">

Invoke / click a mailto link with JQuery / JavaScript

落花浮王杯 提交于 2019-12-17 21:57:43
问题 I'd like to invoke a mailto link from JavaScript - that is I'd like a method that allows me to open the email client on the users PC, exactly as if they had clicked on a normal mailto link. How can I do this? 回答1: You can use window.location.href here, like this: window.location.href = "mailto:address@dmail.com"; 回答2: You can avoid the blank page issue discussed above by instead using .click() with a link on the page: document.getElementById('mymailto').click(); ... <a href="mailto:...." id=

Open the href mailto link in new tab / window

瘦欲@ 提交于 2019-12-17 16:19:23
问题 I have an image which when click, I want to link to a mailto: <a id="mailto" href="mailto:hfms@live.com.my" target="_newtab" > <img src="@Url.Content("~/Content/HomePage/email.png")" alt="email" /></a> However, currently once its clicked, it will launch the email option to choose a mailto application, and once i choose, the mailto link is open in the current tab. This will cause user to leave the application. So, I want the page to sent email (by gmail, yahoo, etc ) is either open in new tab

Sending email to multiple recipients from UWP store app

我怕爱的太早我们不能终老 提交于 2019-12-14 02:11:16
问题 I have a simple goal, to open up an email (in Outlook 2016) with the To field configured for multiple recipients from a Windows 10 UWP app. I tried 3 approaches 1) The recommended way, as demod in the UWP samples, using the EmailMessage var emailMessage = new Windows.ApplicationModel.Email.EmailMessage(); emailMessage.Body = ""; foreach (Person p in SelectedPeople) { if (string.IsNullOrEmpty(p.Email) == false) { var emailRecipient = new Windows.ApplicationModel.Email.EmailRecipient(p.Email);

Creating an mailto handler app on Mac OSX

半腔热情 提交于 2019-12-13 15:35:00
问题 I am using mu4e in Emacs as my mail client, but I cannot figure out how to create a script that can pass on the mailto url to the following shell script: #!/bin/sh # emacs-mailto-handler mailto=$1 mailto="mailto:${mailto#mailto:}" mailto=$(printf '%s\n' "$mailto" | sed -e 's/[\"]/\\&/g') elisp_expr="(mu4e~compose-browse-url-mail \"$mailto\")" emacsclient -a \"\" --create-frame -n --eval "$elisp_expr" \ '(set-window-dedicated-p (selected-window) t)' When I call this script on my command line

I need to create a mailto link from PHP code

纵饮孤独 提交于 2019-12-13 09:29:39
问题 Ok, so at the moment my html form gathers data and posts it to a php form which then creates and sends an email (following code), however now I need the form to create a mailto link so I can send it to a different mail account from my iphone6, any help please???!! :) The code is: <?php ini_set( "SMTP", "localhost" ); ini_set( "smtp_port", "25" ); if ( isset( $_POST['caseref'] ) ) { $email_from = "dave@dave.com"; $to = "dave@dave.com"; $email_subject = "Arrival: " . $_POST['caseref']; function

Sending mail with line breaks using QDesktopServices::openUrl

被刻印的时光 ゝ 提交于 2019-12-13 06:25:28
问题 I tried to send an e-mail with a prepared subject, receiver and body using Qt. The mail shall open in the system default mail client. I am testing on Linux with KMail and Qt 5.5. This is the code I intended to use: QDesktopServices::openUrl(QUrl("mailto:?to=test@test.com&subject=Test&body=line1%0D%0Aline2", QUrl::TolerantMode)); The mail window opens, subject and receiver are ok. Unfortunately the line breaks in the body do not work. I also tried <br>, \n, \r\n but none of these worked. I

Visio 2010 using a page name in mailto link

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 06:10:30
问题 Is it possible to get the name of the current page dynamically and add it to the link? I am trying to add a "Feedback" button to each page of my visio diagram and want to create a mailto: hyperlink on that shape adding as much information as I can in the link. So, my link looks like mailto:TargetMailbox@mycompany.com?subject=Visio%20for%20Standards%20-Question/Comment XXXXXXXXXXX Add page name XXXXXXXXXXXXX &cc=LoggedinUser@mycompany.com&body=I%20have%20a%20question.%0AI%20would%20like%20to

How to specify default Lotus Notes “ACCOUNT” in mailto link

风流意气都作罢 提交于 2019-12-13 05:12:16
问题 Searched for this issue, but couldn't find any relevant post/solution on stackoverflow. Hence asking this question. I have a mailto link in my jsp, using which I am successfully able to launch Lotus Notes & populate Subject / To / Body / etc. However, in Lotus Notes, I have my own user account as well as a mailin-db, and I want to send the mail using the mailin-db. But whenever I launch using mailto, it always composes using my Personal account in Lotus Notes. Is there anything to specify

UriFormatException when using %40 instead of @ in mailto: protocol

混江龙づ霸主 提交于 2019-12-13 04:41:13
问题 I am writing a default mail client to handle when someone clicks mailto:bob@example.com craigslist mailto links have the form mailto:bob%40example.com I get an exception when this is used. here is some simple code to repeat the problem in c# System.Uri u1 = new Uri(@"mailto:bob@ms.com"); // ok so far System.Uri u2 = new Uri(@"http://somewhere.foo/profile/username%40somewhere.foo"); // still ok System.Uri u3 = new Uri(@"mailto:bob%40ms.com"); // crash here question 1: shoudn't mailto:bob