• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Plesk 11.5 with external SMTP, PHP Mail not working, WP contact form not working

ErsanG

New Pleskian
Hi,

I'm using a 1blu.de vServer. On my VPS is Plesk 11.5 with centOS 6 installed.
I created my Webspace (www.quantitec.de) and removed the Mail Services and activated the MSMTP plugin because I'm using the webserver from the hoster 1blu.de.
I activated the Firewall with the "allow any connection" rule.

In Plesk Tools & Settings > External SMTP Server I filled in the server informations smtp.1blu.de password & username. I checked all three boxes -> SMTP needs auth, allow user scripts ...

I installed Wordpress 3.9.2 with a Theme that uses PHP Mail function.

The contact form is not sending any messages out. So I tried other php mail scripts but it doesn't work.

https://quantitec.de/test/sendmail.php
https://quantitec.de/test/info.php


Code:
<html>
<head><title>PHP Mail() test</title></head>
<body>

This form will attempt to send a test email. Please enter where this test should be sent to<br><p>
<form action = "sendmail.php" method = "post" name="sendmail">
Enter an email address: <input type = "text" name = "to"><br>
<input type="submit" value="Send" name="submit"><input type="reset" value="Reset" name="reset"><br><p>



<?php

if(isset($_POST['to']))
{
$host = $_SERVER['HTTP_HOST'];
$uri = $_SERVER['SCRIPT_URI'];
$mail_to=$_POST['to'];
$mail_subject="Test email from $host";
$mail_body="This is a test email, sent from $uri";
$header = "Content-type: text/html\n";
$header .= "From: \"PHP mail() Test Script\"<[email protected]>\n";


if(mail($mail_to, $mail_subject, $mail_body,$header))
{
print "Email sent successfully!";
}
else
{
print "Email did not send";
}
}
?>

</body>
</html>


[root@v37367 /]# tail -f /usr/local/psa/var/log/maillog

Aug 15 17:12:56 v37367 msmtp: host=smtp.1blu.de tls=on auth=on user=u188719_0-website from=admin_qt [email protected] errormsg='the server sent an empty reply' exitcode=EX_PROTOCOL

Where can I find the log file that could give me informations where the problem is?

I just want to use php mail for my wordpress contact form and for a project application.

Please help.

BR
Ersan
 
Last edited:
having the same issue!


Hi please
Look at my answer at the other thread. I found a solution.

You have to edit the php.ini

1.) I switched back from MSMTP to postfix
2.) I set the correct external smtp mail server informations in the php.ini (both php.ini .. the one in etc/php.ini and the one in var/vhost/www/mydomain
3.) now I can send via the quantitec.de/test/sendmail.php but still not via the contact form in wordpress quantitec.de/kontakt
 
Last edited:
Have you got resolved your mail problems. I can see that you have solved part of it, but still can´t receive mail from the contact form. I have the same problems with new subscriptions in Wordpress. The mail from WordPress never reaches the enrollee but stays in Queue in Plesk. I do not have SSL on my server and wonder if it might have something to do with it. Do you have experience with it?
 
Back
Top