Re: mail() question
| From: | John Wards | Date: | Tue, 17 Sep 2002 14:03:45 +0000 |
| Subject: | Re: mail() question | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116630@lists.php.net to get a copy of this message | ||
You need to edit you php.ini file
Depending on you instlation it should be fount in either c:\windows\php.ini
or c:\winnt\php.ini
If it is not search for php.ini
Then edit the values:
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = me@localhost.com
Your SMTP setting would be what ever you send your mail with currently.
Looking at you email address somthing like mail.momentum-dmt.com and your
sendmail_from setting would just be your email address
Cheers
John
----- Original Message -----
From: "Meltem Demirkus" <mdemirkus@momentum-dmt.com>
To: "John Wards" <j.wards@sportnetwork.net>
Sent: Tuesday, September 17, 2002 2:55 PM
Subject: Re: [PHP] mail() question
> how can I do them?..I am sorry maybe I am asking silly questions .It is
> because I am new on php...
> thnaks ..
> meltem
> ----- Original Message -----
> From: "John Wards" <j.wards@sportnetwork.net>
> To: "Meltem Demirkus" <mdemirkus@momentum-dmt.com>
> Cc: <php-general@lists.php.net>
> Sent: Tuesday, September 17, 2002 4:50 PM
> Subject: Re: [PHP] mail() question
>
>
> > Have you set up you php.ini file correctly?
> >
> > You need to set up your SMTP settings and your sendmail_from settings
> >
> > John
> > ----- Original Message -----
> > From: "Meltem Demirkus" <mdemirkus@momentum-dmt.com>
> > To: "John Wards" <j.wards@sportnetwork.net>
> > Cc: <php-general@lists.php.net>
> > Sent: Tuesday, September 17, 2002 2:43 PM
> > Subject: Re: [PHP] mail() question
> >
> >
> > > windows 2000
> > > by the way my whole code is this:
> > >
> > > <?
> > >
> > > $msg = "Sender Name:\t$_POST[sender_name]\n";
> > > $msg .= "Sender E-Mail:\t$_POST[sender_email]\n";
> > > $msg .= "Message:\t$_POST[message]\n\n";
> > >
> > > $recipient = "mailto:metos@yahoo.com;
> > > $subject = "Web Site Feedback";
> > >
> > > $mailheaders = "From: My Web Site <> \n";
> > > $mailheaders .= "Reply-To: $_POST[sender_email]\n\n";
> > >
> > > mail($recipient, $subject, $msg, $mailheaders);
> > >
> > > echo "<HTML><HEAD><TITLE>Form
> > > Sent!</TITLE></HEAD><BODY>";
> > > echo "<H1 align=center>Thank You, $_POST[$sender_name]</H1>";
> > > echo "<P align=center>Your feedback has been sent.</P>";
> > > echo "</BODY></HTML>";
> > >
> > >
> > >
> > >
> > > ?>
> > >
> > >
> > > ----- Original Message -----
> > > From: "John Wards" <j.wards@sportnetwork.net>
> > > To: "Meltem Demirkus" <mdemirkus@momentum-dmt.com>
> > > Cc: <php-general@lists.php.net>
> > > Sent: Tuesday, September 17, 2002 4:40 PM
> > > Subject: Re: [PHP] mail() question
> > >
> > >
> > > > Meltem
> > > >
> > > > What is you system set up? OS etc?
> > > >
> > > > Cheers
> > > > John Wards
> > > > SportNetwork.net
> > > > ----- Original Message -----
> > > > From: "Meltem Demirkus" <mdemirkus@momentum-dmt.com>
> > > > To: <php-general@lists.php.net>
> > > > Sent: Tuesday, September 17, 2002 2:35 PM
> > > > Subject: [PHP] mail() question
> > > >
> > > >
> > > > > Hi,
> > > > > I am trying to send an email by using the function mail().
> > > > > Although I use in a form of mail($to, $subject, $message,
> $headers),
> > it
> > > > is
> > > > > giving this error:
> > > > > Failed to Connect
> > > > >
> > > > > So I think I am missing something ...
> > > > > Can anybody help me ?..
> > > > >
> > > > > thanks alot
> > > > >
> > > > > meltem demirkus
> > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit:
> > > > > http://www.php.net/unsub.php
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit:
> > > > http://www.php.net/unsub.php
> > > >
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >