Thread: phpmail()

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Posts
    2
    Rep Power
    0
    This question might have been answered before - but I cannot find the answer.

    To get phpmail() to work I'm told to put this piece of code with the needed changes:

    <?
    mail(to-someone@somewhere.dk,"subject","body","From: Fornavn Efternavn <din-email@dit-domaene.dk>");
    ?>

    But I just do not know where to put it.

    I'm near to finish a new site using phpNuke.
    When people add a link to the database they can be notified by e-mail when the link has been added. But the e-mail address received from the site is not the right one - it can - I am told be changed with that code.

    Hope someone can guid me in the right direction - further information can be given a long with a copy of a file.

    - greetings from sunhawk
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    The only thing I see wrong with your code is that you need quotes around the TO email address (first argument).
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Southern California (transplant)
    Posts
    11
    Rep Power
    0
    Did the quotes do the trick?

    Maybe I misunderstood your question -- I thought it was about where to position the mail() function within your PHP code.

    Tim
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Posts
    2
    Rep Power
    0
    Sorry fo rnot replying - been away for very - just finished reading all the mails.

    I fixed the problem working my way through the file - finding the "e-mail"-code.

    There were qoutes and a pre-written e-mail-address.

    - greetings

    - sunhawk

IMN logo majestic logo threadwatch logo seochat tools logo