SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: php dought

  1. #1
    SitePoint Zealot
    Join Date
    Jul 2009
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php dought

    how to sent a link through the mail function so what the user can click it and directly go to the website from the mail

    this is my mail code
    $headers1 = "MIME-Version: 1.0\r\n";
    $headers1 .= "Content-type: text/html; charset=iso-8859-1\r\n";
    $headers1 .= "From: 'kuttus'\r\n";
    $to = $_POST['txtEmail'];

    $subject = "Conformation mail from kuttus website registration";

    $message = "registration succefull \r\nline2\r\nline3";

    ini_set("sendmail_from","kuttus@soft.com");
    ini_set("SMTP","webmail.jazirasoft.com");
    if(mail($to,$subject,$message,$headers1))

    in this where i acan give the hyperlink address to get it in the mail body pls show it through code

  2. #2
    SitePoint Evangelist
    Join Date
    Oct 2005
    Location
    Michigan, USA
    Posts
    434
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    For a plain text email -which this is - just make sure http:// is at the front of the url and it should become a link by most email clients (not AOL). This would go in $message
    - Robert

  3. #3
    <?php while(!sleep()){code();} G.Schuster's Avatar
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is not a reply to your question but a "complaint" about a thing that's been bothering me for some days now...
    Could you please use meaningful thread titles in the future?
    I just checked your last posts and every single one is "please help me", "xyz dought", "dought in xyz" or so.
    That's absolutely annoying and against all rules of netiquette.

    And please, please get yourself a PHP book or at least a copy of the docs (http://www.php.net/manual/en/)


Bookmarks

Posting Permissions

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