2

I'm trying to send email with clickable link in body with mailto. I have been googling and found some articles, but it does not helped me. Same with my problem Stackoverflow question but accepted answer does not work. There is sample you can check quick, when you I click to link it will open new email but link is plain text not clickable.

Here is what I'm trying to do:

Process.Start($"mailto:?subject={subject}&body=there should be clickable link https:/www.google.com/maps/place/555");

Thanks for any help!

Community
  • 1
  • 1
Jamaxack
  • 2,400
  • 2
  • 24
  • 42
  • `Process.Start` is used to run a command as a new process in a desktop app. It then looks like you have quasi-jQuery (which is JavaScript for the browser). Without more details, it's impossible to figure out what you're trying to do here. – Justin Niessner Feb 17 '16 at 04:23
  • @JustinNiessner thanks for your reply, I'm trying to send an email, that contains a clickable link in body – Jamaxack Feb 17 '16 at 04:25
  • @JustinNiessner now I'm able to send an email with Process.Start($"mailto: but my link is not clickable it is just like text – Jamaxack Feb 17 '16 at 04:26
  • Possible duplicate of [MailTo with HTML body](http://stackoverflow.com/questions/5620324/mailto-with-html-body) – vesan Feb 17 '16 at 05:10
  • @vesan this is not at all duplicate with question that you mentioning – Jamaxack Feb 17 '16 at 05:36
  • @vesan It will be good if you explain me how to fix my problem – Jamaxack Feb 17 '16 at 05:46
  • Does encoding the URL work? https%3A%2F%2Fwww.google.com%2Fmaps%2Fplace%2F555 – spaceplane Feb 17 '16 at 07:49
  • @spaceplane no, it does not work – Jamaxack Feb 17 '16 at 07:50
  • 1
    @Jamaxack vesan is completely right on the duplicate hint. **A clickable link is html** as in `Google`. Everything else would just be a mail program, automatically converting URL strings to links in their non-standard interface. – grek40 Feb 17 '16 at 08:28
  • By the way: if I use your exact code from the question and just replace the `$` in front of the string by `@` (because C# doesn't like the `$` there) I get your desired result in outlook 2010. As commented, it depends on the mail client. – grek40 Feb 17 '16 at 08:42
  • @grek40 you are right about email client, now I'm getting what I want in outlook, but in windows's email client it does not work, and about $ this is C# 6 new sintax instead of string.Format() – Jamaxack Feb 17 '16 at 08:50

0 Answers0