Results 1 to 6 of 6

Thread: E-mail hyperlink

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 1999
    Location
    Riverside California USA
    Posts
    13

    Wink

    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

  2. #2
    Hyperactive Member tomcatexodus's Avatar
    Join Date
    Feb 2001
    Posts
    372

    Talking ...

    Make the URL for the hyperlink:

    Code:
     mailto:[email protected]
    (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. )

    I hope that works...
    IWS

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 1999
    Location
    Riverside California USA
    Posts
    13

    Unhappy E-mail

    Where do I put the code?

    How do I establish the Hyperlink in VB?

    If i just put the code "mailto:[email protected]" on the click event of a command button it wont work.

  4. #4
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    LoCal
    Posts
    280
    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:

    Code:
    Response.Write "<a href:='mailto:[email protected]'>Send Mail</a>"
    Sorry if I'm off the mark but I'm not sure if I understood the question correctly.
    Achichincle

    VB6 (VSEE SP5, W2KPro)
    ASP
    HTML

  5. #5
    Guest
    the mailto: link is just that - a link. read it all as a URL and do with it as you please.

  6. #6

    Thread Starter
    New Member
    Join Date
    Feb 1999
    Location
    Riverside California USA
    Posts
    13

    Smile E-mail Link

    Thanks

    the thread in general VB questions solved the problem

    works great

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width