简体   繁体   中英

Using Pear to send mail

I'm trying to use Pear to send email with smtp and ssl using the Mail class. I currently have the following in my contact form file:

include_once('Mail.php'); 
include_once('Mail/mime.php');

But I'm receiving an error:

Warning: include_once(Mail.php): failed to open stream: No such file or directory in my directory on line

In php.ini for Core include_path currently is: .:/usr/lib/php:/usr/local/lib/php

Do I need to add the Pear directory to my php.ini file? So it would look like this: .:/usr/lib/php:/usr/local/lib/php:/usr/lib/php/pear

是的,如果可能的话,可以通过直接编辑php.ini文件来实现。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM