04-02-2009, 06:59 PM
I didn't like how the script would send out the activation e-mail with my server's hostname instead of an actual e-mail address so this is what I did to fix it:
Find in mkforum.php:
Add below:
(Example: $headers = "From: my@email.com";)
Find next:
Replace with:
And you're done!
Find in mkforum.php:
Code:
//This is the mail message that is sent out.
$message = "Hello,\n\nYour forums are all ready to go! You just need to activate them.\n\nHere are your details:\n\nForum URL: ".$myURL."\nAdmin Password: ".$pass1."\nActivation Code: ".$act."\n\nYou can activate your forums at ".$myURL."/activate.php to ensure they are not deleted.\n\nHave a great day,\nThe ".$dname." team.";Add below:
Code:
$headers = "From: <INSERT EMAIL ADDRESS>";Find next:
Code:
//Send the mail
mail($email, "Activation Code for your free forums", $message);Replace with:
Code:
//Send the mail
mail($email, "Activation Code for your free forums", $message, $headers);And you're done!

