[thelist] php mail() settings limited?

Andrew Maynes andrew at humanbehaviour.co.uk
Sun Oct 13 11:39:00 CDT 2002


still trying to solve this old chestnut :(  I must be missing something this is
just too weird
I have setup vlite newsletter locally and it just will not send out mails from
the db.  This is the same as another script I have setup too!  It sends out an
email to the admin '$EmailFrom ='but not to the emails in the db!  weird.  I am
using PostCast Server.  This is the code to send out the mail, is there anything
missing that would prevent the mails being sent?

Andrew

<?
	if ($Submit=="Send Now!")
	{
		// Security
		$subject = strip_tags($subject);
		$TEXTMailText = stripslashes($MailText); // put nl2br() if not showing newline
properly in email messages

		$connection = mysql_connect($dbhost, $dbusername, $dbpassword);
		$query = "SELECT * FROM listsubscribers";
		$result = mysql_db_query($dbname, $query);

		if ($row = mysql_fetch_array($result))


			$EmailTo = $row["email"];
			$ok = true;
		}

		while ($row = mysql_fetch_array($result))
		{
			$EmailTo .= ", " . $row["email"];
			$ok = true;
		}

		if (($mailtype=="text") && ($ok))
		{
			$Message = $TEXTMailText;
			$Message .= $TXTfooter;

			$sent = mail($SenderFrom."<".$EmailFrom.">", $subject, $Message,
"From:$SenderFrom<$EmailFrom>\nReply-to:$EmailReplyTo
					\nbcc:$EmailTo");
		}
		elseif (($mailtype=="html") && ($ok))
		{
			$Message = $MailText; // Send HTML mail as it was entered in multi line text
box
			$Message .= $HTMLfooter;


			$sent = mail($SenderFrom."<".$EmailFrom.">", $subject, $Message,
"From:$SenderFrom<$EmailFrom>\nReply-to:$EmailReplyTo
					\nbcc:$EmailTo\nContent-Type:text/html; charset=iso-8859-1");
		}

	}
?>

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Andrew Maynes
Sent: Sunday, October 13, 2002 05:14
To: thelist at lists.evolt.org
Subject: [thelist] php mail() settings limited?


Is possible that my mail settings are limited to sending out more than one email
at a time ?

Andrew
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.400 / Virus Database: 226 - Release Date: 10/9/02

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.400 / Virus Database: 226 - Release Date: 10/9/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.400 / Virus Database: 226 - Release Date: 10/9/02




More information about the thelist mailing list