Page 1 of 1

php automatic emailing script

Posted: Mon Apr 05, 2004 7:08 pm
by Daredevil
Hey guys I'm new to this forum. I've got a few questions maybe you guys can help me with.

I am running a process of scripts that receive a file via ftp then emails them to the listed users.The ftp parts works with beauty but the file attachment process isnt working correctly.

Here is an example:

$mailto = "rlewis@youguess.com"

$subject = "subject"
$body = "body"
$from = "mailbot@youguess.com"

$file = "/usr/local/mail-script/weave/eca.mdb"
$type = "application/octetstream"



Well I did some research and went to the file in linux that lists the avalible extensions and added one for msaccess but still a no go. I know that by ftp program copies it correctly but when it sends out the email it attaches a empty and unstructured file labled eca.mdb.

Do I have something wrong with the script or is it something else?

Thanks,
Daredevil

Posted: Tue Apr 06, 2004 6:14 am
by magicrobotmonkey
Try getting PHPMailer! At first I was too proud but I finally gave in and got it and had the email working in Ten minutes!