Re: emailing MySQL list not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry for the newbie question...

I did a search on php.net but didn't find my answer.

what does \r\n do as opposed to just \n?

and yes, I know what  \n does.


On 11/14/05, Richard Lynch <ceo@xxxxxxxxx> wrote:
> 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
>
>
>


--
::Bruce::

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux