php - Zend Mail - Email is not sent -


i have problem sending registration email via zend_mail. mail transmitted mails have @gmail.com.

$email = "test@gmx.net"; $mail = new zend_mail (); $mail->setbodytext ( 'some text' ); $mail->setbodyhtml ( 'some text' ); $mail->setfrom ( 'support@mysite.net', 'mysite.net' ); $mail->addto ( $email, $email ); $mail->setsubject ( 'test' ); $mail->send (); 

if user has email provider email not sent.

any ideas?

i use smtp , works:

 $config = array('auth' => 'login',                     'username' => '****@gmail.com',                     'password' => '****',                     'port' => '25',                     'ssl' => 'tls');    $transport = new zend_mail_transport_smtp('smtp.googlemail.com', $config); 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -