Re: Sending email without an email server
| From: | Justin Patrin | Date: | Mon, 19 Jul 2004 19:57:35 +0000 |
| Subject: | Re: Sending email without an email server | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191065@lists.php.net to get a copy of this message | ||
Set this in your php.ini:
sendmail_from = "webmail@domain.com"
On Mon, 19 Jul 2004 14:17:17 -0400, robert mena <robert.mena@gmail.com> wrote:
> 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
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> !DSPAM:40fc1472196622019318716!
>
>
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--