pear

Pear Mail Going Very Slow (10 seconds to send)

元气小坏坏 提交于 2019-12-24 23:28:59
问题 A similar question has been asked before by someone else, but there were no answers. I am sending two emails using Pear Mail, but when debugging why my script was going slow, I discovered it was taking an avg of 10.34 seconds to send both emails. Am I not setting something that I should? Anything I can change? Here's my code: $sendMail = sendMail($to, $subject, $message_body); function sendMail($to, $subject, $message_body) { $headers["From"] = "<my from address>"; $headers["To"] = $to;

PEAR Mail using gmail SMTP won't send 2 emails in sucession

淺唱寂寞╮ 提交于 2019-12-24 14:13:54
问题 I have PEAR Mail and Mail_mime all working very nicely using gmail's SMTP server to send. Thanks to some posts on here that helped me get that far! But, in some scenarios, I need to send two emails, with different content, and to different recipients one right after the other. This is refusing to work. I can confirm both the emails I am trying to send are well-formed and valid, as both will send with the other one commented out. But whenever I attempt to send them both, only the first gets

Adding files to a Tar Archive in PHP with different filenames

与世无争的帅哥 提交于 2019-12-24 12:58:46
问题 I'm currently using the Archive-Tar Pear extension for PHP to add a collection of files into a Tar Archive. These files are stored on a filer with an extra extension e.g. filename.tgz.104850209.t or filename2.doc.2154395.t I'd like to remove this extra extension while adding the files so that my Tar Archive would have the files: filename.tgz and filename2.doc Is there a way of doing that without having to copy/rename the source files first before adding to the Archive? Thanks, Mark. 回答1:

SYmfony plugin upload error: You must specify the min version for symfony

雨燕双飞 提交于 2019-12-24 09:29:48
问题 I have been trying to upload my SYmfony plugin for some time but I keep getting this error. Initially the dependency on the SYmfony Package was missing, but I added that. My package.xml looks like this: <?xml version="1.0" encoding="UTF-8"?> <package packagerversion="1.9.0" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http:/

Pear Mail “Unable to find class for driver smtp” Cannot find file, that is there

谁说胖子不能爱 提交于 2019-12-24 07:26:20
问题 My VPS is running CentOS 5.3. I have installed pear, Mail, and Net_Mail. When I try to send mail, I get, "Unable to find class for driver smtp". I looked through Mail.php, found that I need a 'Mail/smtp.php' inside my pear directory, which there is. I verified the php include directory, and I reset all of the perms to apache via chown. I checked chmod, and they are all 644. My code: $from = "Admin <admin@myemail.com>"; $to = "New User <".$email.">"; $subject = "Welcome to MyEmail!"; $body =

Pear Mail - Recipient address rejected - Error

自作多情 提交于 2019-12-24 05:51:05
问题 I am running into the following error using Pear Mail: Notice: Error in sending mail: Failed to add recipient: user@domain.com [SMTP: Invalid response code received from server (code: 550, response: 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table)] in /PEAR/PEAR.php on line 873 The email is not sent. Other email addresses such as Gmail and Yahoo are working OK. It only errors for specific email clients, as far as I am aware. I am using the following script to send

SMTP: Failed to connect socket: Unable to find the socket transport “ssl”

独自空忆成欢 提交于 2019-12-24 03:12:11
问题 I've been trying to get to be able to send emails with Pear on WAMP through GMail , and after spending hours setting it all up and figuring out all the errors I was getting, I thought I was so close, until I started getting this error: Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (code: -1, response: )] Using this code: <?php require_once "info.php"; require_once

SMTP: Failed to connect socket: Unable to find the socket transport “ssl”

為{幸葍}努か 提交于 2019-12-24 03:12:01
问题 I've been trying to get to be able to send emails with Pear on WAMP through GMail , and after spending hours setting it all up and figuring out all the errors I was getting, I thought I was so close, until I started getting this error: Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (code: -1, response: )] Using this code: <?php require_once "info.php"; require_once

How do you change the default Pear/PECL build folder from /var/tmp?

非 Y 不嫁゛ 提交于 2019-12-24 02:31:48
问题 I'm trying to install a PECL package on Linux, but the installer never gets past the configure stage. My hosting provider mounted a file system at /var/tmp that prevents files from executing, and that's causing this error: root@host [/usr/local/apache/conf/includes]# pecl install pdo downloading PDO-1.0.3.tgz ... Starting to download PDO-1.0.3.tgz (52,613 bytes) .............done: 52,613 bytes 12 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api

How do you change the default Pear/PECL build folder from /var/tmp?

ε祈祈猫儿з 提交于 2019-12-24 02:31:29
问题 I'm trying to install a PECL package on Linux, but the installer never gets past the configure stage. My hosting provider mounted a file system at /var/tmp that prevents files from executing, and that's causing this error: root@host [/usr/local/apache/conf/includes]# pecl install pdo downloading PDO-1.0.3.tgz ... Starting to download PDO-1.0.3.tgz (52,613 bytes) .............done: 52,613 bytes 12 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api