Questions tagged [pear-mail]
20 questions
4
votes
0 answers
Pear Mail Factory Debug issue
I am hoping that someone can help me with an issue that i cam across while trying to trouble shoot. I have some code on my site that sends a daily email to me. the last time it ran was 12/1/17. THe only part not working is the code that sends the…

onekanoobie
- 41
- 2
2
votes
0 answers
DEBUG: Send: QUIT Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: Connection refused (code: -1, response: )]
I'm trying to send an email using PHP script that I'm hosted on Godaddy hosting. I'm using Pear Mail() function to send emails, but now I'm getting an error code: -1, response:
Error:
DEBUG: Send: QUIT
Failed to connect to ssl://smtp.gmail.com:465…

Ganesh Aher
- 1,118
- 3
- 21
- 51
2
votes
0 answers
PHP mail does not send the mail and no error
I'm using this codes and this does not give me any error and does not send any mail.
Is there any notable issue with this?
and it doesnt send via the SMTP details i gave.
Im doing everything manually.
Could someone rewrite this codes to work with…

shmshd17
- 59
- 7
2
votes
1 answer
Send Email using Outlook through PHP Pear
I'm trying to send an email using PHP Pear. It works when I send email using Gmail with this settings:
$smtp = Mail::factory('smtp', array(
'host' => 'ssl://smtp.gmail.com',
'port' => '465',
'auth' => true,
'username' =>…

Grand Marshal Braev
- 283
- 1
- 17
2
votes
0 answers
Sending user uploaded photo from form to email as an attachment with pear mail
I have an issue, I have a form that a user uploads an image and its suppose to send to our email as an attachment. As I am new to Pear Mail(required by my hosting provider) I need some advice on how to proceed from the code below as I have pieced…

Danny1234
- 29
- 3
1
vote
1 answer
How can I make my PEAR::Mail implementation faster for sending bulk emails?
I am using two email templates and tested performance:
100 emails with 25 products per email took 24 seconds.
100 emails with 12 products per email took 16 seconds.
All images (e.g. logos, banners, products) are text that invoke URLs where images…

Jaime Montoya
- 6,915
- 14
- 67
- 103
1
vote
3 answers
PHP Pear Mail sending plain text instead of HTML format
Pear mail does not send HTML formated text instead sends plain text which shows clean html codes. I have already added "Content-type: text/html\r\n"; but still it send as plain text.
And also how can i give SMTP auth of the specific email because…

Shamshid
- 25
- 4
0
votes
0 answers
PHP Pear Mail sending e-mails through office 365 Failed to set sender | STARTTLS is required to send mail
I'm trying to send mail through an office 365 e-mail address but i can't figure out how to enable STARTTLS no matter what i search or try.
My…

Suzanne Edelman
- 11
- 4
0
votes
1 answer
How to update my database when users click the "Unsubscribe" button of the mail client?
I am using PEAR::Mail to send thousands of emails and everything is working correctly. In the footer of my emails I have this link for those who want to unsubscribe:
When someone clicks that link, I go to my database to remove that email address…

Jaime Montoya
- 6,915
- 14
- 67
- 103
0
votes
1 answer
Where in the Linux directory tree can I find the email delivery status reports and tracking reports of emails sent using PEAR::Mail?
I am using this code to send emails and it is working correctly even for sending thousands of emails:
....
require_once "/.../ea-php70/root/usr/share/pear/Mail.php";
$params['sendmail_path'] = '/usr/lib/sendmail';
$mail_object =&…

Jaime Montoya
- 6,915
- 14
- 67
- 103
0
votes
0 answers
PHP PEAR MAIL, how do you send an Outlook calendar invite?
I have spent most of today trying different approaches: none worked.
I can send emails using PHP PEAR MAIL
I can build .ics files
I can attach files to PHP PEAR MAIL emails
.. what I don't know is:
How do I format the email so that email clients…

Norsak
- 181
- 1
- 5
0
votes
0 answers
SMTP Email Failed to connect socket error
I have got business email package with bigrock and was able to work with it since last 2 months but suddenly since last two days, it is throwing the error.
"Failed to connect to smtp.indianvisaservice.org.in:587 [SMTP: Failed to connect socket:…

Ojibix Creatives
- 97
- 1
- 12
0
votes
0 answers
Why Mailtrap.io does not receive emails from pear-mail?
I installed pear-mail including smtp like so
$ sudo pear install Net_SMTP
my php looks like this
$mail = @ \Mail::factory('smtp', $params);
$mail = & $mail;
$success = $mail->send($this->vchEmail, $headers, $body);
if (!$success) {
…

Yevgeniy Afanasyev
- 37,872
- 26
- 173
- 191
0
votes
2 answers
PHP pear-mail smtp not working
When I try to run this code, I get a strange error I cannot find an answer to:
// Pear Mail Library
require_once "Mail.php";
$from = 'someone@gmail.com';
$to = 'someoneelse@gmail.com';
$subject = 'Hi!';
$body = "Hi,\n\nHow are you?";
$headers =…

Evgeny
- 153
- 16
0
votes
1 answer
How to send email using PHP PEAR mail and Exchange Server 2016
I need to send an SMTP email over Exchange Server 2016 in PHP using PEAR mail and an authenticated AD user. I found an example online:
…

Vladimir
- 1,425
- 16
- 31