//
// print_R($mailer);exit;
- $headers = array(
- 'From' => $settings['username']
- );
-
$params = array(
- 'netdns' => false
+ 'netdns' => false,
+ 'mailname' => $settings['username']
);
$smtpmx = new Mail_smtpmx($params);
+ $smtpmx->debug = true;
- $result = $smtpmx->_sanitizeHeaders($headers);
- if (is_a($result, 'PEAR_Error')) {
- $this->jerr("Error occour on '_sanitizeHeaders' \n");
- }
-
$smtpmx->_smtp = new Net_SMTP($server, $smtpmx->port, $smtpmx->mailname);
-
+
+ $smtpmx->_smtp->setDebug(true);
+
// print_R($smtpmx->_smtp);exit;
$res = $smtpmx->_smtp->connect($smtpmx->timeout);