[thelist] Email Problem
patrick
pms at stoutstreet.com
Sat Apr 22 20:48:54 CDT 2006
Justin Zachan wrote:
> Hi there. I have a contact form that sends an email via PHP mail().
>
> It all works well, but for some reason it is not going to a few email
> addresses (different domains)... And the domains are all on the same
> server... But the trick is that some other domains on the same server
> work...
>
> This very email address does not receive the email message.
>
> Can anyone rush an eye over this code and tell me if I am missing something
> simple??? Thanks in advance...
>
> <?php
>
> if(isset($_POST["feedback_submit"])) {
>
> //change this here Justin...
>
> $toemail = "justin at jazzmanagement.com.au" ;
>
> //
>
> $thesubject = "Contact Made" ;
>
> $normals = "From: ".$_POST[fname]."
> ".$_POST[sname]." <".$_POST[email].">";
>
> $normals .="\r\n";
>
> $normals .= "Reply-To: ".$_POST[email];
>
> $headers .= "\r\n";
>
> $headers .= "X-Mailer: PHP/" . phpversion();
>
>
>
> $themessage = "
>
> Name: $_POST[fname] $_POST[sname]
>
> Email: $_POST[email]
>
> Phone: $_POST[phone]
>
> -------
>
> $_POST[message]
>
> -------
>
>
>
> ";
>
> mail($toemail, $thesubject, $themessage, $normals); ?>
>
> <p>Thanks <?php echo $_POST[fname];?>, your feedback has been sent
> and we will contact you shortly.</p>
>
> <?php }
>
>
>
You are aware as well that this form is not secure? That it is easily
subject to automatic spam attack and header insertion?
--
patrick sanders
http://www.stoutstreet.com
web sites that fit
More information about the thelist
mailing list