Is php mail() allowed on free hosting

Can I use PHP mail(), or is that paid only?
That’s all I need.

No, that’s not supported here.

To send mail, you will need to use SMTP (The PHPMailer library is a good start).


Alright. How would I install a PHP library? I’m still sorta new to that stuff.

Get a VPS?

1 Like

Or, install the library via composer on your machine and then upload it to your account.


What are you planning to send emails for? There may be a better way to do it.

1 Like

You can use Yandex 360 Free. You can get unlimited free emails with SMTP support. But you should upgrade to premium hosting because they offer full php mail().

The best way to install a PHP library is with Composer. That way, you can easily keep track of all the libraries your project is using and keep them up to date.

If you don’t want to learn or use Composer, you can also download them from this site: ▷ Download the PHP library phpmailer/phpmailer +++ One click!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.