hm

hm / Тест sendmail (php)

Last active 2 weeks ago

Like 0
gistfile1.txt Raw
1<?php
2$to = 'user@site.ru';
3$subject = 'test subject';
4$message = 'hello';
5$headers = 'From: no-reply@site.ru' . "\r\n" .
6 'Reply-To: no-reply@site.ru' . "\r\n" .
7 'X-Mailer: PHP/' . phpversion();
8
9
10$r = mail($to, $subject, $message, $headers);
11var_dump($r);
12
13
14?>