1. Page d'accueil
  2. Technologies Web

Virtuemart & Gmail : Warning could not send a message to

Le 27-04-2010 à 18:29 par erwin.Dans Informatique et Technologies Web

Nombre de commentaires : 0

I found a problem with Virtuemart 1.1.4 and before. Their use of phpMailer doesn’t try to use SSL when it is needed (for gmail smtp for me). See the order notification, sent by ps_main.php, line 500 :


// Add smtp values if needed
if ( $mosConfig_mailer == ‘smtp’ ) {
$mail->SMTPAuth = $mosConfig_smtpauth;
$mail->Username = $mosConfig_smtpuser;
$mail->Password = $mosConfig_smtppass;
$mail->Host 	= $mosConfig_smtphost;

   // hack to work with gmail
$mail->SMTPSecure = "ssl";
$mail->Port = 465; } else

I added these two lines to work. But it’s just a hack, it should be something to add in next release in my own opinion.

Ajouter un commentaire (Tout commentaire ne commençant pas par Bonjour sera supprimé pour cause de spam. Merci)

 *

* Nécessaire mais ni communiqué, ni affiché.