• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

email sender

I'm looking for a script that allows me to send email to a full textfile full of emails....

how can I do this?
0
melvinbrad20
Asked:
melvinbrad20
1 Solution
 
BogoJokerCommented:
Hi melvinbrad20,

Look into phpmailer, it is a very popular emailing script for php:
http://phpmailer.sourceforge.net/

I would also suggest moving the emails into a database, like mysql, but either way is fine.

Joe P
0
 
waygoodCommented:
Also putting the emails in a database, could allow you to update the info so you know which ones have been sent to. So if your script crashes for some reason, you dont send the email out to the same people again.

ie
$query_link=mysql_query("SELECT * FROM my_emails WHERE sent=0");
while($row=mysql_fetch_assoc($query_link))
{
  mail($row['email']........);
  $sql="UPDATE my_emails SET sent=1 WHERE email_id=".$row['email_id'];
  mysql_query($sql);
}
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now