$smtpmx = new Mail_smtpmx($params);
- $smtpmx->_smtp = new Net_SMTP($mserver, $smtpmx->port, $smtpmx->mailname);
+ $smtpmx->_smtp = new Net_SMTP($server, $smtpmx->port, $server);
- print_R($smtpmx);exit;
+ print_R($smtpmx->_smtp);exit;
$res = $smtpmx->_smtp->connect($smtpmx->timeout);