Sorry for the late reply - the MsSQL worm of late knocked out my email :(

So, your PHP server is offsite. What kind of access to this machine do you
have? Is it simply FTP/HTTP? If so, your options will be limited.

If you don't have access to PHP.INI, you could use the ini_set() command:

ini_set("SMTP", "newvalue");
ini_set("sendmail_from","[EMAIL PROTECTED]");

You would have to do that each time you wanted to send mail.

It is possible (if the host is using Apache) you can set up a ".htaccess"
file (you'll have to change that in the config because windows hates dot
filenames) to change the values there. The syntax is like php_value, I
don't use it enough to remember exactly what it wants.

Debugging would most likely require some kind of administrative access to
either the web server or the mail server. Most likely the mail server. I
have had relay issues abound with Exchange servers (even when set to their
DEFAULT relay capable status, stupid *stupid* Microslop). I gave up and
just pointed it to my linux box instead. Worked fine for internal emails,
though (i.e. for domains Exchange handled).

-Dash

Acid absorbs 47 times it's weight in excess Reality.

On Sat, 25 Jan 2003, Alex Davis wrote:

> Is there a way to debug the script on remote server?
>
>
> "Dash McElroy" <[EMAIL PROTECTED]> wrote in message
> news:<[EMAIL PROTECTED]>...
> > Alex,
> >
> > You have to point it at your ISP's SMTP server (assuming this is for
> > home). Check your mail program for your SMTP server. Sendmail is a
> > unix thing, although there are similar programs available for Windows,
>
> > your best bet is to use an existing server. Mail from unknown sources
> > is likely to be rejected or declared "spam". Your PHP.INI file holds
> > the key. Change it (and the mail from value) and restart your web
> > server.
> >
> > -Dash
> >
> > A physicist is an atom's way of knowing about atoms.
> >             -- George Wald
> >
> > On Fri, 24 Jan 2003, Alex Davis wrote:
> >
> > > I followed the instructions in a php manual to write a script that
> > > will send emails using mail() function.  Only one problem, where is
> > > my sendmail program on windows XP. Or what do i need to configure in
>
> > > the php.ini file?
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
>
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to