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, Link to comment https://forums.phpfreaks.com/topic/22530-php-mailfunction-question/ 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. Link to comment https://forums.phpfreaks.com/topic/22530-php-mailfunction-question/#findComment-101063 Share on other sites More sharing options...
centenial Posted September 29, 2006 Author Share Posted September 29, 2006 Thanks, but I figured it out. Link to comment https://forums.phpfreaks.com/topic/22530-php-mailfunction-question/#findComment-101064 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.