Myreader.co.uk  
uk news, chat and community
   home   |   control panel login   |   archive   |  
 
net
net
news.announce
news.config
news.management
news.moderation
providers
providers.aaisp
web.authoring
  
 
date: Wed, 6 Jun 2007 13:43:15 +0100,    group: uk.net.web.authoring        back       
Looking for a simple PHP script   
I've been using the very straightforward mailit.php script to hand;e form 
mail submissions, but for reasons which I don't understands, Microsoft 
Exchange refuses to process the incoming mails from the web site.  We think 
it's because the submission email doesn't have a sender's email address 
(it's just blank), because when I enter multiple recipients, everyone else 
gets it.

So, I'm looking for a simple-to-configure, free php script to handle form 
submissions.  I'm well aware that a Google search will generate plenty of 
options, but I'd be grateful for this group's recommendations.

Ta muchly.
date: Wed, 6 Jun 2007 13:43:15 +0100   author:   TrentSC lid

Re: Looking for a simple PHP script   
In message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, 
TrentSC <TrentSC@invalid.invalid> writes
>I've been using the very straightforward mailit.php script to hand;e form
>mail submissions, but for reasons which I don't understands, Microsoft
>Exchange refuses to process the incoming mails from the web site.  We think
>it's because the submission email doesn't have a sender's email address
>(it's just blank), because when I enter multiple recipients, everyone else
>gets it.
>
>So, I'm looking for a simple-to-configure, free php script to handle form
>submissions.  I'm well aware that a Google search will generate plenty of
>options, but I'd be grateful for this group's recommendations.
>
>Ta muchly.

I'm sure your existing script could easily be modified to give a from 
address in the email.

Open it up in an editor and find the line that looks like

$something = mail($email, $subject, $message, $header)

[the variables (things starting with $) will probably have different 
names]

Select that line and all previous lines which include any of the 
variables listed in the brackets after mail and post those lines here. 
That will enable sensible suggestions for changes to achieve what you 
want...
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 16:06:04 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
>>I've been using the very straightforward mailit.php script to hand;e form
>>mail submissions, but for reasons which I don't understands, Microsoft
>>Exchange refuses to process the incoming mails from the web site.  We 
>>think
>>it's because the submission email doesn't have a sender's email address
>>(it's just blank), because when I enter multiple recipients, everyone else
>>gets it.
>>
>>So, I'm looking for a simple-to-configure, free php script to handle form
>>submissions.  I'm well aware that a Google search will generate plenty of
>>options, but I'd be grateful for this group's recommendations.
>>
>>Ta muchly.
>
> I'm sure your existing script could easily be modified to give a from 
> address in the email.
>
> Open it up in an editor and find the line that looks like
>
> $something = mail($email, $subject, $message, $header)
>
> [the variables (things starting with $) will probably have different 
> names]
>
> Select that line and all previous lines which include any of the variables 
> listed in the brackets after mail and post those lines here. That will 
> enable sensible suggestions for changes to achieve what you want...

I can't seem to find that specific line of code, so I've posted the php file 
here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file 
for security.

If anyone can suggest a workaround, I'd be hugely grateful.
date: Wed, 6 Jun 2007 19:56:08 +0100   author:   TrentSC lid

Re: Looking for a simple PHP script   
In message <46670349$0$8722$ed2619ec@ptn-nntp-reader02.plus.net>,
TrentSC <TrentSC@invalid.invalid> writes
>I can't seem to find that specific line of code, so I've posted the php file
>here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file
>for security.
>
>If anyone can suggest a workaround, I'd be hugely grateful.

Line 606 is:

        $headers = "From: ".$email;

That is setting the from address for the email to $email which I assume
is the email address the visitor enters in the contact form. If they do
not enter an email address it will be blank perhaps leading to your
problem.

To get round this do not set the from address to be that of the visitor.
Instead set it to a fixed address of your choice e.g. trent@wibble.com

To do this change the above line to

        $headers = "From: trent@wibble.com";

This will make all form submissions come from trent@wibble.com but it
also means that you cannot easily use your email program to reply to the
sender if they have supplied an email address. You can however set a
reply-to header which will then allow you to reply directly.

To do so put this after the above line altered earlier.

        if (strlen($email))
        {
                $headers .= "Reply-To: $email\n";
        }

That will set the reply-to header so the recipient should just be able
to click the reply button in their email client to reply to the sender.

~~~~~~~~~
However I have just looked at your contact form and the email address is
called email2

<input name="email2" type="text" size="50">

Therefore $email is not getting set hence the always empty from header.
To fix this either change the name in the form to email or change the
following lines (485 & 486) in your php script

if (($email) || ($EMAIL)) {
$email = trim($email);

to

if (($email2) || ($EMAIL)) {
$email = trim($email2);

That should do it.
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:25:46 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
In message , Dominic Sexton
<{da-sep03}@dscs.demon.co.uk> writes
>
>To do so put this after the above line altered earlier.
>
>        if (strlen($email))
>        {
>                $headers .= "Reply-To: $email\n";
>        }

Oops missed out a new line there. The line in the middle should be

        $headers .= "\nReply-To: $email\n";
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:44:15 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
in message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, TrentSC
('TrentSC@invalid.invalid') wrote:

> I've been using the very straightforward mailit.php script to hand;e form
> mail submissions, but for reasons which I don't understands, Microsoft
> Exchange refuses to process the incoming mails from the web site.  We
> think it's because the submission email doesn't have a sender's email
> address (it's just blank), because when I enter multiple recipients,
> everyone else gets it.

Wouldn't it be simpler to fix the bit of your system that's broken, not the
one that isn't broken? Thunderbird is a free download.

-- 
simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

        ;; If you're doing this for fun, do what seems fun.  If you're
        ;; doing it for money, stop now.
                                                        ;; Rainer Deyke
date: Wed, 06 Jun 2007 23:19:52 +0100   author:   Simon Brooke

Re: Looking for a simple PHP script   
Simon Brooke wrote:

> Thunderbird is a free download.

But couldn't really be considered a replacement for Exchange.

-- 
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 103 days, 15:48.]

                              URLs in demiblog
          http://tobyinkster.co.uk/blog/2007/05/31/demiblog-urls/
date: Thu, 7 Jun 2007 09:04:14 +0100   author:   Toby A Inkster

Re: Looking for a simple PHP script   
In message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, 
TrentSC <TrentSC@invalid.invalid> writes
>I've been using the very straightforward mailit.php script to hand;e form
>mail submissions, but for reasons which I don't understands, Microsoft
>Exchange refuses to process the incoming mails from the web site.  We think
>it's because the submission email doesn't have a sender's email address
>(it's just blank), because when I enter multiple recipients, everyone else
>gets it.
>
>So, I'm looking for a simple-to-configure, free php script to handle form
>submissions.  I'm well aware that a Google search will generate plenty of
>options, but I'd be grateful for this group's recommendations.
>
>Ta muchly.

I'm sure your existing script could easily be modified to give a from 
address in the email.

Open it up in an editor and find the line that looks like

$something = mail($email, $subject, $message, $header)

[the variables (things starting with $) will probably have different 
names]

Select that line and all previous lines which include any of the 
variables listed in the brackets after mail and post those lines here. 
That will enable sensible suggestions for changes to achieve what you 
want...
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 16:06:04 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
>>I've been using the very straightforward mailit.php script to hand;e form
>>mail submissions, but for reasons which I don't understands, Microsoft
>>Exchange refuses to process the incoming mails from the web site.  We 
>>think
>>it's because the submission email doesn't have a sender's email address
>>(it's just blank), because when I enter multiple recipients, everyone else
>>gets it.
>>
>>So, I'm looking for a simple-to-configure, free php script to handle form
>>submissions.  I'm well aware that a Google search will generate plenty of
>>options, but I'd be grateful for this group's recommendations.
>>
>>Ta muchly.
>
> I'm sure your existing script could easily be modified to give a from 
> address in the email.
>
> Open it up in an editor and find the line that looks like
>
> $something = mail($email, $subject, $message, $header)
>
> [the variables (things starting with $) will probably have different 
> names]
>
> Select that line and all previous lines which include any of the variables 
> listed in the brackets after mail and post those lines here. That will 
> enable sensible suggestions for changes to achieve what you want...

I can't seem to find that specific line of code, so I've posted the php file 
here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file 
for security.

If anyone can suggest a workaround, I'd be hugely grateful.
date: Wed, 6 Jun 2007 19:56:08 +0100   author:   TrentSC lid

Re: Looking for a simple PHP script   
In message <46670349$0$8722$ed2619ec@ptn-nntp-reader02.plus.net>,
TrentSC <TrentSC@invalid.invalid> writes
>I can't seem to find that specific line of code, so I've posted the php file
>here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file
>for security.
>
>If anyone can suggest a workaround, I'd be hugely grateful.

Line 606 is:

        $headers = "From: ".$email;

That is setting the from address for the email to $email which I assume
is the email address the visitor enters in the contact form. If they do
not enter an email address it will be blank perhaps leading to your
problem.

To get round this do not set the from address to be that of the visitor.
Instead set it to a fixed address of your choice e.g. trent@wibble.com

To do this change the above line to

        $headers = "From: trent@wibble.com";

This will make all form submissions come from trent@wibble.com but it
also means that you cannot easily use your email program to reply to the
sender if they have supplied an email address. You can however set a
reply-to header which will then allow you to reply directly.

To do so put this after the above line altered earlier.

        if (strlen($email))
        {
                $headers .= "Reply-To: $email\n";
        }

That will set the reply-to header so the recipient should just be able
to click the reply button in their email client to reply to the sender.

~~~~~~~~~
However I have just looked at your contact form and the email address is
called email2

<input name="email2" type="text" size="50">

Therefore $email is not getting set hence the always empty from header.
To fix this either change the name in the form to email or change the
following lines (485 & 486) in your php script

if (($email) || ($EMAIL)) {
$email = trim($email);

to

if (($email2) || ($EMAIL)) {
$email = trim($email2);

That should do it.
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:25:46 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
In message , Dominic Sexton
<{da-sep03}@dscs.demon.co.uk> writes
>
>To do so put this after the above line altered earlier.
>
>        if (strlen($email))
>        {
>                $headers .= "Reply-To: $email\n";
>        }

Oops missed out a new line there. The line in the middle should be

        $headers .= "\nReply-To: $email\n";
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:44:15 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
in message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, TrentSC
('TrentSC@invalid.invalid') wrote:

> I've been using the very straightforward mailit.php script to hand;e form
> mail submissions, but for reasons which I don't understands, Microsoft
> Exchange refuses to process the incoming mails from the web site.  We
> think it's because the submission email doesn't have a sender's email
> address (it's just blank), because when I enter multiple recipients,
> everyone else gets it.

Wouldn't it be simpler to fix the bit of your system that's broken, not the
one that isn't broken? Thunderbird is a free download.

-- 
simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

        ;; If you're doing this for fun, do what seems fun.  If you're
        ;; doing it for money, stop now.
                                                        ;; Rainer Deyke
date: Wed, 06 Jun 2007 23:19:52 +0100   author:   Simon Brooke

Re: Looking for a simple PHP script   
Simon Brooke wrote:

> Thunderbird is a free download.

But couldn't really be considered a replacement for Exchange.

-- 
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 103 days, 15:48.]

                              URLs in demiblog
          http://tobyinkster.co.uk/blog/2007/05/31/demiblog-urls/
date: Thu, 7 Jun 2007 09:04:14 +0100   author:   Toby A Inkster

Re: Looking for a simple PHP script   
In message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, 
TrentSC <TrentSC@invalid.invalid> writes
>I've been using the very straightforward mailit.php script to hand;e form
>mail submissions, but for reasons which I don't understands, Microsoft
>Exchange refuses to process the incoming mails from the web site.  We think
>it's because the submission email doesn't have a sender's email address
>(it's just blank), because when I enter multiple recipients, everyone else
>gets it.
>
>So, I'm looking for a simple-to-configure, free php script to handle form
>submissions.  I'm well aware that a Google search will generate plenty of
>options, but I'd be grateful for this group's recommendations.
>
>Ta muchly.

I'm sure your existing script could easily be modified to give a from 
address in the email.

Open it up in an editor and find the line that looks like

$something = mail($email, $subject, $message, $header)

[the variables (things starting with $) will probably have different 
names]

Select that line and all previous lines which include any of the 
variables listed in the brackets after mail and post those lines here. 
That will enable sensible suggestions for changes to achieve what you 
want...
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 16:06:04 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
>>I've been using the very straightforward mailit.php script to hand;e form
>>mail submissions, but for reasons which I don't understands, Microsoft
>>Exchange refuses to process the incoming mails from the web site.  We 
>>think
>>it's because the submission email doesn't have a sender's email address
>>(it's just blank), because when I enter multiple recipients, everyone else
>>gets it.
>>
>>So, I'm looking for a simple-to-configure, free php script to handle form
>>submissions.  I'm well aware that a Google search will generate plenty of
>>options, but I'd be grateful for this group's recommendations.
>>
>>Ta muchly.
>
> I'm sure your existing script could easily be modified to give a from 
> address in the email.
>
> Open it up in an editor and find the line that looks like
>
> $something = mail($email, $subject, $message, $header)
>
> [the variables (things starting with $) will probably have different 
> names]
>
> Select that line and all previous lines which include any of the variables 
> listed in the brackets after mail and post those lines here. That will 
> enable sensible suggestions for changes to achieve what you want...

I can't seem to find that specific line of code, so I've posted the php file 
here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file 
for security.

If anyone can suggest a workaround, I'd be hugely grateful.
date: Wed, 6 Jun 2007 19:56:08 +0100   author:   TrentSC lid

Re: Looking for a simple PHP script   
In message <46670349$0$8722$ed2619ec@ptn-nntp-reader02.plus.net>,
TrentSC <TrentSC@invalid.invalid> writes
>I can't seem to find that specific line of code, so I've posted the php file
>here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file
>for security.
>
>If anyone can suggest a workaround, I'd be hugely grateful.

Line 606 is:

        $headers = "From: ".$email;

That is setting the from address for the email to $email which I assume
is the email address the visitor enters in the contact form. If they do
not enter an email address it will be blank perhaps leading to your
problem.

To get round this do not set the from address to be that of the visitor.
Instead set it to a fixed address of your choice e.g. trent@wibble.com

To do this change the above line to

        $headers = "From: trent@wibble.com";

This will make all form submissions come from trent@wibble.com but it
also means that you cannot easily use your email program to reply to the
sender if they have supplied an email address. You can however set a
reply-to header which will then allow you to reply directly.

To do so put this after the above line altered earlier.

        if (strlen($email))
        {
                $headers .= "Reply-To: $email\n";
        }

That will set the reply-to header so the recipient should just be able
to click the reply button in their email client to reply to the sender.

~~~~~~~~~
However I have just looked at your contact form and the email address is
called email2

<input name="email2" type="text" size="50">

Therefore $email is not getting set hence the always empty from header.
To fix this either change the name in the form to email or change the
following lines (485 & 486) in your php script

if (($email) || ($EMAIL)) {
$email = trim($email);

to

if (($email2) || ($EMAIL)) {
$email = trim($email2);

That should do it.
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:25:46 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
In message , Dominic Sexton
<{da-sep03}@dscs.demon.co.uk> writes
>
>To do so put this after the above line altered earlier.
>
>        if (strlen($email))
>        {
>                $headers .= "Reply-To: $email\n";
>        }

Oops missed out a new line there. The line in the middle should be

        $headers .= "\nReply-To: $email\n";
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:44:15 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
in message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, TrentSC
('TrentSC@invalid.invalid') wrote:

> I've been using the very straightforward mailit.php script to hand;e form
> mail submissions, but for reasons which I don't understands, Microsoft
> Exchange refuses to process the incoming mails from the web site.  We
> think it's because the submission email doesn't have a sender's email
> address (it's just blank), because when I enter multiple recipients,
> everyone else gets it.

Wouldn't it be simpler to fix the bit of your system that's broken, not the
one that isn't broken? Thunderbird is a free download.

-- 
simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

        ;; If you're doing this for fun, do what seems fun.  If you're
        ;; doing it for money, stop now.
                                                        ;; Rainer Deyke
date: Wed, 06 Jun 2007 23:19:52 +0100   author:   Simon Brooke

Re: Looking for a simple PHP script   
Simon Brooke wrote:

> Thunderbird is a free download.

But couldn't really be considered a replacement for Exchange.

-- 
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 103 days, 15:48.]

                              URLs in demiblog
          http://tobyinkster.co.uk/blog/2007/05/31/demiblog-urls/
date: Thu, 7 Jun 2007 09:04:14 +0100   author:   Toby A Inkster

Re: Looking for a simple PHP script   
In message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, 
TrentSC <TrentSC@invalid.invalid> writes
>I've been using the very straightforward mailit.php script to hand;e form
>mail submissions, but for reasons which I don't understands, Microsoft
>Exchange refuses to process the incoming mails from the web site.  We think
>it's because the submission email doesn't have a sender's email address
>(it's just blank), because when I enter multiple recipients, everyone else
>gets it.
>
>So, I'm looking for a simple-to-configure, free php script to handle form
>submissions.  I'm well aware that a Google search will generate plenty of
>options, but I'd be grateful for this group's recommendations.
>
>Ta muchly.

I'm sure your existing script could easily be modified to give a from 
address in the email.

Open it up in an editor and find the line that looks like

$something = mail($email, $subject, $message, $header)

[the variables (things starting with $) will probably have different 
names]

Select that line and all previous lines which include any of the 
variables listed in the brackets after mail and post those lines here. 
That will enable sensible suggestions for changes to achieve what you 
want...
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 16:06:04 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
>>I've been using the very straightforward mailit.php script to hand;e form
>>mail submissions, but for reasons which I don't understands, Microsoft
>>Exchange refuses to process the incoming mails from the web site.  We 
>>think
>>it's because the submission email doesn't have a sender's email address
>>(it's just blank), because when I enter multiple recipients, everyone else
>>gets it.
>>
>>So, I'm looking for a simple-to-configure, free php script to handle form
>>submissions.  I'm well aware that a Google search will generate plenty of
>>options, but I'd be grateful for this group's recommendations.
>>
>>Ta muchly.
>
> I'm sure your existing script could easily be modified to give a from 
> address in the email.
>
> Open it up in an editor and find the line that looks like
>
> $something = mail($email, $subject, $message, $header)
>
> [the variables (things starting with $) will probably have different 
> names]
>
> Select that line and all previous lines which include any of the variables 
> listed in the brackets after mail and post those lines here. That will 
> enable sensible suggestions for changes to achieve what you want...

I can't seem to find that specific line of code, so I've posted the php file 
here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file 
for security.

If anyone can suggest a workaround, I'd be hugely grateful.
date: Wed, 6 Jun 2007 19:56:08 +0100   author:   TrentSC lid

Re: Looking for a simple PHP script   
In message <46670349$0$8722$ed2619ec@ptn-nntp-reader02.plus.net>,
TrentSC <TrentSC@invalid.invalid> writes
>I can't seem to find that specific line of code, so I've posted the php file
>here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file
>for security.
>
>If anyone can suggest a workaround, I'd be hugely grateful.

Line 606 is:

        $headers = "From: ".$email;

That is setting the from address for the email to $email which I assume
is the email address the visitor enters in the contact form. If they do
not enter an email address it will be blank perhaps leading to your
problem.

To get round this do not set the from address to be that of the visitor.
Instead set it to a fixed address of your choice e.g. trent@wibble.com

To do this change the above line to

        $headers = "From: trent@wibble.com";

This will make all form submissions come from trent@wibble.com but it
also means that you cannot easily use your email program to reply to the
sender if they have supplied an email address. You can however set a
reply-to header which will then allow you to reply directly.

To do so put this after the above line altered earlier.

        if (strlen($email))
        {
                $headers .= "Reply-To: $email\n";
        }

That will set the reply-to header so the recipient should just be able
to click the reply button in their email client to reply to the sender.

~~~~~~~~~
However I have just looked at your contact form and the email address is
called email2

<input name="email2" type="text" size="50">

Therefore $email is not getting set hence the always empty from header.
To fix this either change the name in the form to email or change the
following lines (485 & 486) in your php script

if (($email) || ($EMAIL)) {
$email = trim($email);

to

if (($email2) || ($EMAIL)) {
$email = trim($email2);

That should do it.
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:25:46 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
In message , Dominic Sexton
<{da-sep03}@dscs.demon.co.uk> writes
>
>To do so put this after the above line altered earlier.
>
>        if (strlen($email))
>        {
>                $headers .= "Reply-To: $email\n";
>        }

Oops missed out a new line there. The line in the middle should be

        $headers .= "\nReply-To: $email\n";
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:44:15 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
in message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, TrentSC
('TrentSC@invalid.invalid') wrote:

> I've been using the very straightforward mailit.php script to hand;e form
> mail submissions, but for reasons which I don't understands, Microsoft
> Exchange refuses to process the incoming mails from the web site.  We
> think it's because the submission email doesn't have a sender's email
> address (it's just blank), because when I enter multiple recipients,
> everyone else gets it.

Wouldn't it be simpler to fix the bit of your system that's broken, not the
one that isn't broken? Thunderbird is a free download.

-- 
simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

        ;; If you're doing this for fun, do what seems fun.  If you're
        ;; doing it for money, stop now.
                                                        ;; Rainer Deyke
date: Wed, 06 Jun 2007 23:19:52 +0100   author:   Simon Brooke

Re: Looking for a simple PHP script   
Simon Brooke wrote:

> Thunderbird is a free download.

But couldn't really be considered a replacement for Exchange.

-- 
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 103 days, 15:48.]

                              URLs in demiblog
          http://tobyinkster.co.uk/blog/2007/05/31/demiblog-urls/
date: Thu, 7 Jun 2007 09:04:14 +0100   author:   Toby A Inkster

Re: Looking for a simple PHP script   
In message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, 
TrentSC <TrentSC@invalid.invalid> writes
>I've been using the very straightforward mailit.php script to hand;e form
>mail submissions, but for reasons which I don't understands, Microsoft
>Exchange refuses to process the incoming mails from the web site.  We think
>it's because the submission email doesn't have a sender's email address
>(it's just blank), because when I enter multiple recipients, everyone else
>gets it.
>
>So, I'm looking for a simple-to-configure, free php script to handle form
>submissions.  I'm well aware that a Google search will generate plenty of
>options, but I'd be grateful for this group's recommendations.
>
>Ta muchly.

I'm sure your existing script could easily be modified to give a from 
address in the email.

Open it up in an editor and find the line that looks like

$something = mail($email, $subject, $message, $header)

[the variables (things starting with $) will probably have different 
names]

Select that line and all previous lines which include any of the 
variables listed in the brackets after mail and post those lines here. 
That will enable sensible suggestions for changes to achieve what you 
want...
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 16:06:04 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
>>I've been using the very straightforward mailit.php script to hand;e form
>>mail submissions, but for reasons which I don't understands, Microsoft
>>Exchange refuses to process the incoming mails from the web site.  We 
>>think
>>it's because the submission email doesn't have a sender's email address
>>(it's just blank), because when I enter multiple recipients, everyone else
>>gets it.
>>
>>So, I'm looking for a simple-to-configure, free php script to handle form
>>submissions.  I'm well aware that a Google search will generate plenty of
>>options, but I'd be grateful for this group's recommendations.
>>
>>Ta muchly.
>
> I'm sure your existing script could easily be modified to give a from 
> address in the email.
>
> Open it up in an editor and find the line that looks like
>
> $something = mail($email, $subject, $message, $header)
>
> [the variables (things starting with $) will probably have different 
> names]
>
> Select that line and all previous lines which include any of the variables 
> listed in the brackets after mail and post those lines here. That will 
> enable sensible suggestions for changes to achieve what you want...

I can't seem to find that specific line of code, so I've posted the php file 
here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file 
for security.

If anyone can suggest a workaround, I'd be hugely grateful.
date: Wed, 6 Jun 2007 19:56:08 +0100   author:   TrentSC lid

Re: Looking for a simple PHP script   
In message <46670349$0$8722$ed2619ec@ptn-nntp-reader02.plus.net>,
TrentSC <TrentSC@invalid.invalid> writes
>I can't seem to find that specific line of code, so I've posted the php file
>here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file
>for security.
>
>If anyone can suggest a workaround, I'd be hugely grateful.

Line 606 is:

        $headers = "From: ".$email;

That is setting the from address for the email to $email which I assume
is the email address the visitor enters in the contact form. If they do
not enter an email address it will be blank perhaps leading to your
problem.

To get round this do not set the from address to be that of the visitor.
Instead set it to a fixed address of your choice e.g. trent@wibble.com

To do this change the above line to

        $headers = "From: trent@wibble.com";

This will make all form submissions come from trent@wibble.com but it
also means that you cannot easily use your email program to reply to the
sender if they have supplied an email address. You can however set a
reply-to header which will then allow you to reply directly.

To do so put this after the above line altered earlier.

        if (strlen($email))
        {
                $headers .= "Reply-To: $email\n";
        }

That will set the reply-to header so the recipient should just be able
to click the reply button in their email client to reply to the sender.

~~~~~~~~~
However I have just looked at your contact form and the email address is
called email2

<input name="email2" type="text" size="50">

Therefore $email is not getting set hence the always empty from header.
To fix this either change the name in the form to email or change the
following lines (485 & 486) in your php script

if (($email) || ($EMAIL)) {
$email = trim($email);

to

if (($email2) || ($EMAIL)) {
$email = trim($email2);

That should do it.
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:25:46 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
In message , Dominic Sexton
<{da-sep03}@dscs.demon.co.uk> writes
>
>To do so put this after the above line altered earlier.
>
>        if (strlen($email))
>        {
>                $headers .= "Reply-To: $email\n";
>        }

Oops missed out a new line there. The line in the middle should be

        $headers .= "\nReply-To: $email\n";
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:44:15 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
in message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, TrentSC
('TrentSC@invalid.invalid') wrote:

> I've been using the very straightforward mailit.php script to hand;e form
> mail submissions, but for reasons which I don't understands, Microsoft
> Exchange refuses to process the incoming mails from the web site.  We
> think it's because the submission email doesn't have a sender's email
> address (it's just blank), because when I enter multiple recipients,
> everyone else gets it.

Wouldn't it be simpler to fix the bit of your system that's broken, not the
one that isn't broken? Thunderbird is a free download.

-- 
simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

        ;; If you're doing this for fun, do what seems fun.  If you're
        ;; doing it for money, stop now.
                                                        ;; Rainer Deyke
date: Wed, 06 Jun 2007 23:19:52 +0100   author:   Simon Brooke

Re: Looking for a simple PHP script   
Simon Brooke wrote:

> Thunderbird is a free download.

But couldn't really be considered a replacement for Exchange.

-- 
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 103 days, 15:48.]

                              URLs in demiblog
          http://tobyinkster.co.uk/blog/2007/05/31/demiblog-urls/
date: Thu, 7 Jun 2007 09:04:14 +0100   author:   Toby A Inkster

Re: Looking for a simple PHP script   
In message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, 
TrentSC <TrentSC@invalid.invalid> writes
>I've been using the very straightforward mailit.php script to hand;e form
>mail submissions, but for reasons which I don't understands, Microsoft
>Exchange refuses to process the incoming mails from the web site.  We think
>it's because the submission email doesn't have a sender's email address
>(it's just blank), because when I enter multiple recipients, everyone else
>gets it.
>
>So, I'm looking for a simple-to-configure, free php script to handle form
>submissions.  I'm well aware that a Google search will generate plenty of
>options, but I'd be grateful for this group's recommendations.
>
>Ta muchly.

I'm sure your existing script could easily be modified to give a from 
address in the email.

Open it up in an editor and find the line that looks like

$something = mail($email, $subject, $message, $header)

[the variables (things starting with $) will probably have different 
names]

Select that line and all previous lines which include any of the 
variables listed in the brackets after mail and post those lines here. 
That will enable sensible suggestions for changes to achieve what you 
want...
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 16:06:04 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
>>I've been using the very straightforward mailit.php script to hand;e form
>>mail submissions, but for reasons which I don't understands, Microsoft
>>Exchange refuses to process the incoming mails from the web site.  We 
>>think
>>it's because the submission email doesn't have a sender's email address
>>(it's just blank), because when I enter multiple recipients, everyone else
>>gets it.
>>
>>So, I'm looking for a simple-to-configure, free php script to handle form
>>submissions.  I'm well aware that a Google search will generate plenty of
>>options, but I'd be grateful for this group's recommendations.
>>
>>Ta muchly.
>
> I'm sure your existing script could easily be modified to give a from 
> address in the email.
>
> Open it up in an editor and find the line that looks like
>
> $something = mail($email, $subject, $message, $header)
>
> [the variables (things starting with $) will probably have different 
> names]
>
> Select that line and all previous lines which include any of the variables 
> listed in the brackets after mail and post those lines here. That will 
> enable sensible suggestions for changes to achieve what you want...

I can't seem to find that specific line of code, so I've posted the php file 
here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file 
for security.

If anyone can suggest a workaround, I'd be hugely grateful.
date: Wed, 6 Jun 2007 19:56:08 +0100   author:   TrentSC lid

Re: Looking for a simple PHP script   
In message <46670349$0$8722$ed2619ec@ptn-nntp-reader02.plus.net>,
TrentSC <TrentSC@invalid.invalid> writes
>I can't seem to find that specific line of code, so I've posted the php file
>here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file
>for security.
>
>If anyone can suggest a workaround, I'd be hugely grateful.

Line 606 is:

        $headers = "From: ".$email;

That is setting the from address for the email to $email which I assume
is the email address the visitor enters in the contact form. If they do
not enter an email address it will be blank perhaps leading to your
problem.

To get round this do not set the from address to be that of the visitor.
Instead set it to a fixed address of your choice e.g. trent@wibble.com

To do this change the above line to

        $headers = "From: trent@wibble.com";

This will make all form submissions come from trent@wibble.com but it
also means that you cannot easily use your email program to reply to the
sender if they have supplied an email address. You can however set a
reply-to header which will then allow you to reply directly.

To do so put this after the above line altered earlier.

        if (strlen($email))
        {
                $headers .= "Reply-To: $email\n";
        }

That will set the reply-to header so the recipient should just be able
to click the reply button in their email client to reply to the sender.

~~~~~~~~~
However I have just looked at your contact form and the email address is
called email2

<input name="email2" type="text" size="50">

Therefore $email is not getting set hence the always empty from header.
To fix this either change the name in the form to email or change the
following lines (485 & 486) in your php script

if (($email) || ($EMAIL)) {
$email = trim($email);

to

if (($email2) || ($EMAIL)) {
$email = trim($email2);

That should do it.
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:25:46 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
In message , Dominic Sexton
<{da-sep03}@dscs.demon.co.uk> writes
>
>To do so put this after the above line altered earlier.
>
>        if (strlen($email))
>        {
>                $headers .= "Reply-To: $email\n";
>        }

Oops missed out a new line there. The line in the middle should be

        $headers .= "\nReply-To: $email\n";
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:44:15 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
in message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, TrentSC
('TrentSC@invalid.invalid') wrote:

> I've been using the very straightforward mailit.php script to hand;e form
> mail submissions, but for reasons which I don't understands, Microsoft
> Exchange refuses to process the incoming mails from the web site.  We
> think it's because the submission email doesn't have a sender's email
> address (it's just blank), because when I enter multiple recipients,
> everyone else gets it.

Wouldn't it be simpler to fix the bit of your system that's broken, not the
one that isn't broken? Thunderbird is a free download.

-- 
simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

        ;; If you're doing this for fun, do what seems fun.  If you're
        ;; doing it for money, stop now.
                                                        ;; Rainer Deyke
date: Wed, 06 Jun 2007 23:19:52 +0100   author:   Simon Brooke

Re: Looking for a simple PHP script   
Simon Brooke wrote:

> Thunderbird is a free download.

But couldn't really be considered a replacement for Exchange.

-- 
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 103 days, 15:48.]

                              URLs in demiblog
          http://tobyinkster.co.uk/blog/2007/05/31/demiblog-urls/
date: Thu, 7 Jun 2007 09:04:14 +0100   author:   Toby A Inkster

Re: Looking for a simple PHP script   
In message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, 
TrentSC <TrentSC@invalid.invalid> writes
>I've been using the very straightforward mailit.php script to hand;e form
>mail submissions, but for reasons which I don't understands, Microsoft
>Exchange refuses to process the incoming mails from the web site.  We think
>it's because the submission email doesn't have a sender's email address
>(it's just blank), because when I enter multiple recipients, everyone else
>gets it.
>
>So, I'm looking for a simple-to-configure, free php script to handle form
>submissions.  I'm well aware that a Google search will generate plenty of
>options, but I'd be grateful for this group's recommendations.
>
>Ta muchly.

I'm sure your existing script could easily be modified to give a from 
address in the email.

Open it up in an editor and find the line that looks like

$something = mail($email, $subject, $message, $header)

[the variables (things starting with $) will probably have different 
names]

Select that line and all previous lines which include any of the 
variables listed in the brackets after mail and post those lines here. 
That will enable sensible suggestions for changes to achieve what you 
want...
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 16:06:04 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
>>I've been using the very straightforward mailit.php script to hand;e form
>>mail submissions, but for reasons which I don't understands, Microsoft
>>Exchange refuses to process the incoming mails from the web site.  We 
>>think
>>it's because the submission email doesn't have a sender's email address
>>(it's just blank), because when I enter multiple recipients, everyone else
>>gets it.
>>
>>So, I'm looking for a simple-to-configure, free php script to handle form
>>submissions.  I'm well aware that a Google search will generate plenty of
>>options, but I'd be grateful for this group's recommendations.
>>
>>Ta muchly.
>
> I'm sure your existing script could easily be modified to give a from 
> address in the email.
>
> Open it up in an editor and find the line that looks like
>
> $something = mail($email, $subject, $message, $header)
>
> [the variables (things starting with $) will probably have different 
> names]
>
> Select that line and all previous lines which include any of the variables 
> listed in the brackets after mail and post those lines here. That will 
> enable sensible suggestions for changes to achieve what you want...

I can't seem to find that specific line of code, so I've posted the php file 
here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file 
for security.

If anyone can suggest a workaround, I'd be hugely grateful.
date: Wed, 6 Jun 2007 19:56:08 +0100   author:   TrentSC lid

Re: Looking for a simple PHP script   
In message <46670349$0$8722$ed2619ec@ptn-nntp-reader02.plus.net>,
TrentSC <TrentSC@invalid.invalid> writes
>I can't seem to find that specific line of code, so I've posted the php file
>here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file
>for security.
>
>If anyone can suggest a workaround, I'd be hugely grateful.

Line 606 is:

        $headers = "From: ".$email;

That is setting the from address for the email to $email which I assume
is the email address the visitor enters in the contact form. If they do
not enter an email address it will be blank perhaps leading to your
problem.

To get round this do not set the from address to be that of the visitor.
Instead set it to a fixed address of your choice e.g. trent@wibble.com

To do this change the above line to

        $headers = "From: trent@wibble.com";

This will make all form submissions come from trent@wibble.com but it
also means that you cannot easily use your email program to reply to the
sender if they have supplied an email address. You can however set a
reply-to header which will then allow you to reply directly.

To do so put this after the above line altered earlier.

        if (strlen($email))
        {
                $headers .= "Reply-To: $email\n";
        }

That will set the reply-to header so the recipient should just be able
to click the reply button in their email client to reply to the sender.

~~~~~~~~~
However I have just looked at your contact form and the email address is
called email2

<input name="email2" type="text" size="50">

Therefore $email is not getting set hence the always empty from header.
To fix this either change the name in the form to email or change the
following lines (485 & 486) in your php script

if (($email) || ($EMAIL)) {
$email = trim($email);

to

if (($email2) || ($EMAIL)) {
$email = trim($email2);

That should do it.
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:25:46 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
In message , Dominic Sexton
<{da-sep03}@dscs.demon.co.uk> writes
>
>To do so put this after the above line altered earlier.
>
>        if (strlen($email))
>        {
>                $headers .= "Reply-To: $email\n";
>        }

Oops missed out a new line there. The line in the middle should be

        $headers .= "\nReply-To: $email\n";
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:44:15 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
in message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, TrentSC
('TrentSC@invalid.invalid') wrote:

> I've been using the very straightforward mailit.php script to hand;e form
> mail submissions, but for reasons which I don't understands, Microsoft
> Exchange refuses to process the incoming mails from the web site.  We
> think it's because the submission email doesn't have a sender's email
> address (it's just blank), because when I enter multiple recipients,
> everyone else gets it.

Wouldn't it be simpler to fix the bit of your system that's broken, not the
one that isn't broken? Thunderbird is a free download.

-- 
simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

        ;; If you're doing this for fun, do what seems fun.  If you're
        ;; doing it for money, stop now.
                                                        ;; Rainer Deyke
date: Wed, 06 Jun 2007 23:19:52 +0100   author:   Simon Brooke

Re: Looking for a simple PHP script   
Simon Brooke wrote:

> Thunderbird is a free download.

But couldn't really be considered a replacement for Exchange.

-- 
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 103 days, 15:48.]

                              URLs in demiblog
          http://tobyinkster.co.uk/blog/2007/05/31/demiblog-urls/
date: Thu, 7 Jun 2007 09:04:14 +0100   author:   Toby A Inkster

Re: Looking for a simple PHP script   
In message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, 
TrentSC <TrentSC@invalid.invalid> writes
>I've been using the very straightforward mailit.php script to hand;e form
>mail submissions, but for reasons which I don't understands, Microsoft
>Exchange refuses to process the incoming mails from the web site.  We think
>it's because the submission email doesn't have a sender's email address
>(it's just blank), because when I enter multiple recipients, everyone else
>gets it.
>
>So, I'm looking for a simple-to-configure, free php script to handle form
>submissions.  I'm well aware that a Google search will generate plenty of
>options, but I'd be grateful for this group's recommendations.
>
>Ta muchly.

I'm sure your existing script could easily be modified to give a from 
address in the email.

Open it up in an editor and find the line that looks like

$something = mail($email, $subject, $message, $header)

[the variables (things starting with $) will probably have different 
names]

Select that line and all previous lines which include any of the 
variables listed in the brackets after mail and post those lines here. 
That will enable sensible suggestions for changes to achieve what you 
want...
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 16:06:04 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
>>I've been using the very straightforward mailit.php script to hand;e form
>>mail submissions, but for reasons which I don't understands, Microsoft
>>Exchange refuses to process the incoming mails from the web site.  We 
>>think
>>it's because the submission email doesn't have a sender's email address
>>(it's just blank), because when I enter multiple recipients, everyone else
>>gets it.
>>
>>So, I'm looking for a simple-to-configure, free php script to handle form
>>submissions.  I'm well aware that a Google search will generate plenty of
>>options, but I'd be grateful for this group's recommendations.
>>
>>Ta muchly.
>
> I'm sure your existing script could easily be modified to give a from 
> address in the email.
>
> Open it up in an editor and find the line that looks like
>
> $something = mail($email, $subject, $message, $header)
>
> [the variables (things starting with $) will probably have different 
> names]
>
> Select that line and all previous lines which include any of the variables 
> listed in the brackets after mail and post those lines here. That will 
> enable sensible suggestions for changes to achieve what you want...

I can't seem to find that specific line of code, so I've posted the php file 
here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file 
for security.

If anyone can suggest a workaround, I'd be hugely grateful.
date: Wed, 6 Jun 2007 19:56:08 +0100   author:   TrentSC lid

Re: Looking for a simple PHP script   
In message <46670349$0$8722$ed2619ec@ptn-nntp-reader02.plus.net>,
TrentSC <TrentSC@invalid.invalid> writes
>I can't seem to find that specific line of code, so I've posted the php file
>here (www.pcave.plus.com/temp/mailit.txt).  I've converted it to a text file
>for security.
>
>If anyone can suggest a workaround, I'd be hugely grateful.

Line 606 is:

        $headers = "From: ".$email;

That is setting the from address for the email to $email which I assume
is the email address the visitor enters in the contact form. If they do
not enter an email address it will be blank perhaps leading to your
problem.

To get round this do not set the from address to be that of the visitor.
Instead set it to a fixed address of your choice e.g. trent@wibble.com

To do this change the above line to

        $headers = "From: trent@wibble.com";

This will make all form submissions come from trent@wibble.com but it
also means that you cannot easily use your email program to reply to the
sender if they have supplied an email address. You can however set a
reply-to header which will then allow you to reply directly.

To do so put this after the above line altered earlier.

        if (strlen($email))
        {
                $headers .= "Reply-To: $email\n";
        }

That will set the reply-to header so the recipient should just be able
to click the reply button in their email client to reply to the sender.

~~~~~~~~~
However I have just looked at your contact form and the email address is
called email2

<input name="email2" type="text" size="50">

Therefore $email is not getting set hence the always empty from header.
To fix this either change the name in the form to email or change the
following lines (485 & 486) in your php script

if (($email) || ($EMAIL)) {
$email = trim($email);

to

if (($email2) || ($EMAIL)) {
$email = trim($email2);

That should do it.
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:25:46 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
In message , Dominic Sexton
<{da-sep03}@dscs.demon.co.uk> writes
>
>To do so put this after the above line altered earlier.
>
>        if (strlen($email))
>        {
>                $headers .= "Reply-To: $email\n";
>        }

Oops missed out a new line there. The line in the middle should be

        $headers .= "\nReply-To: $email\n";
-- 
Dominic Sexton
date: Wed, 6 Jun 2007 22:44:15 +0100   author:   Dominic Sexton {da-sep03}@dscs.demon.co.uk

Re: Looking for a simple PHP script   
in message <4666abe4$0$8757$ed2619ec@ptn-nntp-reader02.plus.net>, TrentSC
('TrentSC@invalid.invalid') wrote:

> I've been using the very straightforward mailit.php script to hand;e form
> mail submissions, but for reasons which I don't understands, Microsoft
> Exchange refuses to process the incoming mails from the web site.  We
> think it's because the submission email doesn't have a sender's email
> address (it's just blank), because when I enter multiple recipients,
> everyone else gets it.

Wouldn't it be simpler to fix the bit of your system that's broken, not the
one that isn't broken? Thunderbird is a free download.

-- 
simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

        ;; If you're doing this for fun, do what seems fun.  If you're
        ;; doing it for money, stop now.
                                                        ;; Rainer Deyke
date: Wed, 06 Jun 2007 23:19:52 +0100   author:   Simon Brooke

Re: Looking for a simple PHP script   
Simon Brooke wrote:

> Thunderbird is a free download.

But couldn't really be considered a replacement for Exchange.

-- 
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 103 days, 15:48.]

                              URLs in demiblog
          http://tobyinkster.co.uk/blog/2007/05/31/demiblog-urls/
date: Thu, 7 Jun 2007 09:04:14 +0100   author:   Toby A Inkster

Google
 
Web myreader.co.uk


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us