I thought I'd be smart and write a form page which would automatically construct an email to send to the specified client.
<?php ini_set('display_errors','On'); error_reporting(E_ALL); $emailto = $_POST['emailto']; $emailfrom = $_POST['emailfrom']; $subject = $_POST['subject']; $name = $_POST['name']; $date = $_POST['date']; $time = $_POST['time']; $location = $_POST['location']; $maplink = $_POST['maplink']; $screenername = $_POST['screenername']; $room = $_POST['room']; $yourname = $_POST['yourname']; $headers = 'From: '.$emailfrom. "\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $body = $_POST['emailbody']; mail($emailto, $subject, $body, $headers); echo "<h3 style='font-size: 20px;'>Success.</h3>"; echo "<p>The email has been successfully sent.</p>"; ?>
the $emailfrom variable is typically set to one of three company domains, for example:
Company Name <email@example.com>
Thing is they receive all the other emails just fine when I send it from that email address via outlook. The webserver its being sent from is a rackspace one.