- Help Center
- Getting Started
PHP Mail
The PHP mail function is used to send email. To send a text message, create a php script:
<?php
$message = "Line 1\nLine 2\nLine 3";
$message = wordwrap($message, 70);
var_dump(mail('mail@adressdomain.com', 'My Subject', $message));
?>
The $message variable contains the message text,
mail@adressdomain.com - recipient's address.
To specify the sender's mailbox, in addition to the From header, add the -f argument to the mail function:
mail("recipient", "subject", "text", "headers", "-f sender address")
You can find more detailed information on working with this function in the PHP documentation.
If you still have questions, please create a ticket to technical support.