Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to send my html email to 1343 people

Status
Not open for further replies.

gameon

Programmer
Feb 23, 2001
325
GB
Hi, I have and html e-mail that I have to send out to 1343 people.

It is coded like this at the mo:

<?php

$recipient1 = email add&quot;;
$subject1 = &quot;subject&quot;;

$mailheaders = &quot;From: the company\n&quot;;
$mailheaders .= &quot;Reply-To: thecomany@me.com\r\n&quot;;
$mailheaders .= &quot;Content-Type: text/html\r\n&quot;;


$msg1 = &quot;<html></html>&quot;;
mail($recipient1, $subject1, $msg1, $mailheaders) or die (&quot;Couldn't send mail&quot;);
header(&quot;Location: emailed.htm&quot;);



?>

Someone sugessted that I use a database, but I do not have access to mine at the mo.

I have all of the addresses in a txt file.

Can anyone help.

Chrs,

Matt

 
You could try subscribeme lite. Its good, and free.

If your addresses are a plain text file with the addresses on each line you can just rename your file to address.txt and store in the correct location.

 
Where is the correct location?

Can you show me an example?
 

You will need to download the zip file, modify some of the config settings to point to your perl directory and where you want the email address to be installed.

When you have the script working just overwrite the address.txt file with your list of names.
 
Or open the text file with fopen and parse the email adresses in a loop to the mail function, then dont use die, but write in the textfile if the mail has been sent or not.
mcvdmvs
mick@nederland.net

knows: html, JavaScript, dhtml, css, php, mysql, postgresql, xml, linux
to learn: java, c++, perl, python
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top