Page 2 of 2
Posted: Fri Jul 27, 2007 2:29 pm
by superdezign
jramaro wrote:They say thats the best wya to learn , kinda sit and pick out the info thats flyin back and forth.
I think the best way to learn is to be a part of the debates rather than just spectating. You can't be proven wrong (or right) until you've put your opinion into the mix. DevNet is about teaching those who don't know, and sharpening the minds of those who do.
Posted: Fri Jul 27, 2007 4:06 pm
by Chris Corbyn
For those who've joined this thread with an attitude problem can we just remember that we're talking to real people here please?
Ok, naughty bits over and done with, using SMTP isn't the fix directly

That's just a protocol. It's the headers which matter and the headers are set by the user in the mail() function. The problem with mail() is that it's cocky and will try to screw around with your headers. mail() on linux systems calls sendmail in a mode which makes it difficult to identify who you are, resulting in some odd headers dependent upon the server configuration.
The fix is to either use Swift Mailer as has been suggested, or to fiddle with the command line flags for sendmail:
I forget the ordering of the first parameters, but the last one (5th) is for additional flags.
Code: Select all
mail(...... , "-oi -fyour-real@address.com");