$ubbt_lang['SUB_STAT'] = "Subscription status for the following forums. (Receive a daily archive of all posts to this forum via your Real email address.)";
to
$ubbt_lang['SUB_STAT'] = "Subscription status for the following forums. (Receive an email on all posts to this forum via your Real email address.)";
When this hack sends a copy of the post it just sends the text of the post. What would I need to do to get it to include a file attachment if the post contains an attachment?
I tried applying this to 6.4.4. When you submit the post it gives the following error: Fatal error: Call to undefined function: headers() in /home/wwwtsbiu/public_html/iBASE/addpost.php on line 1056
It does enter the post, but it doesn't send the email and it just sits on the white screen with the error. Anyone know what needs to be updated for 6.4?
It allows the script to finish and send out the email. The only problem with it now is that its from is "Nobody" and the email address that its from is []nobody@myserver.[/] Could someone please tell me how to adjust this so that it is coming from my admin email address again?
<br />$to = $Mailto;<br /> $mailer = new mailer;<br /> $header = $mailer -> headers(); <br /> $subject = "New Post To $Title from $postername";<br /> $msg = "$postername has posted a message to $Title: $newline{$config['phpurl']}/showthreaded.php?Cat=$Cat&Board=$Board&Number=$Mnumber$newline${newline}------Message Below------${newline}Subject: $FormSubject${newline}${newline}Message:$newline$EmailBody";<br /><br /> mail("$to","$subject",$msg,$header);<br />
Replace with:
Code
<br /> $to = $Mailto;<br /> $mailer = new mailer;<br /> $subject = "New Post To $Title from $postername";<br /> $msg = "$postername has posted a message to $Title: $newline{$config['phpurl']}/showthreaded.php?Cat=$Cat&Board=$Board&Number=$Mnumber$newline${newline}------Message Below------${newline}Subject: $FormSubject${newline}${newline}Message:$newline$EmailBody";<br /> $mailer -> send_mail("","",$to,$subject,$msg);<br />
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.