|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
The only thing I see wrong with your code is that you need quotes around the TO email address (first argument).
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > phpmail() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|