This repository has been archived on 2025-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
host_rhein/rhein/api/api_rhein.php
2014-05-28 01:08:28 +02:00

21 lines
776 B
PHP

<?php
class api_rhein extends \SYSTEM\API\api_system{
public static function call_anfrage($name, $telefon, $email, $anfrage, $handy = ''){
// Die Nachricht
$nachricht = 'Name: '.$name.
"\r\nTelefon: ".$telefon.
"\r\nHandy: ".$handy.
"\r\nEMail: ".$email.
"\r\nAnfrage: ".$anfrage;
$betreff = 'FeWo-Anfrage: '.$name.' '.$email;
$atmail = 'info@fewo-rhein-zwbg.de';
// Falls eine Zeile der Nachricht mehr als 70 Zeichen enthälten könnte,
// sollte wordwrap() benutzt werden
$nachricht = wordwrap($nachricht, 70);
// Send
mail($atmail, $betreff , $nachricht);
return JsonResult::ok();
}
}