Page 1 of 1

PHP form mailer script

PostPosted: Sun 08th Jun, 2008 8:08 pm
by stephenbrust
Please excuse my ignorance, I am trying to learn this on the fly. I have two questions:
1) How can I change the name and email address from to reflect my site and place the name and email address of the sender in the body of the email text.
2) Can I add a check Box ?

Thanks,
Stephen

Re: PHP form mailer script

PostPosted: Mon 09th Jun, 2008 3:27 pm
by Gavin
Hi,

The script is intended as a simple email form to add to websites so there are no advanced features, as this would slow it down (there are plenty of scripts out there that have more features). You can add the email and name of the sender to the body of the email by doing the following:

1) Look for the following line (around line 165) in BELLmailer.php:

$headers .= "X-Mailer: BELLonline.co.uk PHP mailer \r\n";

After that, add:

$mail_message = "Sender's Name: $senders_name \nSender's Email: $senders_email\n\n" . $mail_message;

2) You can add extra checkboxes/fields but it requires some basic PHP, and it would be too much to go through here.

Re: PHP form mailer script

PostPosted: Tue 10th Jun, 2008 3:13 am
by stephenbrust
Gavin,
Thank you so much ......
Just what I needed.

Stephen

Re: PHP form mailer script

PostPosted: Tue 10th Jun, 2008 5:18 pm
by stephenbrust
Gavin,
Can I change the font size on the submit page ?

Re: PHP form mailer script

PostPosted: Sun 15th Jun, 2008 7:40 pm
by Gavin
You should be able to do that using CSS, it just takes on the style of the page. Something like this should do it:


td {
font-size: 10px;
}

Re: PHP form mailer script

PostPosted: Fri 13th Feb, 2009 4:52 am
by eagle
hi all,
First I would like to thanks for the script. YET,I like this script a lot. my question is; could I add...just as ADDRESS AND PHONE TO THE SCRIPT. THANKS

Re: PHP form mailer script

PostPosted: Wed 04th Mar, 2009 9:00 pm
by digitsy
I have the same question about adding like eagle. Can someone give me answer. Thank you