Page 1 of 1

PHPmailer dont work

Posted: Thu Apr 19, 2007 2:28 pm
by chems
hello every one, any one to help me,
i m using the phpmailer script to send automatic mail

Code: Select all

<?php
require("class.phpmailer.php");

$mail = new PHPMailer();

$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "customer-smtp.one.com"; // SMTP server //mailout.one.com
$mail->Username = "contact@media19";               // your SMTP login name
$mail->AddAddress("chemstudio2@gmail.com");
$mail->Subject = "first mailing";
$mail->Body = "hi ! \n\n this is First mailing I made myself with PHPMailer !";
$mail->WordWrap = 50;

if(!$mail->Send())
{
   echo "Message was not sent";
   echo "Mailer Error: " . $mail->ErrorInfo;
}
else
{
   echo "Message has been sent";
}
?>
the problem that i have no mail send and no error by script.
im using php5 (one.com)

but if i use the php mail function it work.

thx for your help, and sorry for my bad english.

Posted: Thu Apr 19, 2007 2:39 pm
by Chris Corbyn
PHPmailer dont work
<drum roll>
http://www.swiftmailer.org/ <--- Better than PHPMailer
</drum roll>

Ok, no but seriously. Maybe the SMTP server is blacklisted?

http://www.robtex.com/rbls.html

Posted: Thu Apr 19, 2007 2:49 pm
by chems
thx i will try .

Posted: Tue Jul 24, 2007 11:31 am
by aitorTheRed
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi!
I'm also trying to use "customer-smtp.one.com" and phpmailer!
My code is:

   (.....)

Code: Select all

$mail->IsSMTP();
   $mail->Host = 'customer-smtp.one.com';
   $mail->Port = 2525;
   $mail->SMTPAuth = true;
   $mail->Username="djdrivers.net";
   $mail->Password="xxxxxxx";
   $mail->Mailer   = "smtp";
   $mail->AddAddress("xxxx@gmail.com");
(.....)

if(!$mail->Send()){
//DEBUG
echo "Mailer Error: " . $mail->ErrorInfo ."<br><br>";
//END DEBUG
}

And the error response (when I have te web page hosted at http://www.one.com) that I get is:
Mailer Error: SMTP Error: Could not connect to SMTP host.



and when I have the web page at localhost, over windows XP with wamp5 server running (it's a combination of apache, php modules and mysql to run under windows) I get the following error:
Mailer Error: SMTP Error: The following recipients failed: xxxx@gmail.com

I'm not able to make it work properly, nor in localhost (wamp5) or the page of http://www.one.com (which is the smtp that I'm trying to use)

Can any one help me? please?

Thanks in advance


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Tue Jul 24, 2007 11:39 am
by programmingjeff
It seems like your webhost may be blocking external SMTP mail, even from their web servers. Some hosts do this to prevent automated spam.

You should verify with your web host that your program is allowed to access their SMTP server.