PDA

Click to See Complete Forum and Search --> : E-mail hyperlink


Kornel
Mar 1st, 2001, 01:03 PM
I want to add a hyperlink to a specific E-mail address to my VB application. Assuming the user is logged on to his/her internet provider it should bring up the E-mail screen when the user clicks on the link.

How can I do This?

Please help

tomcatexodus
Mar 1st, 2001, 01:22 PM
Make the URL for the hyperlink:

mailto:someguy@somewhere.com

(obviously the someguy would be the name of the email address you are mailing it to, and the somewhere would be the domain you are mailing to... duh. :D)

I hope that works... :p

Kornel
Mar 1st, 2001, 02:14 PM
Where do I put the code?

How do I establish the Hyperlink in VB?

If i just put the code "mailto:someone@somwhere.com" on the click event of a command button it wont work.

Achichincle
Mar 2nd, 2001, 07:51 AM
Are you doing this on a web page or on a VB program?

If it's on a program then you'll have to write code to send an email since VB won't recognize HTML commands... There was a recent thread in 'General VB Questions' on how to do this - just do a search.

If you're coding a web page with VBScript - like an ASP page - then just make your VBScript code write out the tag:



Response.Write "<a href:='mailto:someone@somewhere.com'>Send Mail</a>"



Sorry if I'm off the mark but I'm not sure if I understood the question correctly.

Mar 2nd, 2001, 10:09 AM
the mailto: link is just that - a link. read it all as a URL and do with it as you please.

Kornel
Mar 2nd, 2001, 11:21 AM
Thanks

the thread in general VB questions solved the problem

works great