Page 1 of 1

PhpMailer help

Posted: Mon Oct 17, 2005 1:10 pm
by mhouldridge
Hi,

I am using phpmailer to process my contact form.

I have multiple text fields which I need to insert in to the email's body content.

.... here is the mailform.php

Code: Select all

<?php 
// Grab our config settings 
require_once ("e:/grd/config.php"); 

// Grab the FreakMailer class 
require_once ("e:/grd/lib/MailClass.inc"); 

// instantiate the class 
$mailer = new FreakMailer(); 

// Set the subject 
$mailer->Subject = 'GRD Customer Enquiry'; 

// Body 
$mailer->Body = 

$_POST['title']; 

// Add an address to send to. 
$mailer->AddAddress('something@email.com', 'Enquiries'); 

if(!$mailer->Send()) 
{ 
  echo 'There was a problem sending this mail!'; 
} 
else 
{ 
  echo 'Mail sent!'; 
} 
$mailer->ClearAddresses(); 
$mailer->ClearAttachments(); 
?>
I need to add further elements where the $_POST['title']; part is... I have tried already however the first post is the only one use.d.

Please hep.

Posted: Mon Oct 17, 2005 3:11 pm
by chrys
Could you be more specific?