| Author |
Message |
Anubis_The_Jackal
Nuke Soldier


Joined: Aug 10, 2003
Posts: 12
|
Posted:
Sun Oct 24, 2004 4:05 pm |
  |
yes, please, or perhaps one that works with nuke 7.3 7.4 7.5 if that does not. i want to replace the entire mail function, not add a new one. |
|
|
   |
 |
ktunstall
Private


Joined: Jan 23, 2004
Posts: 36
|
Posted:
Fri Nov 05, 2004 6:42 am |
  |
This has been an ongoing problem since I started using nuke. Many servers, including my own, will not let you use the mail() function. It would seem that utilizing the smtp replacement include would be the way to go on this. I have used it much in the past with favorable results.
I have not tried it with 7.5 yet. I am about to do so in a few minutes...I will report. |
|
|
   |
 |
ktunstall
Private


Joined: Jan 23, 2004
Posts: 36
|
Posted:
Fri Nov 05, 2004 12:58 pm |
  |
I would also like to convey some info and ask a question.
Let's say that your running phpnuke on a unix machine. According to documentation, the invocation of the mail() function as it is in nuke as so:
| Code: |
| mail( $mailto, $mailsubj, $mailmsg, $mailheader ); |
However, I have been advised and have confirmed that the proper way to use the function is so:
| Code: |
| mail( $mailto, $mailsubj, $mailmsg, $mailheader, "-fyou@yoursite.com"); |
Note the sendmail flag at the end of the function "-f" followed by the e-mail address mail is sending from.
How does one reconcile this in a statement such as is in mainfile.php where the function is declare on line 1156 like such:
| Code: |
| mail($row[user_email], $subject, $body, "From: $from\nX-Mailer: PHP/" . phpversion()); |
|
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12368
|
Posted:
Fri Nov 05, 2004 2:43 pm |
  |
The last parameter sends a command line message. Specifically on Unix servers, this sets the default return email for sendmail
You can try
| Code: |
mail($row[user_email], $subject, $body, "From: $from\nX-Mailer: PHP/" . phpversion(),"-f".$from);
|
|
_________________ Helping those that help themselves
Read FIRST or DIE!
"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding |
|
     |
 |
Anubis_The_Jackal
Nuke Soldier


Joined: Aug 10, 2003
Posts: 12
|
Posted:
Sat Nov 06, 2004 1:24 pm |
  |
and a simple idiots guide to making nuke use smtp would be to use <insert here>? or follow <blank> instructions?
please fill out so we people with limited knowlage can fix our sites? |
|
|
   |
 |
logan-5-
Private


Joined: Oct 31, 2004
Posts: 46
|
Posted:
Sat Nov 06, 2004 2:13 pm |
  |
Can some one please post a fully working source for smtp |
|
|
   |
 |
Anubis_The_Jackal
Nuke Soldier


Joined: Aug 10, 2003
Posts: 12
|
Posted:
Sat Nov 06, 2004 5:47 pm |
  |
This issue is very important to some of us, and we beg of one of you to please look at it and see what can be done
Please |
Last edited by Anubis_The_Jackal on Fri Nov 26, 2004 1:21 pm; edited 1 time in total |
|
   |
 |
logan-5-
Private


Joined: Oct 31, 2004
Posts: 46
|
Posted:
Sat Nov 06, 2004 5:54 pm |
  |
I tried making a full addon using parts of all the scripts it wouldnt work
i need more peeople tom try it but you need to back up origionals |
|
|
   |
 |
Myst
Nuke Cadet


Joined: Dec 04, 2004
Posts: 3
|
Posted:
Sat Dec 04, 2004 11:47 am |
  |
did this ever get solved? |
|
|
   |
 |
Anubis_The_Jackal
Nuke Soldier


Joined: Aug 10, 2003
Posts: 12
|
Posted:
Sat Dec 04, 2004 12:35 pm |
  |
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12368
|
Posted:
Sat Dec 04, 2004 6:13 pm |
  |
|
     |
 |
Anubis_The_Jackal
Nuke Soldier


Joined: Aug 10, 2003
Posts: 12
|
Posted:
Sat Dec 04, 2004 11:22 pm |
  |
basically is there an entire file we can use. we need a file with all the changes to make.
for 7.3 .4 and .5 |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12368
|
Posted:
Sat Dec 04, 2004 11:59 pm |
  |
Well we are only volunteer support. This is a HOWTO thread afterall, its expected that you can modify these files yourself.
Perhaps to go the For Hire section and see if someone will do this for you. |
_________________ Helping those that help themselves
Read FIRST or DIE!
"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding |
|
     |
 |
Anubis_The_Jackal
Nuke Soldier


Joined: Aug 10, 2003
Posts: 12
|
Posted:
Sun Dec 05, 2004 12:20 am |
  |
the methods in the thread do not work, just want something cleaned up, and i dont have money... |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12368
|
Posted:
Sun Dec 05, 2004 1:25 pm |
  |
|
     |
 |
|
|