December 29th, 2000, 12:07 PM
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(email@example.com,"subject","body","From: Fornavn Efternavn <firstname.lastname@example.org>");
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
December 29th, 2000, 01:22 PM
The only thing I see wrong with your code is that you need quotes around the TO email address (first argument).
January 12th, 2001, 05:06 PM
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.
January 12th, 2001, 07:42 PM
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.