Same script run via command line while logged in as root - the email comes in with all headers intact, appearing just as intended using the From: that was programmed and all other headers
Code: Select all
From root@host.server.com Mon May 9 10:20:57 2011
Received: (from root@localhost)
by host.server.com (8.14.3/8.12.10) id p49EKvjs001361;
Mon, 9 May 2011 10:20:57 -0400
Date: Mon, 9 May 2011 10:20:57 -0400
Same script run via from website as www - the email comes in apperaing as if it's sent from somemice@host.server.com (instead of the programmed From:) and all other headers missing. They ARE in the raw message, but the addition of the > here causes most email readers to place that line and all of the rest of the headers in the body
Code: Select all
From somemice@host.server.com Mon May 9 10:21:00 2011
>From somemice Mon May 9 10:21:00 2011
Received: (from somemice@localhost)
by host.server.com (8.14.3/8.12.10) id p49EL0RM001396;
Mon, 9 May 2011 10:21:00 -0400
Date: Mon, 9 May 2011 10:21:00 -0400
i.e. there's a problem with this unwanted second line that doesn't happen if root is doing it
>From somemice Mon May 9 10:21:00 2011
Anyone ?