SetLanguage("en", "lib/phpmailer/language/"); //if SMTP_HOST is specified, use SMTP to send mail directly if (SMTP_HOST) { $Host = SMTP_HOST; $Mailer = "smtp"; } //if SMTP_PORT is specified, assign it. Otherwise default to port 25 if(SMTP_PORT){ $Port = SMTP_PORT; }else{ $Port = "25"; } //if SMTP_LOGIN is specified, set credentials and enable auth if(SMTP_LOGIN){ $SMTPAuth = true; $Username = SMTP_LOGIN; $Password = SMTP_PASSWORD; } } /* @brief a simple mail function to send email using the defaults * This will send an HTML email using the configured defaults * @param $toAddress A string with the recipients email address * @param $toName A string with the recipients name * @param $subject A string with the emails subject * @param $body A string containing the body of the email */ public function quickMail ($toAddress, $toName, $subject, $body, $altbody=""){ $this->addAddress($toAddress, $toName); $this->Subject = $subject; $this->Body = $body; $rc=$this->send(); return $rc; } } ?>