David
David

Reputation: 271

PHP- Send mail with SMTP authentication without mail()

I am working on a website which is hosted on a server that has the function "mail()" disabled for security reasons.

I would like to know if there is another way around to bypass this and send an email with SMTP authentication ?

I don't own the server and I can't install any add-ons or plugins. There isn't PEAR nor Swift nor PHPMailer on that server.

How should I do? Thank you for your help.

Upvotes: 2

Views: 2293

Answers (1)

dynamic
dynamic

Reputation: 48141

You don't need to "install" PHPMailer. Just upload the script in your server and include it in your script.

I believe if you could use mail() function you can upload files to the server.

If you cannot, then you can't do nothing.

Upvotes: 2

Related Questions