php forum
php mysql forum
php mysql smarty
 
Topic Options
#312265 - 12/14/06 09:13 PM Board Mailer
ChAoS_dup1 Offline
Code Monkey

Registered: 11/15/02
Posts: 576
Loc: Great Northwest
Im having problems with my board mailer and my host. My host has this info on their site
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      = 'somebody@somewhere.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: email@yourdomain.com';

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@yourdomain.com";  // SMTP username
$mail->Password = "yourpassword"; // SMTP password

$mail->From     = "email@yourdomain.com";
$mail->FromName = "Your Name";
$mail->AddAddress("somebody@somewhere.com"); 

$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 understand in a way how it functions but I am afraid integrating it may be beyond me at the moment. Would anyone be willing to help with this? dosendemail.txt link removed per Allen


Edited by ChAoS_dup1 (12/14/06 10:49 PM)
_________________________
ChAoS
Emerald Forest Gaming Servers
Official STFU Thread


Top


Who's Online
0 registered (), 27 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks