Sometimes a webmaster simply needs to provide the ability for a website visitor to send a file via email.
If you think about it, providing a comment area or “guestbook” is simple these days.
Maybe you’re accepting job applications and resumes.
Maybe you are a publisher and want to provide a fast way for authors to submit their short stories.
This is why I turned to the free solution calledPHPMailer-FE.
Now, the developers offer an amazing amount of documentation on their site and in the developer forums.
In this article I’ll set up the sampleform.htmland get it working with just a very few minor configurations.
Otherwise, you’ve got the option to upload the files first.
Go into the _lib folder and edit theform.config.phpfile.
This is where you might really fine-tune how your form behaves.
The only required edit is to configure where the post is going to go.
This is what it looks like.
There are two ways you’re able to take this.
This is most likely the approach I will take.
A second or two after submitting the form, this is what arrived in my Inbox.
Best of all, take a look at what’s attached to the email.
Currently, upon successful submission, it refers the visitor to this funny-looking web page by default.
This page is defined in theform.config.phpfile I referenced above.
Why reinvent the wheel when someone has already invented such a well-made and powerful car?
All you have to do is get in and drive!