Previous Thread
Next Thread
Print Thread
Hop To
#170255 12/13/2006 10:08 PM
Joined: Dec 2006
Posts: 42
C
newbie
newbie
C Offline
Joined: Dec 2006
Posts: 42
Im having some trouble getting my board mailer working again after my forums were moved to new host. It may be just a permissions issue or it may be my host. Could someone refresh my memory on what folder and relevent files the mail function call on? UBBThreads V6.5b2


Emerald Forest Gaming Community
ChAoS #170260 12/14/2006 1:30 AM
Joined: Dec 2006
Posts: 42
C
newbie
newbie
C Offline
Joined: Dec 2006
Posts: 42
I tried enabling this option

Send Email Using '-f' Option
Enable this option only if you are on a Unix/Linux server and mails are not being sent.

and I get this error message in my box
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

[email protected]
unrouteable mail domain "hotmail.com"



Emerald Forest Gaming Community
ChAoS #170263 12/14/2006 2:26 AM
Joined: Dec 2006
Posts: 42
C
newbie
newbie
C Offline
Joined: Dec 2006
Posts: 42
Upon further research I found this through my webhosts help section

Code
Because of the large amount of spam email that occurs every day, our email servers need to restrict how email gets sent. Normally in PHP, you would use the mail function to send out an email. Below is an example of how the mail function works: 
$to      = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]';

mail($to, $subject, $message, $headers);
This will no longer work. Replace the above code with the PHP Class called PHPMailer which you can download from here. Here is an example of PHPMailer that would replace the above mail code: 
require("class.phpmailer.php");

$mail = new PHPMailer();

$mail->IsSMTP();                                   // send via SMTP
$mail->Host     = "mail.yourdomain.com"; // Outgoing Mail (SMTP) server
$mail->SMTPAuth = true;     // turn on SMTP authentication
$mail->Username = "[email protected]";  // SMTP username
$mail->Password = "yourpassword"; // SMTP password

$mail->From     = "[email protected]";
$mail->FromName = "Your Name";
$mail->AddAddress("[email protected]"); 

$mail->IsHTML(false);                               // send as plain text

$mail->Subject  =  "the subject";
$mail->Body     =  "hello";

if(!$mail->Send())
{
   echo "Message was not sent ";
   echo "Mailer Error: " . $mail->ErrorInfo;
   exit;
}

echo "Message has been sent";

so I am looking over dosendmail.php and I am afraid integrating it may be beyond me at the moment. Would anyone care to help? Here is my http://emeraldforestseattle.com/ubbthreads/dosendemail.txt Let me know if ya need props or candy or flowers smile

Last edited by ChAoS; 12/14/2006 2:27 AM.

Emerald Forest Gaming Community
ChAoS #170292 12/14/2006 9:56 PM
Joined: Dec 2006
Posts: 42
C
newbie
newbie
C Offline
Joined: Dec 2006
Posts: 42
cash?


Emerald Forest Gaming Community
ChAoS #170294 12/15/2006 12:56 AM
Joined: Dec 2006
Posts: 42
C
newbie
newbie
C Offline
Joined: Dec 2006
Posts: 42
sorry I cant edit this post- Ill have to remove the file from the server Allen


Emerald Forest Gaming Community
ChAoS #174010 01/17/2007 7:41 AM
Joined: Dec 2003
Posts: 120
K
Member
Member
K Offline
Joined: Dec 2003
Posts: 120
I experience this problem...

[email protected]
unrouteable mail domain "martindowson.com"
[email protected]
unrouteable mail domain "hotmail.com"
[email protected]
unrouteable mail domain "hotmail.com"
[email protected]
unrouteable mail domain "mondrian.com"

But I do get some 'confirmations' from other domains. Is this down to a blocking on the server or is it an issue with 7.0.2?


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
0 members (), 206 guests, and 158 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)