This is a migrated thread and some comments may be shown as answers.

mailto

2 Answers 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lisa
Top achievements
Rank 1
Lisa asked on 02 Aug 2012, 01:59 AM

 

Dim EmailAddress As String
'set EmailAddress to a value retrieved from the database dynamically
Dim mailStr= ("mailto:" & EmailAddress)
System.Diagnostics.Process.Start(mailStr)

With mailto, does it use the customer's or the web server's default mail client to open an Outlook message?
Also, does the web server must be able to send email through Outlook Express? If it uses the customer's mail client to send email then the web server does not need to be configured to open a message or send a message, correct?
Somehow that code works for localhost which has Outlook but not on other web server which has Outlook Express.

2 Answers, 1 is accepted

Sort by
0
Ivan Zhekov
Telerik team
answered on 02 Aug 2012, 12:15 PM
Hi, Lisa.

That question is a bit out of our scope, but we can answer it anyway:

The prefix "mailto:" is a registered URI prefix that is recognized by most, if not all browsers. What it does is upon clicking the link, it will open the default e-mail program, provided that there is one.

In addition, depending on the exact syntax of the link, the email program may populate some fields like TO, FROM, SUBJECT, BODY and others.

Once the user clicks "send message" in the email program, the message will be processed in accordance to the users settings. If the user does not have settings, he / she will go trough a basic wizard with few steps to enter credentials, servers and other information needed to send a message.

I hope that helps.

Regards,
Ivan Zhekov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Lisa
Top achievements
Rank 1
answered on 02 Aug 2012, 02:41 PM
Thank you for responding. I know what mailto does but don't know if it uses the user's default mail client or the web server's default mail client. As stated in my first thread that it works on my local machine but does not work when the code was moved to another environment. I'd appreciate if someone could fix this and answer my questions.
Tags
General Discussions
Asked by
Lisa
Top achievements
Rank 1
Answers by
Ivan Zhekov
Telerik team
Lisa
Top achievements
Rank 1
Share this question
or