# Where exactly should I put PHPMailer on my webpage?

**URL:** <https://www.phphelp.com/t/where-exactly-should-i-put-phpmailer-on-my-webpage/29111>\
**Category:** PHP Installation and Configuration\
**Created:** [May 27, 2019, 12:17am UTC](https://www.phphelp.com/t/where-exactly-should-i-put-phpmailer-on-my-webpage/29111 "2019-05-27T00:17:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedroski55](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/a4c791/32.png) [@Pedroski55](https://www.phphelp.com/u/Pedroski55)\
**Post date:** [May 27, 2019, 12:17am UTC](https://www.phphelp.com/t/where-exactly-should-i-put-phpmailer-on-my-webpage/29111/1 "2019-05-27T00:17:46Z")

</div>

I have a folder on my laptop in Downloads called PHPMailer-master.

I don’t understand how to use Composer on my webpage host.

I’m hoping I can manually upload the files.

Where should I put the contents of PHPMailer-master on my webpage? Is this critical?

Maybe in /home/myusername/etc/ ??

---

<div class="post-metadata">

**Author:** ![JimL](https://www.phphelp.com/user_avatar/www.phphelp.com/jiml/32/1842_2.png) [@JimL](https://www.phphelp.com/u/JimL)\
**Post date:** [May 27, 2019, 3:18am UTC](https://www.phphelp.com/t/where-exactly-should-i-put-phpmailer-on-my-webpage/29111/2 "2019-05-27T03:18:51Z")

</div>

you dont need to use composer on the host. Just use it locally and upload the entire project (including the vendor dir) when you update the host

---

<div class="post-metadata">

**Author:** ![Pedroski55](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/a4c791/32.png) [@Pedroski55](https://www.phphelp.com/u/Pedroski55)\
**Post date:** [May 27, 2019, 6:17am UTC](https://www.phphelp.com/t/where-exactly-should-i-put-phpmailer-on-my-webpage/29111/3 "2019-05-27T06:17:02Z")

</div>

Thanks. Could you please tell me where I should put all this stuff?

I tried to use Pear, but the installer go-pear.php, which runs from: [www.mywebpage.com/go-pear.php](http://www.mywebpage.com/go-pear.php) starts, but only installs 1 file, makes 4 directories and then stops. No amount of waiting or reloading gets it any further.

Maybe because I am just trying this out on a shared goDaddy host!

---

<div class="post-metadata">

**Author:** ![chorn](https://www.phphelp.com/letter_avatar_proxy/v4/letter/c/b5ac83/32.png) [@chorn](https://www.phphelp.com/u/chorn)\
**Post date:** [May 27, 2019, 6:43am UTC](https://www.phphelp.com/t/where-exactly-should-i-put-phpmailer-on-my-webpage/29111/4 "2019-05-27T06:43:59Z")

</div>

composer already put it in the vendor dir, just let it there, no need for pear then. Just test it on your machine and upload the files.

---

<div class="post-metadata">

**Author:** ![Pedroski55](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/a4c791/32.png) [@Pedroski55](https://www.phphelp.com/u/Pedroski55)\
**Post date:** [May 27, 2019, 12:16pm UTC](https://www.phphelp.com/t/where-exactly-should-i-put-phpmailer-on-my-webpage/29111/5 "2019-05-27T12:16:42Z")

</div>

Where on the host should I put it? The Pear documentation mentioned “don’t put it in public\_html” because that is, well, publicly accessible.

Maybe in /home/mywebpage/etc/ ??
