Jump to content

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('sebastian_oscar_w@hotmail.com'); 
$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('sebastian_oscar_w@hotmail.com'); 
replace with
$mail->AddAddress("sebastian_oscar_w@hotmail.com"); 

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: recipients_failedsebastian_oscar_w@hotmail.com

 

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.