Jump to content

Archived

This topic is now archived and is closed to further replies.

amalosoul

A simple mail() related question

Recommended Posts

I know that \n and \r\n are used in mail(), but I don't remember which one of them is used for Windows and which is for Linux...
Thank you in anticipation!

Share this post


Link to post
Share on other sites
Those are newline characters and are used whenever you want a newline, except when output to the browser.

Linux/Unix: \n
Windows: \r\n
Mac: \r

Ken

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.