# PHPMailer Not working on Infinityfree but works offline

**URL:** <https://forum.infinityfree.com/t/phpmailer-not-working-on-infinityfree-but-works-offline/25976>\
**Category:** Hosting Support\
**Created:** [February 12, 2020, 12:03pm UTC](https://forum.infinityfree.com/t/phpmailer-not-working-on-infinityfree-but-works-offline/25976 "2020-02-12T12:03:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [February 13, 2020, 12:27pm UTC](https://forum.infinityfree.com/t/phpmailer-not-working-on-infinityfree-but-works-offline/25976/4 "2020-02-13T12:27:40Z")

</div>

> [@anon96610738](#):
>
> when i received the mail, in the from section it show my “[validmail@gmail.com](mailto:validmail@gmail.com)” rather than “[info@thecassava.co](mailto:info@thecassava.co)”

This is normal. Gmail does not allow you to send email with a sender address which is not on the account. Which effectively means you will always send with an @gmail.com address. There is no way to “fix” this, other than using a different email provider which does allow you to use your own sender address.

---

_[View the full topic](https://forum.infinityfree.com/t/phpmailer-not-working-on-infinityfree-but-works-offline/25976)._
