hi,

try this.

put it in your *.php file, where your mail() function is located.

<?php

ini_set("SMTP", "your mailserver");

ini_set("sendmail_from", "your email-adress");

?>

i got the same probs.

W2K and IIS5 don't work with the smtp

[mail function] in php.ini.



tom



"George Pitcher" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
008201c1b470$41373b00$630db092@HLATITUDE">news:008201c1b470$41373b00$630db092@HLATITUDE...
> Hi all,
>
> Doing a little testing in advance of doing the scripting next week, I
> thought I'd try the mail() function.
>
> In php.ini, I have filled in the details of my SMTP server (University
> service) and the return address and I can't see anything else to
configure.
>
> A simple script, called as a web page, contains the following script:
>
> <?php
> mail("[EMAIL PROTECTED]","Mailtest from php","message");
> ?>
>
> and when I run this, I get an 'unknown' error and i [fairly obviously]
don't
> get the email it should be sending.
>
> Is there something else to configure?
>
> I know that the smtp part is correct as I am mailing that way using both
> Lasso (NT) and Frontier (Mac) with no problems.
>
> HYCH,
>
> George in Edinburgh
>



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

Reply via email to