Jump to content

Mail function


tfburges

Recommended Posts

I'm having some trouble...

 

mail.php

  $to = '[email protected]';
  $subject = 'Testing123';
  $body = 'Test';
  $headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();
  mail($to, $subject, $body, $headers);

 

php.ini:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = [email protected]

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =

; 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 =

 

error.log:

[Mon Jul 21 16:01:30 2008] [error] [client ip] PHP Strict Standards:  mail() [<a href='function.mail'>function.mail</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-4.0/DST' instead in D:\\public_html\\submit.php on line 226, referer: http://ip/index2.php

 

SMTPServer.log:

{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948 Connected to us on port 25
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 -> 220 Welcome to ESMTP Server
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 <- HELO LCMAPPSVR01
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 -> 250 Hello and welcome
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 <- MAIL FROM:<[email protected]>
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 -> 250 Address [email protected] OK
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 <- RCPT TO:<[email protected]>
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 -> 250 [email protected] Address Okay
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 <- DATA
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 -> 354 Start mail input; end with <CRLF>.<CRLF>
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 -> 250 Ok
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 <- QUIT
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948|25 -> 221 Signing Off
{21/Jul/2008 16:01:30} [2304] [Debug] 127.0.0.1:3948 Disconnected from us. Port: 25

 

Port 25 is opened btw.

 

I receive no e-mails.

 

 

(And [email protected] is obviously not my real e-mail.  I just didn't want to give it out.)

Link to comment
https://forums.phpfreaks.com/topic/115892-mail-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.