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

20 lines
775 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.
'\Telefon: '.$telefon.
'\Handy: '.$handy.
'\EMail: '.$email.
'\Anfrage: '.$anfrage;
$betreff = 'FeWo-Anfrage: '.$name.' '.$email;
$atmail = 'admin@webcraft-media.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);
}
}