can someone help?
I have issue with sending mail from website (eshop) after order confirmation.
Zend fremework is used to 2 identically eshop. Both use the same classes, same settings, on one it works fine and on the other one crashes with this error:
Settings:
Zend framework, Eshop, PHP version 5.3
MAIL
mail.encoding = UTF-8
mail.useSmtp = true
mail.smtp.server = mail.*******.**
mail.smtp.port = 465
mail.smtp.ssl = ssl
mail.smtp.auth = login
mail.smtp.username = #.**
mail.smtp.password = **********
ISSUE
Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message 'No connection has been established to mail8.hostmaster.sk' in /home/hn003000/www_root/ShibumiFramework/Zend/Mail/Protocol/Abstract.php:312 Stack trace:
#0 /home/hn003000/www_root/ShibumiFramework/Zend/Mail/Protocol/Abstract.php(370): Zend_Mail_Protocol_Abstract->_receive(300)
#1 /home/hn003000/www_root/ShibumiFramework/Zend/Mail/Protocol/Smtp.php(199): Z Zend_Mail_Protocol_Abstract->_expect(220, 300)
#2/home/hn003000/www_root/ShibumiFramework/Zend/Mail/Transport/Smtp.php(198): Z Ze Znd_Mail_Protocol_Smtp->helo('localhost')
#3 /home/hn003000/www_root/ShibumiFramework/Zend/Mail/Transport/Abstract.php(349): Zend_Mail_Transport_Smtp->_sendMail()
#4/home/hn003000/www_root/ShibumiFramework/Zend/Mail.php(960): Zend_Mail_Transport_Abstract->send(Object(Shibumi_Mail))
#5/home/hn003000/www_root/ShibumiFramework/Shibumi/Mail.php(27): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#6 /home/hn003000/www_root/www_akva24/application/modules/catalog/controllers/ in /home/hn003000/www_root/ShibumiFramework/Zend/Mail/Protocol/Abstract.php on line 312
Thanks for answers
I tried change to TLS
I tried another mail server
Requests did not arrive on the mail server
My hosting privider blocked php mail function on my site!
After they fixed it (a week of convincing that the fault is with them) it works.
Thanks, solved
Related
i was using this code ref : https://stackoverflow.com/a/50632966/11144183
and i thought the problem was solve but this thing pop up
Fatal error: Uncaught exception 'Exception' with message 'Unable to setup COM port,
check it is correct' in C:\xammp\htdocs\gnokii\send.php:56 Stack
trace: #0 C:\xammp\htdocs\gnokii\send.php(18): gsm_send_sms->init() #1
{main} thrown in C:\xammp\htdocs\gnokii\send.php on line 56
i've used the PORT COM given on the modem and also the baudrate but it always showing this error hope you can help me thanks in advance
I wanted Google plus login in my PHP website. I tried to integrate it from : http://www.codexworld.com/login-with-google-api-using-php
When I try to login, It throws error:
Fatal error: Uncaught exception 'Google_IOException' with message 'HTTP Error: (0) Failed to connect to accounts.google.com port 443: No route to host' in /home/thewiref/public_html/mastkids.in/test_google/src/io/Google_CurlIO.php:128 Stack trace: #0 /home/thewiref/public_html/mastkids.in/test_google/src/auth/Google_OAuth2.php(101): Google_CurlIO->makeRequest(Object(Google_HttpRequest)) #1 /home/thewiref/public_html/mastkids.in/test_google/src/Google_Client.php(131): Google_OAuth2->authenticate(Array, NULL) #2 /home/thewiref/public_html/mastkids.in/test_google/index.php(8): Google_Client->authenticate() #3 {main} thrown in /home/thewiref/public_html/mastkids.in/test_google/src/io/Google_CurlIO.php on line 128
Same code is working perfect in different domain and server. So what could be issue in this server?
Check your Firewall settings and network connectivity to see if you are able to connect to the network.
Try running the following
<?php
$read = file_get_contents("https://google.com");
echo $read;
If you are able to see the google page(even if it is distorted).
If not then your system has a network connectivity issue or DNS issues.
I've setup Swiftmailer to work with my Zoho mail account, and curiously it works fine for a couple of days but then stops working all of a sudden without me changing anything. If I setup a new Zoho mail account and make Swiftmail use that account... it will again work for a couple of days and then stop working.
I setup the transport with:
$transport = new \Swift_SmtpTransport("smtp.zoho.com", 465,"ssl");
The error I get when it stops working is the following:
Fatal error: Uncaught exception 'Swift_TransportException' with
message 'Failed to authenticate on SMTP server with username "[my
Zoho mail email address]" using 2 possible authenticators' in
/home/localpow/public_html/_database_mailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php:181
Stack trace: #0
/home/localpow/public_html/_database_mailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(333):
Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport))
/home/localpow/public_html/_database_mailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(118):
Swift_Transport_EsmtpTransport->_doHeloCommand() #2
/home/localpow/public_html/_database_mailer/swiftmailer/lib/classes/Swift/Mailer.php(79):
Swift_Transport_AbstractSmtpTransport->start() #3
/home/localpow/public_html/_database_mailer/relay_handler.php(106):
Swift_Mailer->send(Object(Swift_Message)) #4 {main} thrown in
/home/localpow/public_html/_database_mailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php
on line 181
Not sure why it would work for awhile and then stop working all of a sudden?
(For the record, when it is working, I have only sent at most about 4 emails through the script, so it shouldn't be anything to do with sending too many emails in a certain period of time or anything like that)
I've tried everything I can think of to no avail, and hope you can help.
I've taken on a site from another web dev, so am working on existing code.
The code works on my own development server (debian VM on my Win7 machine), but not on the live server (WHM/cPanel admin'd REDHAT Enterprise 5.4 x86_64 standard).
I get the following error after the call to $BHclient->startSession:
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in /home/aap3r/public_html/soap_test.php:60
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://api.bul...', '', 1, 0)
#1 /home/aap3r/public_html/soap_test.php(60): SoapClient->__call('startSession', Array)
#2 /home/aap3r/public_html/soap_test.php(60): SoapClient->startSession(Object(stdClass))
#3 {main}
thrown in /home/aap3r/public_html/soap_test.php on line 60
The WDSL file is downloaded okay (though it appears to have the wrong mime-type).
Since the exact same test code works on one server but not another I thought it was a firewall issue, but the host denies it.
The relevant code:
$url = "http://api.bullhornstaffing.com/webservices-2.0/?wsdl";
ini_set('soap.wsdl_cache_enabled',1);
ini_set('soap.wsdl_cache_ttl',1);
$username = "xxx";
$password = "xxx";
$apiKey = "xxxx";
$session_request = new stdClass();
$session_request->username = $username;
$session_request->password = $password;
$session_request->apiKey = $apiKey;
$BHclient = new SoapClient($url, array("trace" => true, "exception" => false));
$API_session = $BHclient->startSession($session_request);
print_r($API_session);
phpinfo confirms that SOAP is installed, and I've tried the various implementation/installation methods presented in the control panels.
I've updated to PHP Version 5.3.27 and Apache to 2.2.25.
Any help will be hugely appreciated.
Update: I've found a workaround. For whatever reason the production server couldn't connect to HTTP*S*, so I copied and rehosted the WDSL file after manually editing it to replace the protocol.
I would record the network traffic with tcpdump:
tcpdump -s65535 -iYOUR_INTERFACE -w soap.pcap
You can analyze the traffic (soap.pcap) using wireshark.
I'm trying to access Gmail by using three-legged Oauth PHP code provided by Google ('google-mail-xoauth-tools') here: http://code.google.com/apis/gmail/oauth/code.html. I have my domain registered and everything seems to go fine with OAuth, but after I authorize access I get this error:
Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message
'cannot connect to host; error = Connection refused (errno = 111 )'
in /home/tchaymor/public_html/gmail/Zend/Mail/Protocol/Imap.php:100
Stack trace: #0 /home/tchaymor/public_html/gmail/Zend/Mail/Protocol/Imap.php(61):
Zend_Mail_Protocol_Imap->connect('imap.gmail.com', '993', true)
#1 /home/tchaymor/public_html/gmail/three-legged.php(170):
Zend_Mail_Protocol_Imap->__construct('imap.gmail.com', '993', true)
#2 {main} thrown in /home/tchaymor/public_html/gmail/Zend/Mail/Protocol/Imap.php on line 100
This is my first time using OAuth with any Google products, so it could be something totally brainless I'm missing. Any suggestions would be most welcome (as suggestions for easier alternatives). I'm more on the designer rather than coder end, so the simpler the better.
Effectively, this is failing:
fsockopen('ssl://imap.gmail.com', 993);
Several options:
1) The error would suggest google is actively blocking you, perhaps you have tested & failed a bit to much, and just have to wait untill a temporary blockade is lifted.
2) The error would be different, but just to be sure: allow_url_fopen is enabled?
3) Local firewall? (What does a telnet imap.gmail.com 993 from the server give you?)
4) Broken OpenSLL libraries are also possible, try to connect a valid https site: fsockopen("ssl://google.com",443,$errno,$errstr) or die($errstr);