Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Create a new mail and send it to queue job

Create a new mail and send it to queue job 2 months 4 days ago #80343

  • jlabuelo
  • jlabuelo's Avatar
  • Offline
  • Senior Member
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
Hello All

Let me share a new functionality I am trying to add to my suitecrm configuration. I am creating a new button that launches a process which reads a custom "status field" of all accounts, and for all those which has the field set to "1" I create an email using the PHP Mailer funcion and send it to the mail address of the account.

The problem is that we are using a normal mail account, and when we run the process, and as it affects too many accounts, the mails starts failing after the first 50 mails sent. Process runs fine, but the action to send more than 50 mails in the same process crashes.

I think it is due to the limitation of the mail account we have in the "General Configuration" in the Administrator Screen. However the configuration we have to send email Campaigns works fine as we can limit the number of mails per minute to be sent.

My question would be, Is there any way I could add the mail I am creating to the "Email Queue" of the emails that is produced when a Campaign is launched??

If so, could you please provide me an example of the code?

Thanks a lot!
The administrator has disabled public write access.

Create a new mail and send it to queue job 2 months 3 days ago #82082

  • jlabuelo
  • jlabuelo's Avatar
  • Offline
  • Senior Member
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
Hello there!, Sorry, nobady got this same need before??, Any ideas or suggestions will be very welcome! :-)

Thanks!
The administrator has disabled public write access.
Time to create page: 0.025 seconds
Powered by Kunena Forum