per motivi di sicurezza sui nostri server di hosting shared Linux la funzione php mail() è inibita o fortemente limitata.

In particolare:

  • è del tutto inibita sui server hosting ex Rubalo/NewMediaLabs

  • è abilitata sui server Unihost (piani hosting Basic, Starter e Pro) con le seguenti limitazioni:
    limite orario di invii: 10
    limite giornaliero di invii: 40
    limite orario di messaggi in errore o in coda: 5
    E' attiva solo per indirizzi destinatari appoggiati a domini non presenti sul medesimo server

Questo perché la funzione mail() è intrinsecamente insicura, e si presta facilmente ad abusi (invio di spam) da parte di infezioni di malware anche banali. Un uso indiscriminato e libero della funzione mail() su sistemi condivisi da centinaia o anche migliaia di utenti comporta che siano frequenti i casi di abuso, che comportano poi penalizzazioni per tutti gli utenti serviti.

Sui server di nuova generazione Unihost la funzione mail() è attiva in maniera fortemente limitata, per permetterne l'uso per tutti i messaggi "di sistema" che molto spesso non è semplice o possibile inviare tramite SMTP autenticato.

In tutti gli altri casi, per l'invio di email è indispensabile ricorrere ad un servizio SMTP autenticato esterno.

Per maggiori dettagli:
Come inviare email dal proprio sito
Come inviare email da WordPress usando un server SMTP autenticato



Found this article interesting?
Subscribe to DomainRegister´s newsletter!

You can unsubscribe at any time by simply clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp s privacy practices here.

  • php, security
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings.

If you get following error message:Fatal error: Uncaught exception 'Exception' with message...

 How to set php.ini values using .htaccess

You can override global values of system variables re-setting them in .htaccessFor each system...

 PHP Parse error: syntax error, unexpected $end

This is a very common error, typically caused by a missing } used in PHP to denote content...

 How to send mails through your website

On shared web hosting server for security reasons it's not possible unauthenticated email sending...

 allow_url_fopen

If enabled, allow_url_fopen allows PHP's file functions (such as file_get_contents() and the...