![]() |
Problem with PHP mail()
Hi Guys...
I have a problem that I just done understand. This is the code that I am using: Code:
# SEND EMAILCode:
$to = 'dave@swarbrick-racing.co.uk';Code:
$to = 'ann@in-uk.co.uk';Any suggestions will be welcome. John C |
Do jc@ukzone.com and ann@in-uk.co.uk point to the same mailbox?
|
Hi Falko...
Thanks for taking the time to try and help me. Quote:
However, this issue came to light when I was setting up another contact form for a different site. This is what I was setting up and couldn't get it to work: PHP Code:
When I couldn't get this to work, I went to a script that I knew was working to try and identify the problem. HOWEVER.... I tested again with an email address that I control and doesn't go to the same mailbox. You were RIGHT... That worked. I then went back to the original problem (the code above) and it was working !!! The only thing that I did was to turn off my computer (not server) last night and switch it on agan this morning. ??????????????????????? Thanks very much for your help... John C |
hey all,
the phpmail function is used in the php scripting for sending mail from the php code . the actuall script is <?php $to = "somebody@example.com"; $subject = "My subject"; $txt = "Hello world!"; $headers = "From: webmaster@example.com" . "\r\n" . "CC: somebodyelse@example.com"; mail($to,$subject,$txt,$headers); ?> is this a complete code to send mail from the script ? |
Yes, that should work.
|
| All times are GMT +2. The time now is 06:38. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.