my PHP script:
Expand|Select|Wrap|Line Numbers
- <?php
- $to = "jmattie@sympatico.ca";
- $subject = "PHP Mail Test";
- $body = "Testing.\n .
- This is a basic text PHP Mail Function test";
- $headers .= 'From: no-reply@image_ctrl.ca' . "\n";
- if (mail($to, $subject, $body, $headers)) {
- echo("<p>Mail sent to $to</p>");
- } else {
- echo("<p>Message delivery failed</p>");
- }
- ?>
Expand|Select|Wrap|Line Numbers
- [mail function]
- ; For Win32 only.
- SMTP = localhost
- smtp_port = 25
- ; For Win32 only.
- sendmail_from = me@example.com
- ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
- sendmail_path = "/usr/sbin/sendmail -t -i"
- ; Force the addition of the specified parameters to be passed as extra parameters
- ; to the sendmail binary. These parameters will always replace the value of
- ; the 5th parameter to mail(), even in safe mode.
- ;mail.force_extra_parameters =
please help... this is driving me crazy.
thanks