aoutomatic email send

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
acwe88
Forum Newbie
Posts: 24
Joined: Tue Nov 07, 2006 10:47 am

aoutomatic email send

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Yes, provided all the ducks are in a row.
acwe88
Forum Newbie
Posts: 24
Joined: Tue Nov 07, 2006 10:47 am

Post by acwe88 »

:?: MMM
can you explain?

Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
acwe88
Forum Newbie
Posts: 24
Joined: Tue Nov 07, 2006 10:47 am

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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. :)
acwe88
Forum Newbie
Posts: 24
Joined: Tue Nov 07, 2006 10:47 am

Post by acwe88 »

Thanks for all your help Feyd
Post Reply