Interspire Email Marketer

Fix “PHP Warning: fsockopen() ” Error in Opencart in cPanel & CSF

If you are using Opencart on a VPS or dedicated server and you have cPanel/WHM with Configserver Firewall (CSF) installed, you may encounter a problem when sending email.

If you check error log, you may see the similar error.

PHP Warning: fsockopen()  [function.fsockopen'>function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) in /home/XXXX/public_html/www.example.com/system/library/mail.php on line 153

You may try the following fix.

1. Logon to WHM & browse to ConfigServer Security & Firewall page.

2. Click on “Firewall Configuration” button

3. Find “SMTP_ALLOWUSER” option.

4. In the field add your cPanel username. If the is multiple username use comma to separate.

5. Click “Change” and Restart Configserver Firewall

This guide may fix other program such as Interspire Email Marketer as well.


Gmail & Google Apps Bounce e-mail IMAP Setting in Interspire Email Marketer 6

Interspire Email Marketer 6 is one of the best-performing email marketing scripts. Fortunately, you can use your existing Gmail or Google Apps email account to handle bounce e-mail in Interspire Email Marketer 6.

To ensure it work, correct IMAP Server details are required.

The settings page can be found by browsing

Contact List → View Contact List → (Edit or Create Contact List) → Bounce Account Details

The table below is the setting for using Gmail or Google Apps email account handle bounce e-mail with Interspire Email Marketer 6.

Gmail Google Apps
Bounce Email Server Name imap.gmail.com:993 imap.gmail.com:993
Bounce Email User Name <your email>@gmail.com <your email>@<your domain>
Bounce Email Password <your password> <your password>
Account Type IMAP IMAP
Advanced Settings Deselect Autodetect advanced settings.  Select others & type “/ssl/novalidate-cert Deselect Autodetect advanced settings.  Select others & type “/ssl/novalidate-cert


Make sure IMAP access is activated in Gmail account.

If this does not work with an error “Invalid remote specification” you have to recompile PHP with php_imap module (“–with-imap-ssl” option)