[thelist] form that sends to emailing list stores in MySQL tablenot working
k.voronin at e3internet.com
k.voronin at e3internet.com
Mon Nov 14 04:08:31 CST 2005
Hi Bruce,
First of all, to my mind,
I've found some errors in php:
Check this line please,
probably you missed quotes near (value="<?=$message ?>)
>>> <td><textarea name="message" id="message" value="<?=$message ?>
>>> cols="" rows=""></textarea>
Also, to my mind,
It is better to use this code:
$subject = $_POST['subject'];
$message = $_POST['message'];
instead of:
>>> $subject = $_REQUEST['subject'];
>>> $message = $_REQUEST['message'];
Multiple extra headers should be separated with a CRLF (\r\n).
Try change "\n" with "\r\n" in the lines below:
>>> $sender = "Bruce Gilbert <webguync at gmail.com>\n"; $reply_to =
>>> "<webguync at gmail.com>\n"; $return_path = "webguync at gmail.com\n";
>>> $x_sender = "<webguync at gmail.com>\n";
Change
>>> http://http:www/inspired-evolution.com
with http://www.inspired-evolution.com
in the paragraph below:
>>> $message .= "\n\n This is a double opt-in mailing list. All
>>> recipients have confirmed their subscription. If you no longer wish
>>> to receive these emails, please go to
>>> http://http:www/inspired-evolution.com \n";
Try change in headers "\n" with "\r\n":
>>> $headers .= "X-Mailer: PHP4\n";
>>> $headers .= "X-Priority: 3\n";
>>> $headers .= "Mime-Version:1.0\n Content-Type: text/plain;
>>> charset=\"iso-8859-1\nContent-Transfer-Encoding: 8bit\n";
You'll get some kind of this:
$headers .= "X-Mailer: PHP4" . "\r\n";
$headers .= "X-Priority: 3" . "\r\n";
$headers .= "Mime-Version: 1.0" ."\r\n"; $headers .= "Content-Type:
text/plain; charset=iso-8859-1". "\r\n"; $headers .=
"Content-Transfer-Encoding: 8bit". "\r\n";
Hope,
this helps.
Best regards,
web-programmer,
Kirill Voronin,
e3internet Ltd,
www.e3internet.com.
More information about the thelist
mailing list