-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d1052e
commit 1e92e70
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,11 +85,16 @@ public function sendMail() | |
echo( 'Site ID ' . $this->site_id . PHP_EOL ); | ||
echo( 'Environment Name ' .$this->site_env . PHP_EOL ); | ||
echo( 'Site Name ' .$this->site_name . PHP_EOL ); | ||
$headers = [ | ||
'From' => 'WordPress <wordpress@' . $this->site_env . '-miriam-workflows-2.pantheonsite.io>', | ||
'X-Mailer' => 'PHP/' . phpversion(), | ||
'Content-Type' => 'text/html; charset=UTF-8' | ||
]; | ||
$email = '[email protected]'; | ||
$subject = "Code sync on $this->site_env Completed"; | ||
$message = "Code sync on $this->site_env has been created for the site $this->site_name with the SiteID $this->site_id"; | ||
|
||
$sendMail = mail($email, $subject, $message); | ||
$sendMail = mail($email, $subject, $message, $headers); | ||
|
||
echo( 'Message: ' . $message . PHP_EOL ); | ||
|
||
|