php automatic emailing script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Daredevil
Forum Newbie
Posts: 6
Joined: Mon Apr 05, 2004 7:08 pm
Location: AL

php automatic emailing script

Post 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
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post 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!
Post Reply