Php mail work but not with litecart?

Od Nieznany
Użytkownik od gru -0001

So when I try to send a mail with the Cutomer service form I get this error..

Warning: Failed sending email to leucome@hotmail.com in ~/includes/functions/func_email.inc.php (Line 64)

So I tried a little scrip to see if php mail work and it send an email as expected..

The little sript.

   ini_set( 'display_errors', 1 );
    error_reporting( E_ALL );
    $from = ""leucome@gmail.com"";
    $to = ""leucome@hotmail.com"";
    $subject = ""PHP Mail Test script"";
    $message = ""This is a test to check the PHP Mail functionality"";
    $headers = ""From:"" . $from;
    mail($to,$subject,$message, $headers);
    echo ""Test email sent"";

I'm using litecart 1.3.2 ... with  Apache 2.2.29
Version de PHP 5.4.41  ... Host papa server.

I'm not so good at coding so what should I do next to find what is wrong.

Main Crew
Od Sweden
Użytkownik od lut 2013

If you need to debug the mail function it can be found at includes/functions/func_email.inc.php. It's hard to say what the problem is since PHP just pass the email to the local machine's mail pipe returning true or false.

You could try an SMTP solution:
https://www.litecart.net/addons/75/phpmailer-smtp

Od Nieznany
Użytkownik od gru -0001

I tried the SMTP phpmailer it do not work too. I'll use something else for now. I'll also keep an installation and try to figure out a solution because other than that it was my preferate cart solution.

Thanks,

Main Crew
Od Sweden
Użytkownik od lut 2013

Try debugging what is output by func_email.inc.php when it runs the mail() command.

Like before that do

var_dump($this, $that); exit;

Od Nieznany
Użytkownik od gru -0001

Has anyone made the the PHPMailer (SMTP) vQmod extension work?  I have installed it and followed instructions but the store is still not sending email.

On the sideline, this LiteCart is awesome! Simple, lite and yet powerful!

tim
Founder
Od Sweden
Użytkownik od maj 2013
tim

I just tried the latest release and it worked with gmail. However gmail smtp does not support delivery with unregistered sender emails.

Ty
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.