Forum Moderators: coopster

Message Too Old, No Replies

phpmailer getting me crazy

         

smagdy

5:38 pm on Mar 5, 2005 (gmt 0)

10+ Year Member



Hi everybody.. its been hours trying to make it work on my localhost..

so my only problem so far is this error.

Message was not sentMailer Error: Language string failed to load: recipients_failed xx@g#*$!.com

i tried to move language files everywhere then i discoverd that its "English" by default which is what I want.. so i deleted all language folder.. n still gives the same error.

so what to do to fix this?
________________________
this is my code:
------------------------
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();

$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "localhost"; // SMTP server
$mail->From = "xxx@gxxx.com";
$mail->AddAddress("xxx@gxxx.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";
}
?>

thanks in advance

smagdy

7:08 pm on Mar 5, 2005 (gmt 0)

10+ Year Member



Please any help!

jatar_k

7:41 pm on Mar 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



this search [google.com] seems to bring up some recommendations from phpmailer itself

sifredi

7:44 pm on Mar 5, 2005 (gmt 0)

10+ Year Member



Are you sure you have an smtp server at "localhost"? Any Password or Login? Just make sure you specified all info the script needs to connect with your smtp server.

Typically it looks like:
$mail->Host = "mail.yoursite.com";
$mail->Username = "user";
$mail->Password = "#*$!x";

smagdy

7:48 pm on Mar 5, 2005 (gmt 0)

10+ Year Member



i searched all that in google but came up with nothing.

isnt win pro includes free smtp or ive to download one?

if i have to download one then what do u recommend?

but anyways its language file problem not smtp (i think)

jatar_k

7:54 pm on Mar 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



did you see this in the search I linked to?
[sourceforge.net...]

sifredi

7:54 pm on Mar 5, 2005 (gmt 0)

10+ Year Member



A SMTP server is not included in Windows XP pro (as far as I know). But even if it was, you would have to give it your username and password. Most website hosts offer a smtp mailserver in a subdomain.

smagdy

8:15 pm on Mar 5, 2005 (gmt 0)

10+ Year Member



i deleted all files and started fresh one
and also i downloaded smtp server but i cant figure out where to add username and password to it cuz it just has an icon to make it listening...

i didnt install its client though.

so now am getting this error:

Mailer Error: SMTP Error: Data not accepted

smagdy

9:05 pm on Mar 5, 2005 (gmt 0)

10+ Year Member



guys what can i say other than it just worked!

so incase someone else had this problem this is what i JUST did.

i downloaded free smtp server from
[softstack.com...]

setup then it just worked..

thanks for all ur time