What's the complete / correct method of sending email via PHP?
<p>I've tried the <code>mail</code> function and it works fine. Now what all I need to add to it? When the content of mail is formed by user input.</p>

<p><a href="http://php.net/manual/en/function.mail.php" rel="nofollow">Doc</a> says that lines (separated by <code>\n</code>) shouldn't be larger than 70 characters. So should I do wordwrap before using the mail function? Should I take care of full stops at the start of the lines? What else?</p>

<p>The doc also recommends PEAR's mail package for complex mails and sending large volumes of mail together. I've never used PEAR, how it's? What are the alternatives and how to choose among them?</p>
