Engy Posted May 22, 2019 Share Hello, I try to send email but I don't receive anything, do you have any idea about that ? Quote Link to post
Patrick Posted May 22, 2019 Share Hi @Engy, Do you look the best and trips forum, I wrote a little post about this problem. Sendmail has a restriction by your hoster, you must use gmail or your own smtp. Look and tell me if you have a problem. Quote Link to post
Foster Posted May 22, 2019 Share I am looked more information about that and find a technical information It can help you why you have a problem : Quote When you use PHP's mail() function (what PHPMailer uses by default), it opens a shell and calls a sendmail binary (a client program for submitting email messages from a command line) belonging to your local mail server. If you don't have a local mail server, it can't work, and you get the error you're seeing. You could get the same error if there is a mail server, but you don't have permission to run sendmail. You need to do one of: Install a mail server (such as postfix) Talk to a local server via SMTP (which will not be subject to permissions issues in the same way that mail() is) Use SMTP to send through a remote mail server, either your ISP's or some other server such as gmail (if your ISP allows outbound SMTP). Quote Link to post
Drack Posted May 22, 2019 Share Note to continue the discussion : To see what's happen, you can make a test like that. Go to ClicShopping/OM/Mail.php change protected $debug = 0; by protected $debug = 2; After this line : add exit; and to finish send an email and see the result. Quote Link to post
Engy Posted May 22, 2019 Author Share Thank you for all explanations. What is protected $debug = 2; Quote Link to post
Patrick Posted May 23, 2019 Share this is a level debug. 0 is for production, 1-2 allow you some interesting informations if you have a problem to solve. Quote Link to post
Engy Posted May 25, 2019 Author Share Ok, thank @Patrick, I try like explained, yes I can see the error and there is a problem with sendmail. I tested via google, works fine. Quote Link to post
Monkey Posted May 25, 2019 Share I have been a similar problem and found the solution. I use now the configuration with gmail smtp. Quote Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.