Hi everyone,
I've installed the OpenCart for the first time, everything goes OK except a mail problem that I cannot fix.
The OpenCart version is 1.4.6., I've configured the stmp with my google account with the ports 465 and 587... But always receive that error:
Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.gmail.com:465 (Permission denied) in /home/www/mywebsite.com/system/library/mail.php on line 150Warning: Cannot modify header information - headers already sent by (output started at /home/www/mywebsite.com/index.php:89) in /home/www/mywebsite.com/system/engine/controller.php on line 27
The username and passwords are correct, and I tried with ssl and without ssl...
What can I do? Can you help me?
Thanks, Ricardo
I've installed the OpenCart for the first time, everything goes OK except a mail problem that I cannot fix.
The OpenCart version is 1.4.6., I've configured the stmp with my google account with the ports 465 and 587... But always receive that error:
Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.gmail.com:465 (Permission denied) in /home/www/mywebsite.com/system/library/mail.php on line 150Warning: Cannot modify header information - headers already sent by (output started at /home/www/mywebsite.com/index.php:89) in /home/www/mywebsite.com/system/engine/controller.php on line 27
The username and passwords are correct, and I tried with ssl and without ssl...
What can I do? Can you help me?
Thanks, Ricardo
I think that gmail is prevending this kind of e-mail "relay".rmcazevedo wrote:Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.gmail.com:465 (Permission denied) in /home/www/mywebsite.com/system/library/mail.php on line 150
You better contact Google/GMail on this.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Hi...
I've changed the SMTP server, for the hosting server (Freehostia), and the result is the same.
Warning: fsockopen() [function.fsockopen]: unable to connect to mbox.freehostia.com:25 (Permission denied) in /home/www/mywebsite.com/system/library/mail.php on line 150Warning: Cannot modify header information - headers already sent by (output started at /home/www/mywebsite.com/index.php:89) in /home/www/mywebsite.com/system/engine/controller.php on line 27
I've seen at the forum lot's of users with the same problem... I tried all... But still doesn´t work...
I don´t know how PHP Mail works... What is the configuration?
I've changed the SMTP server, for the hosting server (Freehostia), and the result is the same.
Warning: fsockopen() [function.fsockopen]: unable to connect to mbox.freehostia.com:25 (Permission denied) in /home/www/mywebsite.com/system/library/mail.php on line 150Warning: Cannot modify header information - headers already sent by (output started at /home/www/mywebsite.com/index.php:89) in /home/www/mywebsite.com/system/engine/controller.php on line 27
I've seen at the forum lot's of users with the same problem... I tried all... But still doesn´t work...

