Announcement

Collapse
No announcement yet.

how to send an e-mail asynchronously

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to send an e-mail asynchronously

    When sending an e-mail with sc_mail_send() the app waits a while when communicating with mail server, sending the e-mail and closing connection.
    Depending on the mail server it can be significanly slow. When you do quite a lot mail sending this can be a big problem.
    Is there a way to send a mail without locking the app?
    Using Ubuntu Linux 13.04 and SC Professional MySQL 7.1.last
    We need: good and complete documentation written in proper English

  • #2
    You can consider storing the emails into a database table and create a separate process (i.e. a cron) to extract and send.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      It crossed my mind as well. I thought there is better solution for this.
      Can't you do something like multitasking - something similiar to SC multitasking source generation?
      Using Ubuntu Linux 13.04 and SC Professional MySQL 7.1.last
      We need: good and complete documentation written in proper English

      Comment

      Working...
      X