# Mailer

**URL:** <https://forum.infinityfree.com/t/mailer/43025>\
**Category:** Hosting Support\
**Created:** [March 19, 2021, 4:44pm UTC](https://forum.infinityfree.com/t/mailer/43025 "2021-03-19T16:44:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon29254248](https://forum.infinityfree.com/letter_avatar/anon29254248/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon29254248](https://forum.infinityfree.com/u/anon29254248)\
**Post date:** [March 19, 2021, 4:44pm UTC](https://forum.infinityfree.com/t/mailer/43025/1 "2021-03-19T16:44:49Z")

</div>

[http://lanhouse-santotirso.epizy.com](http://lanhouse-santotirso.epizy.com)

### Error Message

Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.

### Other Information

So im using GMAIL to host and PHPMailer to send the email, and in localhost all this works just fine no error, nothing but when i try online it says some problem with authenticate, and i receice a email in my email saying that them block the attempt to login, is there some way to turn that off, and let anything enter in my email??

Ps. I already activate in email, to let less safe access in the account.

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [March 19, 2021, 4:48pm UTC](https://forum.infinityfree.com/t/mailer/43025/2 "2021-03-19T16:48:57Z")

</div>

> [@PHPMailer not working in infinityfree but works on localhost](https://forum.infinityfree.com/t/phpmailer-not-working-in-infinityfree-but-works-on-localhost/29934/9):
>
> Google’s “Less Secure Apps” system has always been annoying, and IIRC they will actually remove it completely this year. Instead, you should enable two factor authentication and use an App Specific Password to login instead. The process is detailed in the setup instructions of our example contact form:

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [April 3, 2021, 4:49pm UTC](https://forum.infinityfree.com/t/mailer/43025/3 "2021-04-03T16:49:05Z")

</div>

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