Sending Mail

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi All,

I've been having trouble setting up my PC to send mail.


print "Thank you,  <b>$_POST[name]</b>, for your message!<br><br>\n\n";
print "Your e-mail address is <b>$_POST[email]</b><br><br>\n\n";
print "Your message was:<br><br>\n\n";
print "$_POST[message] <br><br>";

// Start building the mail string
$msg = "Name: $_POST[name]\n";
$msg .= "Email: $_POST[email]\n";
$msg .= "Message: $_POST[message]\n";

// Set up the mail

$recipient = "";
$subject = "Form Submission Results";
$mailheaders .= "Reply-To: $_POST[email]";

// Now we send the mail message
mail ($recipient, $subject, $msg, $mailheaders);
The error says:
Warning: mail(): SMTP server response: 451 See . in  .......\listing9.12.php on line
I think I may have found an answer here:

Which says,

Hi list

I solved the problem by adding \r before every \n in the
t3lib\class.t3lib_htmlmail.php file. I did this to lines: 1160, 1136, 684,
673, 595, 561, 537, 472, 467, 238, 239,

Cheers to all and hope this helps someone else using windows

- Jonathan Rhodes (gig745)
He is using

- Typo 3.6.1
- Win XP Home
- Apache/1.3.27 (Win32)
- PHP/4.3.3
- MySQL 3.23.49

I am using
- Dreamweaver
- Win XP Pro
- Apache 2.0.50 (Win32)
- PHP 4.3.7 (Win32)
- MySQL (Installer)

So where can I find this file?

Re: Sending Mail


Not sure why you needed to start a new thread.. but see Justin's

[ snip ]

Quoted text here. Click to load it has no A record.. link is dead (was alive the other day
however.. hmmm)

Quoted text here. Click to load it

Quoted text here. Click to load it

IIRC.. Typo3 is a CMS or blog application. You'll need to make the
changes to _your_ mail processing script.. just like Justin explains in
his reply to your other thread... had you actually read it.



digiServ Network
London, UK /

Re: Sending Mail

Hi Ian,

Thanks for a point in the right direction. Yes..I had read Justin's post,
but upon trying it it didn't work...

So I just took what he said a little further and it works great now!
(I'm brand new to php so it's a bit like finding your way around in a dark

What I did was this:

// Start building the mail string
$msg = "Name: $_POST[name]\r\n";
$msg .= "Email: $_POST[email]\r\n";
$msg .= "Message: $_POST[message]\r\n";

// Set up the mail

$recipient = "\r\n";
$subject = "Form Submission Results\r\n";
$mailheaders .= "Reply-To: $_POST[email]\r\n";

By adding the \r\n to all the above lines, not just to

$mailheaders .= "Reply-To: $_POST[email]\r\n";

it started to work?!

So what I would like to know now is this:
Is there some way I can print out or see what  the difference was with the
result between the script before and now?
It is sending an email...isn't there a way I can see what it is doing? I'd
like to see the entire message before it sends it....header and all.......

Thanks Again

Site Timeline