草庐IT

TranSport

全部标签

php - 错误 : Transport config "Smtp" is missing in cakephp 3. x

cakephp3.x中缺少传输配置“Smtp”我试过一些配置如下:'EmailTransport'=>['default'=>['className'=>'Smtp','host'=>'ssl://smtp.gmail.com','port'=>465,'username'=>'xxxxxxxxx@gmail.com','password'=>'xxxxx',],],'Email'=>['default'=>['from'=>array('site@localhost'=>'DataMining'),'transport'=>'Smtp','charset'=>'utf-8','hea

php - 通过 php 调用网络服务 -> 错误 : no transport found or selected transport is not yet supported

错误:未找到传输方式,或所选传输方式尚不支持!当我调用网络服务时会发生此错误。这是我的代码:include("lib/bankmellat/nusoap.php");$client=new\bankmellat\nusoap_client('https://pgwstest.bpm.bankmellat.ir/pgwchannel/services/pgw?wsdl');$namespace='http://interfaces.core.sw.bps.com/';$parameters=array();$parameters['terminalId']=$terminalId;$pa

php - 无法在实时环境中使用 SmtpTransport 使用 SwiftMailer 发送邮件,但可以在本地主机中发送

我正在使用SwiftMailer发送一封简单的邮件。但是,当我使用SmtpTransport(使用主机、用户名和密码)方法时,出现以下使用2个可能的身份验证器的错误。我在stackoverflow上搜索了这个问题,但找不到解决方案。Fatalerror:Uncaughtexception'Swift_TransportException'withmessage'FailedtoauthenticateonSMTPserverwithusername"xxx@yyyyyyyy.com"using2possibleauthenticators'in/home/yyyyyyyy/public

php - Symfony2 : error trying to send an email with Swiftmailer

当我尝试使用swift发送电子邮件时遇到以下问题Symfony2项目:刷新电子邮件队列时发生异常:预期响应代码220但得到代码“”,消息为“。我在localhost中,我尝试使用我的主机OVH的邮件。这是我的config.yml:#SwiftmailerConfigurationswiftmailer:transport:"%mailer_transport%"auth_mode:"%mailer_auth_mode%"host:"%mailer_host%"port:"%mailer_port%"username:"%mailer_user%"password:"%mailer_pa

php - Symfony2 Monolog 到电子邮件错误为什么 swiftmailer.transport.real 是不存在的服务

将symfony从2.3更新到2.4后,我得到了ServiceNotFoundExceptionFatalerror:Uncaughtexception'Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException'withmessage'Theservice"monolog.handler.mojhandler"hasadependencyonanon-existentservice"swiftmailer.transport.real".'inE:\wamp\www\project\vendor\s

php - Swift Mailer 邮件发送问题

我已经从他们的网站下载了SwiftMailer并尝试使用以下代码发送简单的电子邮件setUsername('yourusername')->setPassword('yourpassword');$mailer=Swift_Mailer::newInstance($transport);//Createamessage$message=Swift_Message::newInstance('WonderfulSubject')->setFrom(array('john@doe.com'=>'JohnDoe'))->setTo(array('receiver@domain.org','o

php - 使用 Swift 邮件程序发送邮件时出现 501 错误

setUsername('user@connect.polyu.hk')->setPassword('pw');//CreatetheMailerusingyourcreatedTransport$mailer=Swift_Mailer::newInstance($transport);//Createamessage$message=Swift_Message::newInstance('WonderfulSubject')->setFrom(array('john@doe.com'=>'JohnDoe'))->setTo(array('foodil@hotmail.com','fo

php - iframe 传输未传输任何数据

我正在使用jQuery-File-Upload与jQuery-Iframe-Transport尝试获得对旧版本IE的支持。我已经设置了forceIframeTransporttrue的选项,以便它在所有浏览器中的行为或多或少相同,但无论浏览器使用iframe传输,我似乎都没有在服务器端获取任何数据。我已经在服务器端吐出请求header并返回:array(Host=>"*******"Connection=>"keep-alive"Content-Length=>"0"Accept=>"*/*"Origin=>"**************"X-Requested-With=>"XMLH

php - swiftmailer 对于 smtp 完全损坏?

刚刚将我的swiftmailercheckout更新到最新版本4.3.0。以下非常简单的代码不再有效,连接超时:setUsername('USERNAME')->setPassword('PASSWORD');$mailer=Swift_Mailer::newInstance($transport);//Createamessage$message=Swift_Message::newInstance('Yo')->setFrom(array('jnankin@gmail.com'=>'Josh'))->setTo(array('jnankin@gmail.com'))->setBod

PHP fatal error : 'Swift_TransportException' with message 'Failed to authenticate on SMTP server

我知道之前有人问过这个问题,我已经阅读了那里的所有帖子,但我仍然找不到解决方案。我有一台安装了wamp的Windows机器。当我尝试通过谷歌的SMTP服务器发送一封简单的电子邮件时,一切正常。但是,当我将相同的脚本复制到Ubuntu12机器时,它给了我这个错误:PHPFatalerror:Uncaughtexception'Swift_TransportException'withmessage'FailedtoauthenticateonSMTPserverwithusername"xxx@gmail.com"using2possibleauthenticators'in/home/