|
Posted by Vik Rubenfeld on 12/08/06 16:51
Thanks, Geoff. I added the code in, and it ran with no errors. But when
I entered my own email address on the form, I received no email from the
site. What could explain this?
-Vik
Geoff Berrow <blthecat@ckdog.co.uk> wrote:
> Assuming you are replacing an@email.com with a valid email address you
> could try
>
> if(mail( "an@email.com", "subject line",
> "$text", "From: $email" )){
> header( "Location: http://www.mydomain.com/Contact/thanks.html" );
> }
> else{
> echo "mail could not be sent";
> }
>
> This will check if mail is actually being received for posting.
Navigation:
[Reply to this message]
|