Re: Sending email without an email server
| From: | robert mena | Date: | Mon, 19 Jul 2004 18:17:17 +0000 |
| Subject: | Re: Sending email without an email server | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191049@lists.php.net to get a copy of this message | ||
Hi jason,
I've added the SMTP to a smtp server, saved the .ini and restarted the
server with no luck.
It complains
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:"
header missing in c:\program files\apache
group\apache\htdocs\email.php on line 131
Line 131 is the end of the file (?>)
The mail command is
mail("Webmail <".$emailTo.">","[Contact]",$msg,"From:
Webmail
<webmail@domain.com> \nReply-To: ".$name."
<".$emailFrom.">\n");
Any tips ?
On Tue, 13 Jul 2004 19:20:25 +0800, Jason Wong <php-general@gremlins.biz> wrote:
>
>
> On Tuesday 13 July 2004 18:46, robert mena wrote:
>
> > I have a small script hosted in a win32/apache/php4 enviroment where I
> > do not have a local email server.
> >
> > I was wondering how could I send emails either connecting directly to
> > the mx or sending through a relay.
>
> mail() on Windows system does (only) use SMTP. Just configure your php.ini
> correctly and it should work.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
>