用于连接我自己的域的zend框架的smtp配置

时间:2015-07-13 16:14:40

标签: zend-mail

    I am now using zend framework and want to send email using my own domain.I set the configuration like this.How can i connect the smtp using my domain not gmail.My error is :

5.7.8 Username and Password not accepted. Learn more at
5.7.8  https://support.google.com/mail/answer/14257 da3sm19328626pdb.8 - gsmtp

我的代码是:         class MailService {             private $ sender =" admin@mydomain.com" ;;             private $ password =" mypassword";

        public function configSmptpOptions(
        'name'=>'test',
        'host'='>mail.mydomain.com',
        'port'=>587,
        'connection-class'=>'login',
        'connection-config'=>array(
        'username'=>$this->sender,
        'password'=>$this->password,
        'ssl'=>'tls'
        )
        );

    }

0 个答案:

没有答案