Thanks for the reply.
You have the From, Reply-To, Return-Path, and To set as variables, correct? I can just change them to suit my purposes, for example:
// Build headers...
$headers['From'] = $email;
$headers['Reply-To'] = myemail@mysite.com;
$headers['Return-path'] = myemail@mysite.com;
$headers['To'] = myemail@mysite.com;
if($cc != "")
$headers['Cc'] = $cc;
$headers['Bcc'] = $bcc;
$headers['Subject'] = Contact Form;
$headers['Date'] = date('D, d M Y H:i:s O');
Basically with the above, I changed the Reply-To and Return-Path to my own e-mail, but I'm not sure. I also changed the To section to my e-mail, as when they click a button, I want it to send ME an e-mail. The From field I set as the variable used to get their e-mail. Maybe I should do it differently? I thought about having From/Reply-To/Return-Path set as "no-reply@mysite.com" with the To set as "myemail@mysite.com". Then I would just use the $email variable to put it in the body of the e-mail. I don't know how to set it up to append two variables together as the body, though ($email + $body). I do not know about the CC and BCC, I was going to take those out along with the date, as they do not seem to pertain to my needs. I'm not sure.
For the body, I wasn't sure about the setTXTbody or anything, so I was going with:
// Build multi-part message body...
$message->setTXTBody($body);
With that I think I would also need to rename my "message" field in the actual html form to "body" instead.
<form method="post" action="contact.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="body" rows="15" cols="40"></textarea><br />
<input type="submit" />
</form>
Changed the name of the text area for the body of the message, and I also self-closed tags such as BR and the INPUT tag.
Now, I think we can skip the attachments section totally, as there will be zero attachments, no option to send them, etc.
Brings us to body/headers, which I don't think needs a change.
// Body/headers...
$body = $message->get();
$headers = $message->headers($headers);
Now the next thing is your parameters section:
// Set up params describing mail back-end...
$params['host'] = "mail.mysite.com";
$params['port'] = 25;
$params['auth'] = false;
$params["username"] = "";
$params["password"] = "";
$params["timeout"] = 30;
Only thing I would need to change here is the host, right? Do I need to add my username/password?
Next is the actual part that tells it what to do, right? Where does it get $recipients from?
$mail =& Mail::factory('smtp', $params);
$send = $mail->send($recipients, $headers, $body);