If you want to email the form results, you can’t beat eform:
http://modxcms.com/forums/index.php/topic,2122.msg14915.html#msg14915
I don’t use the old contact form snippet any more.
http://www.phpusers.org/contact.html
Here’s the snippet call:
[!eForm?
&formid=`ContactForm`
&to=`[email protected]`
&tpl=`ContactForm`
&report=`ContactReport`
&subject=`PHP Users Group Contact`
&format=`name:Name:string:1,email:Email:email:1,message:Message:html:1`!]
The most important thing is that in your form template (the ContactForm template chunk) you must have a hidden input field named formid, and the value is the same as specified in the &formid option (it can be whatever you want):
<input name="formid" type="hidden" value="ContactForm"/>
For emailing the form data, you need two chunks, &tpl for the form itself, and &report, which formats the data nicely for the email message. You use placeholders for the various data fields in the report template chunk.
The snippet uses the phpMailer class library for sending mail, which makes for very flexible use. As it is written, it only uses the php mail() function. I’m considering adding a few more snippet option arguments to allow for SMTP mailing without having to hack the snippet.