PHP Classes

Can't send mail

Recommend this page to a friend!  >  All threads  >  Can't send mail  >  (Un) Subscribe thread alerts  
Subject:Can't send mail
Summary:My script don't work
Author:bruno starfinder
Date:2007-01-09 21:04:54

  1. Can't send mail   Reply   Report abuse  
Picture of bruno starfinder bruno starfinder - 2007-01-09 21:04:54
I've uploaded the next script to my server. But it not works.
I think the code it's ok, right?

require "class.phpmailer.php";
$mail = new phpmailer();
$mail->Mailer = "smtp";
$mail->Host = "";
$mail->SMTPAuth = false;
$mail->Username = $SESSION_USERNAME;
$mail->Password = $SESSION_PASSWORD;
$mail->From = $SESSION_USERNAME;
$mail->FromName = $name;
$mail->Subject = $subject;
$mail->Body = $mensaje;
$mail->AltBody = strip_tags($mensaje);

foreach($filex as $key => $value){
$numext = count($checatipo)-1;
if($checatipo[$numext]=="jpg" or $checatipo[$numext]=="jpeg" or $checatipo[$numext]=="JPG" or $checatipo[$numext]=="JPEG"){$tipox="image/jpeg";}
elseif($checatipo[$numext]=="gif" or $checatipo[$numext]=="GIF"){$tipox="image/gif";}
elseif($checatipo[$numext]=="png" or $checatipo[$numext]=="PNG"){$tipox="image/png";}


foreach($destinat as $address){
if($address!="" && $address!=" " && $address!=" "){
if ($mail->ErrorInfo=="SMTP Error: Data not accepted") { $success=true; }

For more information send a message to info at phpclasses dot org.