$from,'To' => $to, 'Subject' => $subject); $text = ''; // text versions of email. $html = "Name: $name
Email: $email
Message: $message
"; // html versions of email. $crlf = "\n"; $mime = new Mail_mime($crlf); $mime->setTXTBody($text); $mime->setHTMLBody($html); //do not ever try to call these lines in reverse order $body = $mime->get(); $headers = $mime->headers($headers); $host = "mail.tastevillecaterers.com"; // your mail server i.e mail.mydomain.com $username = "forms@tastevillecaterers.com"; // your email address (same as webmail username) $password = "mypass123"; // your password (same as webmail password) $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username,'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("

" . $mail->getMessage() . "

"); } else { echo("

Message successfully sent!

"); // header("Location: http://www.tastevillecaterers.com/contact.php"); } } ?> Contacts Us ::

Our Location

  • Address:
    2-4 Adeyemo Alakija str, G.R.A Ikeja, Lagos.
  • Telephone:
    08139519366 | 08184220346 | 08177535183
  • Email:
    inquiries@tastevillecaterers.com | Gbolahaneyiowuawi@gmail.com
Name
Email Address

 

Comments