mail-queue

PHP PEAR Container error

佐手、 提交于 2020-01-17 01:30:16
问题 Allrighty, it's the first time I ask a question here. My problem is as awkward as it is difficult to get to the bottom of. Story goes like this: I have this little system, which sends alot of e-mail invitations(not spam). So, being sensible, I don't use the PHP function mail(), I use PEAR classes like Mail, Mail_Queue, Net_SMTP, etc. Only problem is, my error logs fill up with tons of errors like this: PHP Notice: Error in sending mail: Mail Queue Error: Cannot initialize container in /usr

Best way to send 10,000+ emails with PEAR/Mail_Queue

只愿长相守 提交于 2019-12-18 13:48:13
问题 I have a cron which generates the whole mail info and puts in a database table using $mail_queue->put(.....) with an option to delete emails after they're sent. Here's where I need a little help: What is the best way to send the emails after I have the above info? Running the $mail_queue->sendMailsInQueue() right away, using other cron job(s) or something else? The server limit by the way is 100 emails / minute. Currently the last csv diff for Mail_Queue is not applied (currently working with

Laravel Mail Queue: change transport on fly

▼魔方 西西 提交于 2019-12-11 00:06:10
问题 I'm trying to use different SMTP configuration for each user of my application. So, using Swift_SmtpTransport set a new transport instance, assign it to Swift_Mailer and then assign it to Laravel Mailer. Below the full snippet: $transport = Swift_SmtpTransport::newInstance($mailConfig['smtp_host'], $mailConfig['smtp_port'], 'ssl'); $transport->setUsername($mailConfig['smtp_user']); $transport->setPassword($mailConfig['smtp_pass']); $smtp = new Swift_Mailer($transport); Mail::setSwiftMailer(

CMSIS-RTOS's osMailFree() returns some address instead of osStatus-type value

怎甘沉沦 提交于 2019-12-10 22:48:35
问题 So I'm using CMSIS-RTOS mail-queue mechanics with Keil uVision 5.0.5 at STM32F427 microcontroller running at 180MHz . And every now and then releasing previously allocated mailbox element with osMailFree() resulted in some address being returned instead of osStatus -type value like osOK or osErrorValue or whatever is said in the docs. This address points to os_mailQ_p_##blahlbah element of a service structure allocated with osMailQDef . This also means it points right beyond the end of an

Best way to send 10,000+ emails with PEAR/Mail_Queue

僤鯓⒐⒋嵵緔 提交于 2019-11-30 10:35:49
I have a cron which generates the whole mail info and puts in a database table using $mail_queue->put(.....) with an option to delete emails after they're sent. Here's where I need a little help: What is the best way to send the emails after I have the above info? Running the $mail_queue->sendMailsInQueue() right away, using other cron job(s) or something else? The server limit by the way is 100 emails / minute. Currently the last csv diff for Mail_Queue is not applied (currently working with the support on that), so I can't use the "delay" option. I had an idea to use the $seconds_to_send

How do I diagnose this PHP segmentation fault?

笑着哭i 提交于 2019-11-28 16:29:00
问题 I am running a command-line PHP job that is resulting in a Segmentation Fault. This job has worked for a long time, but it processes something that is emailed in. Apparently there's something in this email that's break it, but I have no idea what. If I put the core file in gdb, it's really no help: $ gdb /usr/local/bin/php core.20381 GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is