Page 1 of 1

aoutomatic email send

Posted: Thu Jan 25, 2007 5:28 pm
by acwe88
Hi there

I'm fairly new to php and im absolutely hooked

and was wondering if you can send emails automatically when a mysql query is true

Thanks
Alex

Posted: Thu Jan 25, 2007 5:30 pm
by feyd
Yes, provided all the ducks are in a row.

Posted: Thu Jan 25, 2007 5:37 pm
by acwe88
:?: MMM
can you explain?

Thanks

Posted: Thu Jan 25, 2007 5:42 pm
by feyd
It depends on settings of PHP and the server.. but with everything set correctly, yes it's possible to send emails. They won't magically send if you don't provide the code, if that's what you're hoping for.

Posted: Thu Jan 25, 2007 5:58 pm
by acwe88
yeh apologies... I know its a bit of an open ended question.

I was just looking for step in the right direction

What i am aiming to do is build a domain name checker which basically tells me when my domain names are up for renewal,

so far i have all the names with there renewal date in a table on the database. I can call the date with a mysql select command and it shows the domains 30 days in advance of there renewal. But now i would like the system to send an email automatically on this day.

regards
Alex

Posted: Thu Jan 25, 2007 6:08 pm
by feyd
Okay, so you'll want a cron running (or similar) that calls your check script daily, then you'll need to emailing interface. You could roll your own, or use an existing library such as Swift, which is written by one of our own moderators. :)

Posted: Fri Jan 26, 2007 5:21 am
by acwe88
Thanks for all your help Feyd