/    Sign up×
Community /Pin to ProfileBookmark

Insert message body through HTML form

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.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@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.
Copy linkTweet thisAlerts:
@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. ?
Copy linkTweet thisAlerts:
@pyroDec 06.2003 — 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
Copy linkTweet thisAlerts:
@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]
×

Success!

Help @Extreme spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...