* @private
* @type object
*/
- var $Mail = false;
+ var $Mail = FALSE;
/**
* Holds the SMTP mail host.
$this->Mail->Host = $global_vars["mail_host"];
$this->Mail->Port = 25;
$this->Mail->Helo = "localhost.localdomain";
- $this->Mail->SMTPAuth = false;
+ $this->Mail->SMTPAuth = FALSE;
$this->Mail->Username = "";
$this->Mail->Password = "";
$this->Mail->PluginDir = $INCLUDE_DIR;
*/
function test_Html() {
- $this->Mail->IsHTML(true);
+ $this->Mail->IsHTML(TRUE);
$this->Mail->Subject .= ": HTML only";
$this->Mail->Body = "This is a <b>test message</b> written in HTML. </br>" .
$this->Mail->Body = "This is the <b>HTML</b> part of the email.";
$this->Mail->Subject .= ": HTML + Attachment";
- $this->Mail->IsHTML(true);
+ $this->Mail->IsHTML(TRUE);
if(!$this->Mail->AddAttachment("phpmailer_test.php", "test_attach.txt"))
{
$this->Mail->Body = "Embedded Image: <img alt=\"phpmailer\" src=\"cid:my-attach\">" .
"Here is an image!</a>";
$this->Mail->Subject .= ": Embedded Image";
- $this->Mail->IsHTML(true);
+ $this->Mail->IsHTML(TRUE);
if(!$this->Mail->AddEmbeddedImage("test.png", "my-attach", "test.png",
"base64", "image/png"))
$this->Mail->Body = "Embedded Image: <img alt=\"phpmailer\" src=\"cid:my-attach\">" .
"Here is an image!</a>";
$this->Mail->Subject .= ": Embedded Image + Attachment";
- $this->Mail->IsHTML(true);
+ $this->Mail->IsHTML(TRUE);
if(!$this->Mail->AddEmbeddedImage("test.png", "my-attach", "test.png",
"base64", "image/png"))
$this->Mail->Body = "This is the <b>HTML</b> part of the email.";
$this->Mail->AltBody = "This is the text part of the email.";
$this->Mail->Subject .= ": AltBody + Attachment";
- $this->Mail->IsHTML(true);
+ $this->Mail->IsHTML(TRUE);
if(!$this->Mail->AddAttachment("phpmailer_test.php", "test_attach.txt"))
{
$this->BuildBody();
$subject = $this->Mail->Subject;
- $this->Mail->SMTPKeepAlive = true;
+ $this->Mail->SMTPKeepAlive = TRUE;
$this->Mail->Subject = $subject . ": SMTP keep-alive 1";
$this->assert($this->Mail->Send(), $this->Mail->ErrorInfo);
$this->Mail->Subject .= ": This should be sent";
$this->BuildBody();
$this->Mail->ClearAllRecipients(); // no addresses should cause an error
- $this->assert($this->Mail->IsError() == false, "Error found");
- $this->assert($this->Mail->Send() == false, "Send succeeded");
+ $this->assert($this->Mail->IsError() == FALSE, "Error found");
+ $this->assert($this->Mail->Send() == FALSE, "Send succeeded");
$this->assert($this->Mail->IsError(), "No error found");
$this->assertEquals('You must provide at least one ' .
'recipient email address.', $this->Mail->ErrorInfo);