Hello all!
I have written a script that emails my clients. The program loads standard html and css. Here is how it works:
[php] session_start();
if ($_POST[‘Submit’] == ‘Send Warning’) {
if (strcmp(md5($_POST[‘user_code’]), $_SESSION[‘ckey’])) {
header(“Location: sendmail.php?msg=0”);
exit();
}
$to = $_POST[‘toemail’];
if ($_POST[‘Submit’] == ‘Send’) {
$subject = “New Email!”;
$message = "
And so on.
I want to be able to select multiple email “templates”. So my question is, how would I be able load externally instead of drawing straight from the $message = “…”
I want to have multiple email templates and be able to access them.
I will post any code if necessary.