Extreme
12-05-2003, 07:23 PM
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.
|
Click to See Complete Forum and Search --> : Insert message body through HTML form Extreme 12-05-2003, 07:23 PM 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. PunkSktBrdr01 12-05-2003, 09:17 PM 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. Extreme 12-05-2003, 09:30 PM 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. :D pyro 12-05-2003, 11:01 PM I've got to run, so I'll just post a link quick... Hope it helps. http://forums.webdeveloper.com/showthread.php?s=&threadid=10236#post53379 Extreme 12-06-2003, 01:47 PM 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: $options_mail_body_file = 'body.html'; and this is the part where it reads emails list(maillist.txt), and it also needs to be browsed for locally... $options_to_emails = 'maillist.txt'; ... ... ... $list = file('maillist.txt'); $lenth = count($list); webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |