Here is the bottom line:
From the discussion in comments, it seems that you are not using server-side scripting at all. No, without server-side scripting, you cannot do anything at all. JavaScript does not send mail, it can only send HTTP request to the server side where you serve up such request by sending mail or anything else. If you use HTTP form, you don't even need JavaScript.
"Using mailto" simply means
URI scheme, the one which could be used in a regular
anchor. If you use such anchor on your page, it will simply load the default mail application and pass some command-line parameters to it. It also cannot help you. Moreover, you cannot even assume that a user has any mail application at all. This technique is nothing but providing contact information and saying "please send e-mail by yourself", only with some minimal convenience.
So, you always need some server-side scripting to compose and send mail. In principle, you can use some external service provided for this purpose. What I were always services operating by paid subscription. It's hard to imagine that it would make any sense for the developers having their own Web sites.
From your reply about having cPanel and 1 SQL database, I can conclude that you probably use more or less standard Web hosting, maybe LAMP. All standard hosting plans, as a bare minimum, support PHP. This is not the best language and server-side technology, but it provides some minimal tool for sending mails with attachments.
Here is how you deal with forms with PHP:
PHP: Dealing with Forms — Manual[
^].
Two major options for sending mail:
http://php.net/manual/en/function.mail.phphttp://php.net/manual/en/function.mail.php[
^],
Manual :: sends a mail[
^] (requires PEAR:
Manual :: About PEAR and PEAR2[
^]).
The major problem with handling forms in general and with sending mail is security. You have to sanitize everything on the server side when you handle an HTTP Web request. For one very basic exploit, please see my past answer:
unable to send mail , it showing the error in below code .[
^].
You need to add mail
parts representing PDF "attachment". This is just a part of your mail text with separate
content-type and
content-disposition headers. Please see:
Media Types[
^] (note: "application/pdf"),
MIME — Wikipedia, the free encyclopedia[
^].
You have to learn all this stuff to be able to compose mail messages and send them. You also need a properly set up SMPT server (or something else), which is usually provided with your mail hosting.
I don't mean to recommend PHP here, I write about it because I cannot assume too much about your hosting environment. It's possible that you can use something better. You may need to call your hosting customer service for an advice.
—SA