This is a discussion on "Mass Email" within the PHP Forum section. This forum, and the thread "Mass Email are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Mass Email
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Mass Email
Hi,
I know how to send email (using PHP), I'm just wondering if it's a good idea to have a ton of people under Bcc (Cc or To would be stupid for obvious reasons). There's no problem with that, is there? I don't need some bloated software that manages lists for me and what not. The only advantage I can see of using some mass-email software is that it might allow you to customize each message (like put include the user's name in the message, "Hello darkzerox, [...]" whereas with a big Bcc list, you can't do that. And before anyone starts the spam debate, I'm writing this for a client who just wants to send a few messgaes to his opt-in members. Thanks for any tips. |
|
|
|
#2
|
||||
|
||||
|
Re: Mass Email
I wouldn't do BCC. If you get too many addresses in there, the mailer daemon will start cutting of recipients, and you won't be able to tell. Plus I think some mail clients will show the rest of the BCC addresses if your one of them.
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#3
|
|||
|
|||
|
Re: Mass Email
Ahh... okay then. Well then, I'm inserting all the user data with emails into a MySQL database. Any way I can pull the emails from there and use them in some web-based mailer? What might you recommend?
|
|
#4
|
||||
|
||||
|
Re: Mass Email
PHP's mail() function would work pretty well
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#5
|
|||
|
|||
|
Re: Mass Email
Well, yes... that's what I was going to use, but then where would I put the emails? You said it might be a bad idea to put them all in Bcc.
|
|
#6
|
||||
|
||||
|
Re: Mass Email
Loop it, sending an email independently to each person. Just be warn: if you go to long without outputting any text, the browser will get a timeout error, and sometimes scripts running for too long will be cancel by the server.
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
| The Following User Says Thank You to CloudedVision For This Useful Post: | ||
|
#7
|
|||
|
|||
|
Re: Mass Email
Yes, that was my concern. The only reason I didn't want to do that. But I don't think my client will get more than 500 subscribers, so I doubt it'll be a problem unless it's horrendously slow. I guess I'll cross that bridge when I get there, thanks for the tips.
|
|
#8
|
||||
|
||||
|
Re: Mass Email
I too would use the mail function and loop through the DB. When doing this, you can also customize the output per recipient.
I would also watch if your hosting allows you to mass mail -last thing we would want you/your client is getting the account suspended by their host. Ready-made mass-mailers sometimes have an option to send emails out in batches of say 15 in over 5 mins (3 per min) which, if your host doesnt allow mass-mailing, will get around the problem - normally, anyway! |
|
#9
|
||||
|
||||
|
Re: Mass Email
Couldn't you add in to the loop a function to display the contents of the email just sent, so you're always outputting text? It might slow the sending but you could leave it with a massive stack of emails to churn out overnight and presumably you could add in a random delay between emails - i.e. between 5 & 15 seconds, to get around the potential host disallowing mass mail issue?
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
|
|
#10
|
|||
|
|||
|
Re: Mass Email
Quote:
Thanks for the heads up Marc. |
|
#11
|
||||
|
||||
|
Re: Mass Email
I would use some fancy AJAX. Request the mailer again and again - mailing 20 or so emails each time - using AJAX. Then you also get a lovely little progress bar.
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#12
|
|||
|
|||
|
Re: Mass Email
I could also queue the emails up in a database, and create a cron job that knocks a few off every so often, no? That way you wouldn't need to keep the website open either? Make it completely server side. Not really familiar with cron, but I'm sure I can figure it out.
Oh, one thing though, PHP's mail() function isn't really working well at all on this server (ixwebhosting). I got it to send out one email, but it refuses to send any more. Well, I guess it's the smtp server that's refusing? The function isn't failing, and I'm sure the code is right since it worked once... and it isn't my mail client either, I tried a few different email addresses at different domains (and it's not sitting in Junk either). I tried PHPMailer and SwiftMailer too... tried hooking it up to send through my Gmail account, but that didn't work either... Quote:
|
|
#13
|
||||
|
||||
|
Re: Mass Email
The entire point of displaying each email message was to output something to restart the timeout timer - just chucking ideas out. I'm not hugely familiar with the mail functions so possibly not a valid solution.
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
|
|
#14
|
||||
|
||||
|
Re: Mass Email
Ask your host
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
| The Following User Says Thank You to CloudedVision For This Useful Post: | ||
|
#15
|
|||
|
|||
|
Re: Mass Email
Thanks. I contacted them via chat but after waiting 30 minutes he just told me to create a ticket. Waiting for them now... I hope these guys know what they're doing.
|
|
#16
|
||||
|
||||
|
Re: Mass Email
Quote:
Who's this infamous hosting company of yours anyways?
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#17
|
|||
|
|||
|
Re: Mass Email
ixwebhosting. I didn't choose them. I host my own sites on hostgator...I've been pretty happy with them thus far.
Anyway, it seems adding these headers helps: Quote:
Last edited by darkzerox; Jul 2nd, 2008 at 23:37. Reason: typo ftl |
![]() |
| Tags |
| bulk, email, mass, php |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tommyttt | Databases | 0 | Mar 30th, 2008 17:00 | |
| PHP email form not sending email | Kurt | PHP Forum | 1 | Oct 12th, 2007 04:26 |