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 i开发者_开发知识库nstall 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.
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.
精彩评论