Results 1 to 5 of 5

Thread: mail() function

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    I'm mobile
    Posts
    166

    mail() function

    Hello!
    I'm quite a newbie with PHP and want help with the mail()-function.

    I've got a page where you can tip others about this page and that's why I've an hidden variable on the page called $page with the address to this page. My problem is that I can't get this variable into the mail I'm sending. it only prints out $page in the mail and not the URL. Anyone got any ideas?

    thx!
    [p r a e t o r i a n]

  2. #2
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    post your exact code so I can see what exactly you are testing. Its hard to just imagine what you wrote.

    -Matt
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    i'd imagine it's a quoting problem since you say it prints $page instead of the contents of $page, try one of these

    PHP Code:
    $stufftomail 'hello, this is a url ' $page ' I know you like it';
    $stufftomail "hello, this is a url $page I know you like it"

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    I'm mobile
    Posts
    166
    chrisjk:
    Thx for your suggestion, will try it later when I come home.
    [p r a e t o r i a n]

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    I'm mobile
    Posts
    166
    it works! thank you very much!
    [p r a e t o r i a n]

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