You are here: Re: i need help with my mail script « PHP Programming Language « IT news, forums, messages
Re: i need help with my mail script

Posted by shror on 02/21/07 00:05

On Feb 20, 6:11 am, "Klarth" <kah....@gmail.com> wrote:
> I think there is a mistake in your arguments. From the manual, the
> order is:
>
> bool mail ( string $to, string $subject, string $message [, string
> $additional_headers [, string $additional_parameters]] )
>
> Why do you pass $email as your first argument and $to as your last
> argument? I suggest trying mail($to,$subject,$message,$from) first.
>
> Another thing to check is your PHP mail configuration, if you are
> running your own server. The details are in the PHP manual:http://www.php.net/manual/en/ref.mail.php. But this applies if you are
> running PHP off your own computer.
>
> On Feb 20, 7:11 am, "shror" <shahi...@gmail.com> wrote:
>
>
>
> > Hi Ken,
> > First of all i'd like to thank you so much for offering me help
>
> > then about the onsubmit i have removed it now
>
> > and in the mail.php page i have made some changes as you told me
> > the new code is:
>
> > <?php
> > $email = $_POST['email'];
> > $subject = $_POST['subject'];
> > $message = $_POST['message'];
> > $from = "From: e...@s7els7.com";
> > $t = "shahirwm";
> > $o = "@gmail.com";
> > $to = $t . $o;
> > if (mail($email,$subject,$message,$from,$to)) {
> > echo "<h4>Thank you $email for sending $to this email</h4>";} else {
>
> > echo "<h4>Can't send email to $email</h4>";}
>
> > ?>
>
> > i have made the $from as you said and almost every thing but still i
> > cant get any mails from this script so please help me once more how to
> > fix it and where is my problem.
>
> > thanks once more for your help
> > the form URL is:www.s7els7.com/mail.htm- Hide quoted text -
>
> - Show quoted text -

Thank you Klarth for your note, it was correct and it fixed my form,
now its working fine, but i just need one more thing which is how i
set the X-mailer to be someting i do configer, is it possible or not
thanks so much for your help once more and for the help of every body.

shror

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация