Page 1 of 1

email with mysql values

Posted: Thu Feb 01, 2007 10:44 am
by acwe88
Hi there

I have built my first program in php :) but am now stuck

i have a program which sends me an email a month in advance of when my domain names are up for renewal

what i am aiming for:-

email content needs to contain mysql values for 4 different fields in my table

so when i get the email it will show me the domain names which are up for renewal

Is this possible?


Thanks
Alex

Posted: Thu Feb 01, 2007 11:05 am
by Grim...
Yes - just stick the content into a string:

Code: Select all

<?php]
$mymessage = "Hello ".$name.", your ".$domain." domain is going to expire on ".$date.".";
mail('me@here.com', 'A Subject', $mymessage);