# Sending Emails From Your Website

**URL:** <https://forum.profreehost.com/t/sending-emails-from-your-website/2100>\
**Category:** Email\
**Created:** [February 28, 2019, 7:00pm UTC](https://forum.profreehost.com/t/sending-emails-from-your-website/2100 "2019-02-28T19:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Admin](https://forum.profreehost.com/user_avatar/forum.profreehost.com/admin/32/103_2.png) [@Admin](https://forum.profreehost.com/u/Admin)\
**Post date:** [February 28, 2019, 7:00pm UTC](https://forum.profreehost.com/t/sending-emails-from-your-website/2100/1 "2019-02-28T19:00:00Z")

</div>

The most frequent method of sending emails is through the PHP mail() function. It’s the default email setting for almost all scripts. There is no configuration required to utilize the mail() function. You can send emails by simply pressing the function. Here’s an example of how it works:

[mail() example](https://www.w3schools.com/php/func_mail_mail.asp)

## **What to Consider Before Using mail() Function!**

Although it is the simplest method of sending emails, it is not the most efficient. The majority of the scripts in Profreehost control panel’s Script Installer are taken care of, but there are a few things to keep in mind to ensure the best possible email delivery.

- **From Header:** An email must have a valid **From**  **Header**. From, To, Date headers are mandatory. All email servers reject emails which do not contain any of these headers.

- **Default Domain:** Always use default domain under your sender address; the domain that you have registered e.g. If you registered “[example.unaux.com](http://example.unaux.com)”, your sender address should be something like “[mail@example.unaux.com](mailto:mail@example.unaux.com)”. This ensures best possible outcome for email delivery.

- **Large Volumes:** Sending large volumes of emails is prohibited on Profreehost’s free hosting. It means that you can send only individual emails from both PHP mail() function and Webmail.

- **Email Types:** Only certain types of emails are allowed to be sent from our email servers. Currently, you can send only **Registration** , **Client Confirmation** and **Activation emails**.

- **Best Effort Basis:** All emails are sent on best effort basis. Which means there is no 100% gurantee that all emails will be delivered.

## **Why Do We Impose Email Restrictions?**

We offer shared hosting as well as free subdomains. It’s a harsh reality that some people are attempting to take abusive advantage of our service. If we enable more than limited functionality, we risk losing our reputation and having our domains blocked by search engines and social media platforms.

Overall, we strive to keep our services clear and accessible to the general public.
