In my mailer, I wish to make a HTML form with BROWSE buttons, with which I would be able to find message body and email list on local computer. How would that script look like? Both HTML and php part.
@PunkSktBrdr01Dec 06.2003 — #To have a browse button, use <input type="file"...>. Not sure on the PHP though. I think I've seen other threads about file uploads, so search around for those. Pyro will find this thread eventually.
@ExtremeauthorDec 06.2003 — #I tryed to do simple stuff as that one, but I got error for ex. cannot find file body.txt in home//bin//documents and settings/...
I tryed to search but haven't found anything usable. I guess I will wait for Pyro once again. ?
@ExtremeauthorDec 06.2003 — #Hm, that is for uploading file to remote dir. CAn it be done without uploading files. I mean, I just wanted to read messsage body from local file, not upload it. It is not practical if it is uploaded every time I wish to send email. So, maybe it could be done to read it directly from local disk by simply using browse button, or something. This is my code in mailer.php that regards message body: [code=php]$options_mail_body_file = 'body.html';[/code] and this is the part where it reads emails list(maillist.txt), and it also needs to be browsed for locally... [code=php]$options_to_emails = 'maillist.txt'; ... ... ... $list = file('maillist.txt'); $lenth = count($list);[/code]