ryxeo-glpi-git / htdocs / epack / ryxeo.php @ 1c14bcc4
Historique | Voir | Annoter | Télécharger (437 octets)
1 | 1c14bcc4 | Eric Seigne | <?php
|
---|---|---|---|
2 | |||
3 | function ryxeo_mail($replyto,$content,$to,$subject) { |
||
4 | |||
5 | //Le mail d'info pour ryxéo
|
||
6 | $headers = 'From: anet@ryxeo.com' . "\r\n" . |
||
7 | 'Reply-To: ' . addslashes($replyto) . "\r\n"; |
||
8 | if(! strpos($to,"@ryxeo.com")) |
||
9 | $headers .= 'Bcc: anet@ryxeo.com' . "\r\n"; |
||
10 | $headers .= 'Content-type: text/plain; charset=utf-8\r\n' . |
||
11 | 'X-Mailer: PHP/' . phpversion(); |
||
12 | |||
13 | mail($to,"[anet] " . $subject,$content,$headers); |
||
14 | |||
15 | } |
||
16 | |||
17 | ?> |