public function __construct($encoding = null, $message = null, $from = null, $to = null)
{
if (!empty($encoding)) {
$this->setEncoding($encoding);
}
if (!empty($message)) {
$this->setBody($message);
}
if (!empty($from)) {
$this->setFrom($from);
}
if (!empty($to)) {
$this->addTo($to);
}
}