mIRC Homepage
Posted By: RusselB Mailto link - 29/11/06 08:17 AM
I'd like to create a link in my dialog that will allow the user to send me an e-mail by clicking the link. I thought I'd seen something earlier, but a search over the past 5 years ended up giving me either 8 results (which were technically related to my search parameters) or over 300 results (I didn't feel like trying to pick through them).
Posted By: b1ink Re: Mailto link - 29/11/06 08:35 AM
Code:
/run mailto:[color:red]your email[/color]

example: mailto:khaled@mirc.com
Posted By: b1ink Re: Mailto link - 29/11/06 08:38 AM
You could also select the subject:

Code:
mailto:your@email.com?subject=Hi%20russelb
Posted By: Riamus2 Re: Mailto link - 29/11/06 02:35 PM
I think you could also use /link so it is an actual link rather than a button that uses /run...

/link mailto:your@email.com?subject=Hi%20russelb
Posted By: RusselB Re: Mailto link - 29/11/06 11:00 PM
Unfortunately, Riamus, when I tried /link I got an Unknown command error. /run works fine..I'll just have to include a check to determine if the /run command has been disabled or not.
Posted By: LonDart Re: Mailto link - 29/11/06 11:53 PM
I find that on my machine using

Code:
  /url -n name@server 


opens my email client with the email address inserted.

I'm using mIRC 6.17 on WinXP Home with OE6 as my email client.
Posted By: Riamus2 Re: Mailto link - 30/11/06 12:48 AM
Use this in the dialog creation:

link "your@email.com",ID,x y w h

And in sclick:

if ($did == ID) { url -n mailto:your@email.com?subject=Hi%20russelb }

That will let you use a link and it works with Outlook and should with any others as well.
© mIRC Discussion Forums