I don´t know how PHP Mail works... What is the configuration?
If helps... this is the server information:
Operation System : Debian GNU/Linux
Perl Modules : Click to View (NOTE: this page is over 450 KB)
Perl Version : v5.8.8 built for i486-linux-gnu-thread-multi
Perl Path : /usr/bin/perl
Sendmail Path : /usr/sbin/sendmail
MySQL Version : 4.1.22-standard-log
PHP Version :
PHP Info : Click to View
Physical IP Address : 66.40.52.171
Default Route / Outgoing Requests IP : 66.40.52.75
MySQL Host/Server : mysql4.freehostia.com
MySQL Port : 3306
POP3/IMAP (incoming mail server) : mbox.freehostia.com
POP3 Port : 110
IMAP Port : 143
SMTP (outgoing mail server) : mbox.freehostia.com
SMTP Port : 25
Operation System : Debian GNU/Linux
Perl Modules : Click to View (NOTE: this page is over 450 KB)
Perl Version : v5.8.8 built for i486-linux-gnu-thread-multi
Perl Path : /usr/bin/perl
Sendmail Path : /usr/sbin/sendmail
MySQL Version : 4.1.22-standard-log
PHP Version :
PHP Info : Click to View
Physical IP Address : 66.40.52.171
Default Route / Outgoing Requests IP : 66.40.52.75
MySQL Host/Server : mysql4.freehostia.com
MySQL Port : 3306
POP3/IMAP (incoming mail server) : mbox.freehostia.com
POP3 Port : 110
IMAP Port : 143
SMTP (outgoing mail server) : mbox.freehostia.com
SMTP Port : 25
I've found this text at the Knowlegde Base from FreeHostia.
If you have a PHP-based contact form on your website and it does not work properly, i.e. it does not send e-mails, here is what you need to do:
Make sure that the e-mail account of either the recipient or the sender of the message is hosted here.
In order for your contact form to work properly it must comply with the following rule: the e-mail account of either the recipient or the sender of the message must be located in the E-Mail Manager section of your Web Hosting Control Panel. When you have a contact form on your website you usually want people to provide their e-mail address (sender), and you want the e-mail message to be sent to your e-mail (recipient). In this case you can only use an e-mail account hosted on this server as a recipient.
Test with a simple PHP script that uses phpmail()
If your contact form complies with the rule explained in (1) you can test whether you are able to send script-generated e-mails at all, using this simple PHP script:
In the above example you must replace email@my-best-domain.com with one of your e-mail accounts present in the Email Manager. Should you receive an error "MAIL FAILED", please contact us by opening a ticket using the link at the bottom of this page.
If Sendmail is used, make sure the path is correct
If your script is using Sendmail to send messages, please make sure the sendmail path is set to:
/usr/sbin/sendmail
Setting up some popular web applications to comply with the rule that the e-mail account of either the recipient or the sender of the message must be located in your E-Mail Manager:
Joomla:
Log in to the administrator's panel and go to the "Global Configuration" menu.
Click on the "Server" tab, browse to the "Mail Settings" section and select the sending method:
When the PHP Mail function is selected
Set the "Mail from" address to an e-mail account handled by our mail servers, i.e. present in your Email Manager and fully functional.
When Sendmail is selected
Make sure the "Sendmail Path" is set to: /usr/sbin/sendmail
When SMTP Server is selected
Make sure SMTP Authentication is set to "Yes".
Use your full e-mail address hosted with us for SMTP Username.
Use your mail server for SMTP Host (or use mail.supremecluster.com)
Moodle
Log in as administrator and go to Site Administration> Server.
From the extended list select "Email" and make sure that the "No-reply address" and "Support email" fields are set to e-mail accounts handled by our servers, i.e. present in your Email Manager and fully functional.
phpBB3
Log in as administrator. Go to the ACP (Admin Control Panel), select the "General" tab, navigate to "Client communication" and click on E-mail settings. Make sure that the "Contact e-mail address:" and "Return e-mail address:" fields are set to use email accounts handled by our servers, i.e. present in your Email Manager and fully functional. Also make sure that the "Enable board-wide e-mails:" setting is enabled.
WordPress
Log in as administrator, click on the "Settings" link in the admin menu and make sure that the "E-mail address" field is set to use an email account handled by our servers, i.e. present in your Email Manager and fully functional.
If you have a PHP-based contact form on your website and it does not work properly, i.e. it does not send e-mails, here is what you need to do:
Make sure that the e-mail account of either the recipient or the sender of the message is hosted here.
In order for your contact form to work properly it must comply with the following rule: the e-mail account of either the recipient or the sender of the message must be located in the E-Mail Manager section of your Web Hosting Control Panel. When you have a contact form on your website you usually want people to provide their e-mail address (sender), and you want the e-mail message to be sent to your e-mail (recipient). In this case you can only use an e-mail account hosted on this server as a recipient.
Test with a simple PHP script that uses phpmail()
If your contact form complies with the rule explained in (1) you can test whether you are able to send script-generated e-mails at all, using this simple PHP script:
Code: Select all
<?
$from = 'From: TestSender';
$to = 'email@my-best-domain.com';
$subject = 'Subject';
$body = 'TEST';
if (mail ($to, $subject, $body, $from)) {
echo 'MAIL - OK'; } else {
echo 'MAIL FAILED';
}
?>
In the above example you must replace email@my-best-domain.com with one of your e-mail accounts present in the Email Manager. Should you receive an error "MAIL FAILED", please contact us by opening a ticket using the link at the bottom of this page.
If Sendmail is used, make sure the path is correct
If your script is using Sendmail to send messages, please make sure the sendmail path is set to:
/usr/sbin/sendmail
Setting up some popular web applications to comply with the rule that the e-mail account of either the recipient or the sender of the message must be located in your E-Mail Manager:
Joomla:
Log in to the administrator's panel and go to the "Global Configuration" menu.
Click on the "Server" tab, browse to the "Mail Settings" section and select the sending method:
When the PHP Mail function is selected
Set the "Mail from" address to an e-mail account handled by our mail servers, i.e. present in your Email Manager and fully functional.
When Sendmail is selected
Make sure the "Sendmail Path" is set to: /usr/sbin/sendmail
When SMTP Server is selected
Make sure SMTP Authentication is set to "Yes".
Use your full e-mail address hosted with us for SMTP Username.
Use your mail server for SMTP Host (or use mail.supremecluster.com)
Moodle
Log in as administrator and go to Site Administration> Server.
From the extended list select "Email" and make sure that the "No-reply address" and "Support email" fields are set to e-mail accounts handled by our servers, i.e. present in your Email Manager and fully functional.
phpBB3
Log in as administrator. Go to the ACP (Admin Control Panel), select the "General" tab, navigate to "Client communication" and click on E-mail settings. Make sure that the "Contact e-mail address:" and "Return e-mail address:" fields are set to use email accounts handled by our servers, i.e. present in your Email Manager and fully functional. Also make sure that the "Enable board-wide e-mails:" setting is enabled.
WordPress
Log in as administrator, click on the "Settings" link in the admin menu and make sure that the "E-mail address" field is set to use an email account handled by our servers, i.e. present in your Email Manager and fully functional.
From the KB at Free Hostia.
"Important: The free hosting plan does not allow you to send e-mails, you can only receive e-mails. You need a premium (paid) hosting plan to be able to send e-mails. Any contact forms that send an e-mail, would not work either on the free hosting plan."
So, you may want to purchase/upgrade to an email plan first, then read again the previous posts.
I hope this helps.
"Important: The free hosting plan does not allow you to send e-mails, you can only receive e-mails. You need a premium (paid) hosting plan to be able to send e-mails. Any contact forms that send an e-mail, would not work either on the free hosting plan."
So, you may want to purchase/upgrade to an email plan first, then read again the previous posts.
I hope this helps.
Who is online
Users browsing this forum: No registered users and 10 guests