PDA

View Full Version : Sending e-mails to users with different content?


galileo
04-14-2007, 04:34 AM
Hello,

I am working on a project right now and i need help in sending an email to users each with own content ..
For more clarification,

I have a MySQL database .. Table students .. each record consists of these fields:

id INT
name, email, content TEXT

let's say i have 20 students .. I want to send each one an email containing his name like "Dear name" and the content

So is it possible?!

Thanks in advance

Yours,
Galal

davidj
04-14-2007, 08:47 AM
you need to call the email script within a Loop

the loop will poll through each name and address and then fire the mail each turn