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'
)
);
}