Jump to content


Photo

PHP Mail/Function Question


  • Please log in to reply
2 replies to this topic

#1 centenial

centenial
  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts

Posted 29 September 2006 - 07:03 PM

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:

$my_message = database_backup();

mail($my_email, $my_subject, $my_message, $my_headers);

But that didn't work - How can I include the contents of a function in an email message?

Thanks,

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 29 September 2006 - 07:10 PM

Can you show what database_backup() does?

Orio.
Think you're smarty?

(Gone until 20 to November)

#3 centenial

centenial
  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts

Posted 29 September 2006 - 07:12 PM

Thanks, but I figured it out.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users