<?php $to = 'email@example.com'; $subject = 'Some Subject'; $message = 'Some Message'; mail($to, $subject, $message, '', '-firstname.lastname@example.org'); ?>
This works but I need to be able to send a *.sql file as an attachment and although there is lots of help on the net I am a bit stuck. Anyone give me a simple addon to this script for me to mail the attachment? I have looked and can't use the phpmailer class as don't have the ability edit the php.ini file on my hosted server.
Also, I would like to have the current date within the subject, how can I do this?