function PHPMailer::Lang in SMTP Authentication Support 5
Returns a message in the appropriate language. @access private
Return value
string
9 calls to PHPMailer::Lang()
- PHPMailer::AddAttachment in ./
smtp.module - Adds an attachment from a path on the filesystem. Returns false if the file could not be found or accessed.
- PHPMailer::AddEmbeddedImage in ./
smtp.module - Adds an embedded attachment. This can include images, sounds, and just about any other document. Make sure to set the $type to an image type. For JPEG images use "image/jpeg" and for GIF images use "image/gif".
- PHPMailer::EncodeFile in ./
smtp.module - Encodes attachment in requested format. Returns an empty string on failure. @access private
- PHPMailer::EncodeString in ./
smtp.module - Encodes string to requested format. Returns an empty string on failure. @access private
- PHPMailer::MailSend in ./
smtp.module - Sends mail using the PHP mail() function. @access private
File
- ./
smtp.module, line 1934 - Enables drupal to send email directly to an SMTP server using authentication. Uses the PHPMailer class by Brent R. Matzelle.
Class
- PHPMailer
- PHPMailer - PHP email transport class @package PHPMailer @author Brent R. Matzelle @copyright 2001 - 2003 Brent R. Matzelle
Code
function Lang($key) {
if (count($this->language) < 1) {
$this
->SetLanguage("en");
}
// set the default language
if (isset($this->language[$key])) {
return $this->language[$key];
}
else {
return "Language string failed to load: " . $key;
}
}