Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
4.9.2. Check outgoing mail via PHP mail
- For outgoing mail, select a mailbox (if not selected).
- Using file manager or any FTP client in the site root directory, create a
test.phpfile with this code:<?php error_reporting(E_ALL); ini_set('display_errors', '1'); if (mail("recipient_mailbox", "Test mail", "Checking for mail sending", "Content-type:text/html;charset=utf-8")) { echo "ok"; } else { echo "error"; }⚠️ Instead of
recipient_mailbox, substitute your email. - Run the script via a browser by appending
test.phpto your site address (e.g.,example.com/test.php). - Check the recipient's mailbox for the message that the script was supposed to send.
If the script displays an error or the mail does not appear in the recipient's mailbox (including the spam folder), please contact us via online chat and provide a link to the script you used to test the mail.