Skip to content

Instantly share code, notes, and snippets.

View Cdetviler's full-sized avatar

Charlie Detviler Cdetviler

View GitHub Profile
@Cdetviler
Cdetviler / emailscript.php
Created April 4, 2017 12:41
A quick php script to send an html email
<?php
$filepath = 'directory/test.html';
$html = file_get_contents ($filepath, FILE_USE_INCLUDE_PATH);
$subject = 'test-mail';
$recipient = '';
// To send HTML mail, the Content-type header must be set
$headers[] = 'MIME-Version: 1.0';