[SOLVED] Could not instantiate mail function in PHPMailer

By |2011-05-20T01:50:50+01:00May 20th, 2011|Ramblings|

(This article has an advanced technical level, written for people with PhpMailer experience.)

PHPMailer 5.1 in PrestaShop 1.4

Trying to integrate PHPMailer in Prestashop and use it instead of SWIFT Mailer 3 (which is the default mailer script included with Prestashop 1.4), I spent hours to no avail and was getting the Could not instantiate mail function error.

mail() function

The mail() function by itself  was working correctly before and after loading Prestashop and every passed argument seemed to be correct. I did get the “Bad parameters to mail() function, mail not sent” error for mail() too.

Debugging and Abracadabra!

I’ve done lots of debugging and found in my case that the following functions were causing the error, when passing the $Subject parameter to mail():

SecureHeader();
EncodeHeader();

To solve the “Could not instantiate mail function” error in PHPMailer, […]

Bug Prestashop, la liste des magasins n'apparait pas

By |2011-05-16T13:57:50+01:00May 16th, 2011|Ramblings|

Cette article est sponsorisé par odience.net¦works

En plein developpement

En plein développement de plusieurs modules PrestaShop, j’ai rencontrer plusieurs souci dans les code du package PrestaShop. Ce qui m’étonne, c’est qu’il y a beaucoup de gens qui utilise PrestaShop, même si c’est du gros n’importe quoi en terme de codage et programmation.

 

Alors pourquoi je créer des module?

Tout simplement parcequ’il y a de la demande.

(Restez connecté pour avoir des nouvelles de mes modules:

Prestashop gets jQuery 1.4.4

By |2010-12-10T13:11:47+01:00December 10th, 2010|Web Development|

Prestashop with latest jQuery.

At last! I’m very excited to announce that Prestashop is getting the jQuery 1.4.4 library update! This has been implemented in Prestashop 1.4 Alpha 4 version, which as tha name says it, is an alpha version and is probably not enough stable to become your “live” shop. I want to thank the Prestashop team, and invite all of you to try to develop more and more Prestashop modules and themes and make Prestashop the “WordPress” of e-commerce!

Lots of new features for this e-commerce package.

Here’s the change log, where you can find lots of new added features and possibilities:

https://www.prestashop.com/download/changelog_1.4.0.4.txt

One this to mention, is the SMARTY template engine upgrade to 3.5 for better performances.

Prestashop’s API?

One great feature added recently is the Webservice feature. It looks like an […]

Comments Off on Prestashop gets jQuery 1.4.4
Go to Top