I would like to be able to get an array of emails and make sure each email is sent. (e.g. Array > send each email > result) I kind of changed the question here because this is more important, plus I have added a 50 rep. point. Codewise how can I do this?
Share
If you just want to send out a bunch of the same email at once, you
could call
implode()on your array of emails to turn it into a string:Or, if you want to try something more complicated, you could use a
foreachloop to cycle through each email and to keep track ofsuccesses and failures:
I’m guessing your original question had to do with sending out all these
emails every day or something without necessitating you hitting a
button. If you have ssh access, see what happens if you type:
If you get some sort of error, you will have to speak with your system
administrator about cron. If you get a file, then you can use cron. This
is not a part of your current question, though, so I’ll leave it.