Last 15 Snips show! Welcome to Snipped, a code gallery for creating, saving and sharing all kinds of code snippets.

Funktion um Emails zu senden

PHP · April 29, 2016 10:09 pm

0 0 504

Einfache Funktion um Emails zu senden

/*		Sende Email
*/

function sende_benachrichtigung($anrufername,$rufnummer,$user,$kommentar){
$empfaenger = "c.gerbig@webgreat.de";
$absendername = "Rückruf";
$absendermail = "rueckruf@dev.probenschleuder.de";
$betreff = "Neuer Rückruf für $user auf $rufnummer";
$text = "Hallo, Ihnen wurde ein neuer Rückruf zugeordnet.\r\n
Name: $anrufername \r\n
Rufnummer: $rufnummer \r\n
Kommentar: $kommentar \r\n
Angelegt von: $user \r\n";
mail($empfaenger, $betreff, $text, "From: $absendername <$absendermail>");
}

Discuss this Snip
    No Discussion Comments found.

    You must be Signed In to discuss this Snip
Chris

Chris

Joined on
April 28, 2016

  • 22 Snips
    Contributed
  • 19 Likes
    Given
  • 8 Comments Posted
Snip Tags
Get Social And Share

Manage and share all of your code snippets in one easy place.