centenial Posted September 29, 2006 Share Posted September 29, 2006 Hi,I have a PHP function called 'database_backup()' that makes a complete backup of a MySQL database. Every time I run the php file I want it to email me the backup. I tried doing it like this:[code]$my_message = database_backup();mail($my_email, $my_subject, $my_message, $my_headers);[/code]But that didn't work - How can I include the contents of a function in an email message?Thanks, Quote Link to comment Share on other sites More sharing options...
Orio Posted September 29, 2006 Share Posted September 29, 2006 Can you show what database_backup() does?Orio. Quote Link to comment Share on other sites More sharing options...
centenial Posted September 29, 2006 Author Share Posted September 29, 2006 Thanks, but I figured it out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.