Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/topic.php on line 737
PHP.SU :: mail

 PHP.SU

PHP, MySQL -
PHP.SU                                      


  (1): [1]   

> : Connection Closed Gracefully.
karamba
: 17 , 2015 - 14:04:39
Post Id







: 86
-: . 2010  


: 0 ()




mail (XAMPP for Windows 5.6.14)
php.ini:

:
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"


:
;sendmail_path="C:\xampp\mailtodisk\mailtodisk.exe"


sendmail.ini:
:
; configuration for fake sendmail

; if this file doesn't exist, sendmail.exe will look for the settings in
; the registry, under HKLM\Software\Sendmail

[sendmail]

; you must change mail.mydomain.com to your smtp server,
; or to IIS's "pickup" directory. (generally C:\Inetpub\mailroot\Pickup)
; emails delivered via IIS's pickup directory cause sendmail to
; run quicker, but you won't get error messages back to the calling
; application.

smtp_server=smtp.mail.ru

; smtp port (normally 25)

smtp_port=25

; SMTPS (SSL) support
; auto = use SSL for port 465, otherwise try to use TLS
; ssl = alway use SSL
; tls = always use TLS
; none = never try to use SSL

smtp_ssl=auto

; the default domain for this server will be read from the registry
; this will be appended to email addresses when one isn't provided
; if you want to override the value in the registry, uncomment and modify

default_domain=mail.ru

; log smtp errors to error.log (defaults to same directory as sendmail.exe)
; uncomment to enable logging

error_logfile=error.log

; create debug log as debug.log (defaults to same directory as sendmail.exe)
; uncomment to enable debugging

debug_logfile=debug.log

; if your smtp server requires authentication, modify the following two lines

auth_username=my.mail@mail.ru
auth_password=my.password

; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines. do not enable unless it is required.

;pop3_server=pop.mail.ru
;pop3_username=my.mail@mail.ru
;pop3_password=my.password

; force the sender to always be the following email address
; this will only affect the "MAIL FROM" command, it won't modify
; the "From: " header of the message content

force_sender=my.mail@mail.ru

; force the sender to always be the following email address
; this will only affect the "RCTP TO" command, it won't modify
; the "To: " header of the message content

force_recipient=

; sendmail will use your hostname and your default_domain in the ehlo/helo
; smtp greeting. you can manually set the ehlo/helo name if required

hostname=mail.ru


PHP:
PHP:

  1. <?PHP
  2.  
  3. $to  = 'karamba@mail.ru';
  4.  
  5. $subject = 'Theme of letter';
  6.  
  7. $message = 'Text of letter';
  8.  
  9.  
  10. if (mail($to, $subject, $message)) echo " ";
  11. else echo " ";
  12. ?>

, " "
debug.log:
:
15.11.17 14:43:41 ** Connecting to smtp.mail.ru:25
15.11.17 14:43:42 ** Authenticating as my.mail@mail.ru
15.11.17 14:43:42 ** Disconnecting from smtp.mail.ru:25
15.11.17 14:43:42 ** Connection Closed Gracefully.
15.11.17 14:44:37 ** --- MESSAGE BEGIN ---
15.11.17 14:44:37 ** To: karamba@mail.ru
15.11.17 14:44:37 ** Subject: Theme of letter
15.11.17 14:44:37 ** X-PHP-Originating-Script: 0:contact.php
15.11.17 14:44:37 **
15.11.17 14:44:37 ** Text of letter
15.11.17 14:44:37 ** --- MESSAGE END ---
15.11.17 14:44:39 ** Connecting to smtp.mail.ru:25
15.11.17 14:44:39 ** Connected.
15.11.17 14:44:39 << 220 smtp34.i.mail.ru ESMTP ready<EOL>
15.11.17 14:44:39 >> EHLO mail.ru<EOL>
15.11.17 14:44:39 << 250-smtp34.i.mail.ru<EOL>250-SIZE 73400320<EOL>250-8BITMIME<EOL>250-PIPELINING<EOL>250-AUTH PLAIN LOGIN XOAUTH2<EOL>250 STARTTLS<EOL>
15.11.17 14:44:39 ** Authenticating as my.mail@mail.ru
15.11.17 14:44:39 >> STARTTLS<EOL>
15.11.17 14:44:39 << 220 2.0.0 Start TLS<EOL>
15.11.17 14:44:39 >> QUIT<EOL>
15.11.17 14:44:39 <<  Q MVK$WSB& HaۄvQ ?a> ߵ(i M,2 9    00Πw:Z$0
 *H
 0D1 0 UUS10U

GeoTrust Inc.10UGeoTrust SSL CA - G20
150827000000Z
160826235959Z0r1 0 URU10URUSSIAN FEDERATION10
UMoscow10U
 LLC Mail.Ru1 0 U IT10U *.mail.ru0"0
 *H
  0
 ep_& b(= Q6֬82u+Oݫ;ྵbbxXrn4Q 5N_'zYGZ`t n!?)]DRS
C9KpEWbIF*)% #wŒ}r_5 KJ~LJ]g:ZT$!Zsio+!G<\N1f~%JD9 d7.mKYa 00U0 *.mail.rumail.ru0 U0 0U0+U$0"0 http://gb[dot]symcb[dot]com/gb[dot]crl0U 00g 00?+3https://www[dot]geotrust[dot]com/resources/repos[dot][dot][dot]al0A+05 3https://www.geotrust.com/resources/repository/legal0U%0++0U#0Js9[i\=dU0W+K0I0+0http://gb[dot]symcd[dot]com0&+[dot][dot][dot]ymcb[dot]com/gb[dot]crt0
 *H
  {noCX :Sj?93tIv6p8C|2e&zrPHq'Ν"r dk_3IlpgE[W31\rtsӫŭ5j!H ZƗ\,])98G;$vf&<Z}Z-G
Wz6ehTVZT벐'RE-@dBW;Aׁ[|-Y"⭢00$$$:ܟ
(O ]0Y0A:c0
 *H
 0B1 0 UUS10U

GeoTrust Inc.10UGeoTrust Global
15.11.17 14:44:39 ** Disconnected.
15.11.17 14:44:39 ** Disconnecting from smtp.mail.ru:25
15.11.17 14:44:39 ** Disconnected.
15.11.17 14:44:39 ** Disconnected.
15.11.17 14:44:39 ** Connection Closed Gracefully.

?
 
 Top
(1): [1]
: 0 (: 0, : 0)
« »


.
.
.
 



Powered by PHP  Powered By MySQL  Powered by Nginx  Valid CSS  RSS

 
Powered by ExBB FM 1.0 RC1. InvisionExBB