You are here: Re: [PHP] emailing MySQL list not working « PHP « IT news, forums, messages
Re: [PHP] emailing MySQL list not working

Posted by "Richard Lynch" on 11/14/05 21:35

On Fri, November 11, 2005 9:33 pm, Bruce Gilbert wrote:
> $headers = "From: $sender";
> $headers .= "Reply-To: $reply_to";
> $headers .= "Return-Path: $return_path";

> $headers .= "X-Sender: $x_sender";
> $headers .= "X-Mailer: PHP4\n"; //mailer

These two may trip some spam filters.

> $headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal

Setting this at all probably trips a few spam filters.

> $headers .= "Mime-Version:1.0\n Content-Type: text/plain;
> charset=\"iso-8859-1\nContent-Transfer-Encoding: 8bit\n";
>
> mail( $recipient, $subject, stripslashes($message), $headers );

Check the return error code!!!
http://php.net/mail

> sleep(1);

Just how many emails are you trying to send with mail()?

http://php.net/mail was never designed for heavy-volume lists...

Look into http://phpclasses.org for something that WAS designed to
handle the volume you need.

> }
>
> // run second query to automatically dump unsubscribed email
> addresses.


> $query2 = "
> DELETE FROM
> mailinglist
> WHERE
> subscribe='0'
> AND
> confirmed='0' ";
>
> //run the query
> mysql_query($query2, $link) or die (mysql_error());

Dude, if I unsubscribed, get me off the list *BEFORE* you send out
another email, not after.

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация