Forum Moderators: coopster

Message Too Old, No Replies

mail() not working on local Server

         

briesm

6:07 pm on Jun 30, 2005 (gmt 0)

10+ Year Member



Hey, I've got a form on a local server that has a working internet and network connection and it uses the mail function and it doesn't work. It works perfectly when I execute it online but it won't work locally. Essentially, I'm trying to mail html and here is my code:

$to = 'email1@myemail.com ' . ', email2@myemail.com';
$subject = 'test';
$message = 'FTW gg';

$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

mail($to, $subject, $message, $headers);
session_destroy();
header("Location: Server/Brian/quoteManager.php");
exit;

I only do this because I'm sending HTML in the email to print out. I could probably avoid this hassle if anyone could suggest a way to create a printerfriendly html file. It can't include all the BS Web Browsers have like date time, web location, etc. PDF would be perfect I suppose if there's a way to create a pdf from html.

j4mes

6:52 pm on Jun 30, 2005 (gmt 0)

10+ Year Member



It can't include all the BS Web Browsers have like date time, web location, etc.

All of these can be turned off in printing options in both FF and IE.

briesm

7:31 pm on Jun 30, 2005 (gmt 0)

10+ Year Member



Also, interestingly enough, header isn't working either...
header("Location: [Server...]

I'm not masking my address as it's on a network with that exact location