Mailing multiple address.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Mailing multiple address.

Post by JellyFish »

Hey, I was wondering if mailing multiple people by passing a string of comma-separated addresses to the mail() function will run slowly or if there's a better more sophisticated way to do this in PHP. I have this database for people that have opted in for a newsletter I'm offering and I'd like to be able to write out my newsletter and click submit and have php do the rest, swiftly.

Also, how do I send attachments with PHP?

Any info on this is appreciated. Thanks! :D
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Mailing multiple address.

Post by jaoudestudios »

If you are sending large amounts of emails and possibly with attachments, I would look into PEAR. I would not usually recommend this as pear is quite large. However for sending mass emails it is good as it will keep ports open until sending is complete - which is more efficient.

If you are sending over 20 emails at a time or in a day (there is not exactly figure) I would be careful not to get your IP banned! It is easy to get your IP on the spam list but more difficult to remove it.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Re: Mailing multiple address.

Post by JellyFish »

Well my host is godaddy and it's shared so they won't really let me install frameworks or plugins.

All the people I'll be mailing have opted for the newsletter and they can scratch themselves of the list if they want to. So I'm just sending email to those that have requested it. Also I will be sending them once a week at least, and not every day.

Will I still be in the red when it comes to getting on a blacklist for spam?
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Mailing multiple address.

Post by jaoudestudios »

Probably, all it takes is a few users who are too lazy to unsubscribe so they hit the junk button in google mail or hotmail etc and bam you are on the blacklist.

There are a few companies out there who take care of this for you. We use http://www.verticalresponse.com, their system is not bad and dirt cheap - pay as you go. Think it is £0.01 per email. Totally worth it as they deal with blacklists etc.

How many are you sending out each week?
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Re: Mailing multiple address.

Post by JellyFish »

I'm sending one a week at least. But I don't see how I have pay money to send emails that are from my own newsletter. It's a newsletter not a spam thing, they are continuous updates.
User avatar
Stryks
Forum Regular
Posts: 746
Joined: Wed Jan 14, 2004 5:06 pm

Re: Mailing multiple address.

Post by Stryks »

I assume you have looked at Swift Mailer?

It seems to be a forum favorite, it even has it's own board here somewhere.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Mailing multiple address.

Post by jaoudestudios »

Oh yes how could I forget Swift mail. But I think this has to be installed on the server?

Its up to you, just trying to warn you and save you time and hassles in the future. I know it is your newsletter, but spam has messed it up for all of us!
Post Reply