Jump to content
Sign in to follow this  
Engy

Email not sent

Recommended Posts

Hello,

 

I try to send email but I don't receive anything, do you have any idea about that ?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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).

 

Share this post


Link to post
Share on other sites

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.

 

 

 

 

Share this post


Link to post
Share on other sites

Thank you for all explanations.

What is 

 protected $debug = 2;

 

Share this post


Link to post
Share on other sites

this is a level debug. 0 is for production, 1-2 allow you some interesting informations if you have a problem to solve.

 

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

I have been a similar problem and found the solution.

I use now the configuration with gmail smtp.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use