Re: [PHP] mail function-new line-security

2005-09-29 Thread Torgny Bjers
Peppy wrote: > AJ, > > So what your reply means is that I should not have a new line character in > any variable on my page??? Of course you can have newlines in your email message, just make sure that any user input is received through POST, and that you run a regular expression to validate tha

Re: [PHP] mail function-new line-security

2005-09-28 Thread Peppy
AJ, So what your reply means is that I should not have a new line character in any variable on my page??? Then is there any way to format the email so it is readable? Thanks.

[PHP] mail function-new line-security

2005-09-27 Thread Peppy
I have been working on making my contact forms more secure. In my research, the occurence of the new line character \n at the end of the $headers variable in the mail function seems to be a security risk and opens one up to injection of spam email. This part I understand. I have been unable