• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

php email script not work on plesk 8.3

M

milanello

Guest
Hi guys

i have bought a new server with plesk 8.3
an email works fine

but this script php not works


<?php

$to = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$result = mail($to, $subject, $message, $headers);
print $result;

?>


someone can help me?
 
try adding:
$headers.='MIME-Version: 1.0\r\n';
$headers.='Date: ' . date('r', time()) . '\r\n';

I think you need more headers.
 
thanks for the reply

but the problem.. is on the server
because this script works fine in a plesk 8.0 machine

this script was create from cs-cart support, for test the machine (because the php via mail doesn't works).
they said me that my server probably... have some setting to check
 
the script works fine on my server...

have you any errors in the apache or mail logs ?
 
thank you very much.. for the test...

this is the log from apache


[Mon May 05 17:16:50 2008] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon May 05 17:16:50 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon May 05 17:16:51 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Mon May 05 17:16:51 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Mon May 05 17:16:51 2008] [warn] Init: SSL server IP/port conflict: default-xx-xx-201-161:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:78) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:133)
[Mon May 05 17:16:51 2008] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Mon May 05 17:16:51 2008] [notice] Digest: generating secret for digest authentication ...
[Mon May 05 17:16:51 2008] [notice] Digest: done
[Mon May 05 17:16:51 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Mon May 05 17:16:51 2008] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
[Mon May 05 17:16:51 2008] [warn] Init: SSL server IP/port conflict: default-xx-xx-201-161:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:78) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:133)
[Mon May 05 17:16:51 2008] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Mon May 05 17:16:51 2008] [notice] Apache/2.2.6 (Unix) DAV/2 PHP/5.2.4 mod_ssl/2.2.6 OpenSSL/0.9.8b mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
qmail-inject: fatal: read error
qmail-inject: fatal: read error



i have dr.web on the server
 
Back
Top