• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

using SMTP from PHP?

M

manarak

Guest
ok, I'm still running Plesk 7.5.4, and after searching on the forums for 2 hours, I didn't find any post with an answer to my question.

I want my php scripts to use SMTP to send mails (authenticated), since this seems to be the cause of my mails going into the trashbin at some hosts.

Now, I found a lot of tutorials telling me that this is easy to do, just include_once "Mail.php" and...

Warning: main(Mail.php): failed to open stream: No such file or directory in /home/httpd/vhosts/*******.com/httpdocs/mail_test.php on line 2

Fatal error: main(): Failed opening required 'Mail.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/*******.com/httpdocs/mail_test.php on line 2


ummm... ok, what do I do now?

That's where I am stuck.

can anybody help?
 
I tried <<pear install mail> (the exact syntax may differ), but it said something of a unknown command or something not found in system.php
 
Back
Top