Send Mail to all the Subscribers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AnmolN
    New Member
    • Nov 2013
    • 1

    Send Mail to all the Subscribers

    Hi,

    I have a website where I have put a subscriber page. And subscribers details like email and name is stored in mysql DB.

    Question- I want to trigger a mail to all the subscribers when admin creates a new blog.

    My Solution- I have fetch all the email ids from DB and loop it to send the mail to each subscriber.

    Issue- Mail is triggering to only 1st email id. For others it is not triggering.
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    Hard to answer without seeing the code. But my suggestion would be dont send email when admin add a block. There is lots of issue to fail. Instead write a mailing code and schedule to mail periodically. It will save time a lot and reduce failure that might occure due to short of resource

    Comment

    • Mukesh9023
      New Member
      • Nov 2013
      • 11

      #3
      first of all make a string of email when you loopig your code as like $to = 'muk@gmail,com' ,'mm@gmail.com' ,'kk@gmail.com' ;
      and then passed into mail function . it is very easy to make string. i have done lot of time this type of work.

      Comment

      Working...