The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 4 of 4

Thread: Send URL via PHP mail form

  1. #1

    Send URL via PHP mail form

    Hi,

    I'm beginning to believe this simply can't be done. But I've been trying to send a bit of HTML via a PHP mail form, with no success.

    What I want is to be able to send the equivalent of: <a href="http://www.kirupa.com">Click Here</a>

    So instead of just adding "http://www.kirupa.com"; I would instead be able to have the words "Click Here", within the email that gets sent.

    Can this be done? Do I really need to approach this with a huge WYSIWYG system in place?

    Thank you,

    Mark

  2. #2
    jwilliam's Avatar
    476
    posts
    An intellectual carrot!
    Ya, you can do that... Read example #4 in the manual entry for mail:

    http://www.php.net/manual/en/function.mail.php

    Good luck...

  3. #3
    You need to look up "sending HTML emails with PHP" (the link in the above post has it). Basically you're trying to send HTML through a plain text email which is not going to work for you. So you have to send through the right headers to make it a HTML email.
    Jason Stockton - http://www.jasonstockton.com.au/

    The Web Development Blog - http://thewebdevelopmentblog.com/

    Web Resauce - http://www.webresauce.com/

  4. #4
    Hey,

    Thanks for your help! I did actually find my way on to that site at one point, but stupidly overlooked the thing I was actually after.

    Thanks again, it's exactly what I was after.

    Mark.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012