Jump to content

phpmailer problem


sebastiano

Recommended Posts

phpmailer is a php program created to send email via your isp smtp server.

 

my code is......


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

$mail = new PHPMailer();

$mail->IsSMTP();                                   // send via SMTP
$mail->Host     = "smtp.telkom.net"; // SMTP servers
$mail->SMTPAuth = true;     // turn on SMTP authentication
$mail->AddAddress('[email protected]'); 
$mail->IsHTML(true);                               // send as HTML
$mail->Subject  =  "Here is the subject";
$mail->Body     =  "This is the <b>HTML body</b>";
$mail->AltBody  =  "This is the text-only body";
if(!$mail->Send())
{
   echo "Message was not sent <p>";
   echo "Mailer Error: " . $mail->ErrorInfo;
   exit;
}

echo "Message has been sent";
?>

Link to comment
https://forums.phpfreaks.com/topic/44649-phpmailer-problem/#findComment-216821
Share on other sites

Does phpmailer have a support forum? Really PHPFreaks is for help with code that you are creating.

 

$mail->AddAddress('[email protected]'); 
replace with
$mail->AddAddress("[email protected]"); 

see if that works

 

 

Without any CORE code this is almost impossible to diagnose. Since it said the "string" failed to load I am assuming that maybe single quotes and double quotes may be an issue, I do not know why as I do not have any code to look at. Get some code or goto the creators website and ask on their forum.

Link to comment
https://forums.phpfreaks.com/topic/44649-phpmailer-problem/#findComment-216832
Share on other sites

well, it does have a core code, i can give it to you via email if you want.

 

but after i try to understand the core code(which is realy frustating for me), i've notice that maybe the real problem is :

 

550 Host localhost is blocked because your computer was used to send SPAMs. Message was not sent

 

Mailer Error: Language string failed to load: [email protected]

 

i've echo a variable in that part of mistake(in it's superclass) and that error message occur.

Link to comment
https://forums.phpfreaks.com/topic/44649-phpmailer-problem/#findComment-216855
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.