Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Email problems


oscomglas

Recommended Posts

Hai All,

I have been going over several topics but no solution found yet.

Using Ubuntu 16.04.6 LTS

PHP 7.0.33

oscommerce-2.3.4.1

Mail is working (machine acts also as mailserver)

PHP mail also tested and works.

<?php

$to      = '[email protected]';
$subject = 'Test mail';
$message = 'Eh test !';
$headers = 'From: [email protected]' . "\r\n" .
      'Reply-To: [email protected]' . "\r\n";

mail($to, $subject, $message, $headers);

?>

However I can select smtp or sendmail but no mail is send:

I see a log entry with sendmail log

mail.log

Sep 11 22:06:23 site sendmail[24010]: x8BK6NYc024010: from=www-data, size=247, class=0, nrcpts=0, msgid=<[email protected]>, relay=www-data@localhost
Sep 11 22:11:22 site sendmail[24567]: x8BKBMI1024567: from={name}, size=101, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost

Looks weird that the from is the owner or just a name....

Relay is also weird I would expect local IP or something like that.. oscom log just tels me mails are send.... no errors...

I hope someone knows what to do to get it running... Install was smooth no errors....

Chrs P.

 

 

Link to comment
Share on other sites

Try installing the Phoenix version (see my signature below).  2.3.4.1 is a little dated and might be causing the problems you're having.

Dan

Link to comment
Share on other sites

According to W3SCHOOLS php mail tutorial, there are two must have headers:

Quote

// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";


// More headers
$headers .= 'From: <[email protected]>' . "\r\n";
$headers .= 'Cc: [email protected]' . "\r\n";

mail($to,$subject,$message,$headers);

Could this be the cause?

 

Link to comment
Share on other sites

Hai Dan,

Yes I updated to the phoenix version and now mail (and security checks) are working ok.....Thxs for the hint.

However I noticed that after adding the Dutch language my admin screen is in Dutch but in the main shop I have no language selection ?

Any hints on that part ?

winkel/includes/languages/
total 48
drwxr-xr-x  4 root root  4096 Sep 13 15:44 .
drwxr-xr-x 11 root root  4096 Sep 13 14:39 ..
drwxr-xr-x  4 root root  4096 Sep 13 15:44 dutch
-rw-r--r--  1 root root 16600 Sep 13 15:44 dutch.php
drwxr-xr-x  4 root root  4096 Sep 13 14:39 english
-rw-r--r--  1 root root 11184 Sep 13 14:39 english.php

winkel/admin/includes/languages/
total 56
drwxr-xr-x  4 root root  4096 Sep 13 15:43 .
drwxr-xr-x 10 root root  4096 Sep 13 14:39 ..
drwxr-xr-x  4 root root  4096 Sep 13 15:43 dutch
-rw-r--r--  1 root root 23285 Sep 13 15:43 dutch.php
drwxr-xr-x  4 root root  4096 Sep 13 14:39 english
-rw-r--r--  1 root root 16057 Sep 13 14:39 english.php

Chrs.

 

 

 

 

Link to comment
Share on other sites

Yes...this isn't ready for prime time yet but have a read. It'll tell you about the Navigation Bar and how to install the NavBar modules etc.  Play around with it.

Navigation and the NavBar Modules

Dan

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...