|
Posted by cover on 02/25/07 16:11
On 23 Feb 2007 22:07:55 -0800, "Martin Mandl - m2m tech support"
<martin.mandl@gmail.com> wrote:
>Dear Cover,
>
>mail() exists much longer than 4.1. Only thing which changed in 4.3 is
>the support for smtp_port. Have a look at the manual:
>
>http://at.php.net/manual/en/ref.mail.php
>
>It's more likely that your operating system is the problem, what are
>you using? Is the path to sendmail configured correctly? Do you have
>sendmail at all? Etc....
>
>Good luck
>
> Martin
Thanks Martin, I'm using XP on both machines and to be honest with
you, I'm not real familiar with 'sendmail'. Having read references to
it in various code snips but haven't read anything comprehensive
enough to help me understand what it is and where it is. I.e. I
haven't located a subfolder for 'sendmail' or a sendmail.exe file for
example.
My php.ini look like this:
--------------------------------------------
[mail function]
; For Win32 only.
SMTP = mail.bigfoot.com
smtp_port = 25
; For Win32 only.
;sendmail_from = admin@maint.com
-------------------------------------------
Page code looks like this:
-----------------------------------------------------------
/* > $to = stripslashes($to); */
$to = stripslashes($to)."\r\n";
$subject = stripslashes($subject);
$text = stripslashes($text);
/* > mail('$to',$subject, $text); */
mail($to, $subject, $text, "From: admin@localhosthome.com");
}
mysql_close();
------------------------------------------------------------
Again, this code works well at my home test machine.
Navigation:
[Reply to this message]
|