Author Topic: sendmail  (Read 106 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
sendmail
« on: March 11, 2025, 09:38:28 PM »
I've got my ecommerce platform set to sendmail.  But Im not getting email from the contact page.  Any ideas what may be causing this.  Yes I know I have the smtp option.
Listen to everything Pixelpadre says.

Offline
***
Re: sendmail
« Reply #1 on: March 11, 2025, 10:49:22 PM »
Most likely the emails sent through the form don't pass the DKIM/SPF tests. Try to switch to "smtp" instead of "sendmail".

Anyway, the better way to investigate the problem is to check the mail logs:
/var/log/maillog

Offline
***
Re: sendmail
« Reply #2 on: Today at 12:35:39 AM »
I've got my ecommerce platform set to sendmail.  But Im not getting email from the contact page.  Any ideas what may be causing this.  Yes I know I have the smtp option.

CWP is not installed with sendmail, but with postfix.
Postfix have a tool named 'sendmail', but is not for the purpose to be a MTA, mail transfer agent, is just to check mail deliverability.

Sugestions from Deepseek.com:

If your ecommerce platform is set to use sendmail but you're not receiving emails from the contact page, there could be several reasons for this issue. Here are some steps to troubleshoot and resolve the problem:

1. Check the Email Sending Configuration
Ensure that your ecommerce platform is correctly configured to use sendmail and that the sendmail path is correct.

Verify that the "From" email address in the contact form is valid and properly formatted.

2. Test sendmail on the Server
Log in to your server via SSH.

Test sendmail directly from the command line to ensure it’s working:

Code: [Select]
echo "Test email body" | sendmail -f your@email.com recipient@email.com
Replace your@email.com with the sender's email and recipient@email.com with your email address.

Check if you receive the test email. If not, the issue might be with sendmail itself.

3. Check Email Logs
Look at the mail logs to see if the emails are being sent and if there are any errors.

On most Linux systems, you can check the logs using:

Code: [Select]
tail -f /var/log/maillog
or
Code: [Select]
tail -f /var/log/mail.log

Look for errors related to sendmail or email delivery.

4. Check Spam/Junk Folder
Sometimes emails sent via sendmail might be flagged as spam. Check your spam/junk folder to see if the emails are there.

5. Verify PHP Configuration
If your ecommerce platform uses PHP to send emails, ensure that PHP is configured to use sendmail.

Check the php.ini file for the sendmail_path setting:

Code: [Select]
sendmail_path = /usr/sbin/sendmail -t -i
Restart your web server (e.g., Apache or Nginx) after making changes.

6. Check Contact Form Code
Ensure that the contact form is correctly passing the email address and message to the sendmail function.

Look for any errors in the form submission process, such as missing fields or validation issues.

7. Test with SMTP Instead
If sendmail continues to fail, consider switching to SMTP for sending emails. Most ecommerce platforms support SMTP, which is often more reliable.

Use an SMTP service like Gmail, SendGrid, or your hosting provider's SMTP server.

8. Check Server Firewall and Ports
Ensure that your server’s firewall is not blocking outgoing email traffic (port 25 for sendmail).

If you’re using SMTP, ensure the appropriate ports (e.g., 465 for SSL, 587 for TLS) are open.

9. Contact Your Hosting Provider
Some hosting providers block sendmail or restrict its usage to prevent spam. Contact your hosting provider to confirm if sendmail is allowed on your server.

10. Debugging Tools
Use debugging tools or plugins provided by your ecommerce platform to trace email sending issues.

For example, in WordPress, you can use plugins like WP Mail Logging or Check Email to debug email delivery.

Regars,
Netino

Offline
*****
Re: sendmail
« Reply #3 on: Today at 01:13:23 AM »
Sugestions from Deepseek.com:
::shakes head::
 :-\

Offline
*
Re: sendmail
« Reply #4 on: Today at 03:33:37 AM »
Is your e-commerce site using WordPress? If so there are plenty of SMTP plugins available online for you (eg: SMTP Mailer is simple & works well). Forminator is a good Wordpress plugin for contact forms and has inbuilt reCaptcha options, you may wish to couple this with your SMTP mail plugin.

Is your destination email address internal or external (ie: email@yourdomain.com or email@gmail.com). The domain email is much more forgiving as the mail is internal but the latter will require you to tick all of the SSL, DKIM, SPF and RDNS boxes.

mxtoolbox.com is your friend for checking mail settings.

If you want to send mail using PHP, PHPMailer extends the mail function and allows for SMPT Auth but you'll need to know how to code for it (eg: construct a plugin if it's Wordpress).
« Last Edit: Today at 03:37:56 AM by 6Sense »
Web Design, Development & Web Hosting
https://6sense.com.au

Offline
***
Re: sendmail
« Reply #5 on: Today at 11:36:09 AM »
Is your e-commerce site using WordPress? If so there are plenty of SMTP plugins available online for you (eg: SMTP Mailer is simple & works well). Forminator is a good Wordpress plugin for contact forms and has inbuilt reCaptcha options, you may wish to couple this with your SMTP mail plugin.

Is your destination email address internal or external (ie: email@yourdomain.com or email@gmail.com). The domain email is much more forgiving as the mail is internal but the latter will require you to tick all of the SSL, DKIM, SPF and RDNS boxes.

mxtoolbox.com is your friend for checking mail settings.

If you want to send mail using PHP, PHPMailer extends the mail function and allows for SMPT Auth but you'll need to know how to code for it (eg: construct a plugin if it's Wordpress).

IT'S A GMAIL ACCOUNT.  YOU MIGHT BE ONTO SOMETHING.
Listen to everything Pixelpadre says.

Offline
***
Re: sendmail
« Reply #6 on: Today at 11:48:50 AM »
Is your e-commerce site using WordPress? If so there are plenty of SMTP plugins available online for you (eg: SMTP Mailer is simple & works well). Forminator is a good Wordpress plugin for contact forms and has inbuilt reCaptcha options, you may wish to couple this with your SMTP mail plugin.

Is your destination email address internal or external (ie: email@yourdomain.com or email@gmail.com). The domain email is much more forgiving as the mail is internal but the latter will require you to tick all of the SSL, DKIM, SPF and RDNS boxes.

mxtoolbox.com is your friend for checking mail settings.

If you want to send mail using PHP, PHPMailer extends the mail function and allows for SMPT Auth but you'll need to know how to code for it (eg: construct a plugin if it's Wordpress).
WINNER WINNER CHICKEN DINNER.  CHANGED FROM GMAIL TO INTERNAL MAIL AND IT WORKED.  ON A SIDE NOTE EMAIL MANAGER IN PANEL DOES NOT SHOW AUTOLOGIN ICONS.  AND THERE IS NO HORIZONTAL SCROLL.  I HAD TO ZOOM FF OUT TO 80% TO SEE THE ICONS ON THE RIGHT
Listen to everything Pixelpadre says.

Offline
*****
Re: sendmail
« Reply #7 on: Today at 02:39:10 PM »
Yes, it's not a responsive design. So my little 13" travel laptop you have to re-zoom to see all the interface elements. No problem on my 27" desktop screen, but definitely time to modernize to a fully responsive layout.