Init commit
This commit is contained in:
58
mail.php
Normal file
58
mail.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
class email {
|
||||
|
||||
// Reciever - String var
|
||||
|
||||
// Format: "email@adresa.cz"
|
||||
|
||||
public $reciever = null;
|
||||
|
||||
// Sender - string var
|
||||
|
||||
// Format: "Zobrazene Jmeno <email@adresa.cz>"
|
||||
|
||||
public $sender = null;
|
||||
|
||||
// ReplyTo - string var
|
||||
|
||||
// Format: "email@adresa.cz"
|
||||
|
||||
public $replyTo = null;
|
||||
|
||||
// CarbonCopies - string array
|
||||
|
||||
// Format: array("email@adresa.cz", "email@adresa.cz", ...)
|
||||
|
||||
public $cc = null;
|
||||
|
||||
// Subject - string var
|
||||
|
||||
// Format: "Some String"
|
||||
|
||||
public $subject = null;
|
||||
|
||||
// MailContent - string var
|
||||
|
||||
// Format: "Some String"
|
||||
|
||||
public $content = null;
|
||||
|
||||
// headers - string var
|
||||
|
||||
// Is built by setHeader() function
|
||||
|
||||
private $headers = "";
|
||||
|
||||
|
||||
|
||||
public function setHeaders() {
|
||||
|
||||
|
||||
|
||||
if(isset($this->sender) ) {
|
||||
|
||||
$this->headers .= "From: " . $this->sender . PHP_EOL;
|
||||
|
||||
Reference in New Issue
Block a user