![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 10 Pomógł: 0 Dołączył: 28.01.2012 Ostrzeżenie: (0%) ![]() ![]() |
Witam, mam problem z funkcą mail przy odczytywaniu kodu wyskakuje błąd "Warning: mail() [function.mail]: SMTP server response: 550 FQDN required in the envelope recipient in C:\Program Files (x86)\WebServ\httpd\testscrypt.php on line 2" macie coś godnego polecenia do prostego testowania funkcji związanych z wysyłaniem/ odbieraniem maili ? Do tej pory wszystko sprawdzałem na localhoscie przy użyciu Webserva, mam win 7 64 bitowy. Za pomoc z góry dzięki.
|
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 10 Pomógł: 0 Dołączył: 28.01.2012 Ostrzeżenie: (0%) ![]() ![]() |
Dobra zmieniłem SMTP na takie jak podałeś i wygląda to tak
php.ini mail function] ; For Win32 only. SMTP = smtp.gmail.com smtp_port = 25 ; For Win32 only. sendmail_from = karolol127@gmail.com Skrypt daje wynik Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. n3sm51539983wiz.9 in C:\Program Files (x86)\WebServ\httpd\testscrypt.php on line 2 Pobrałem PHPMailer ze strony podanej wyżej (http://phpmailer.worxware.com/) i chce go zainstalować pomoże ktoś ? Mam niby wkleić gdzieś 1 plik ale nie rozumiem czy do folderu czy to jakiegoś pliku. "Installation: Copy class.phpmailer.php into your php.ini include_path. If you are using the SMTP mailer then place class.smtp.php in your path as well." Szukam cały dzień i trafiłem na podobny problem u jakiegoś gościa. Pobrałem PHPMailer v5.1 (http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6/PHPMailer%20v5.1/). Skopiowałem plik class.phpmailer.php do folderu w którym mam pliki php testowane na localhoscie. Kod skryptu wysyłającego maila wygląda następująco:
Plik php.ini wygląda tak: [mail function] ; For Win32 only. SMTP = smtp.gmail.com smtp_port = 587 ; For Win32 only. sendmail_from = karolol127@gmail.com ; Windows: "\path1;\path2" ;include_path = ".;C:/Program Files (x86)/WebServ/includes" // tam też wrzuciłem plik class.phpmailer.php Błędy które są(mam nadzieje że ich urozmaicenie pomoże znleśc problem komuś kto się na tym zna): retrieved mailer class instantiated php mailer set phpmailer to SMTP added address to mail object about to send message SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "220 mx.google.com ESMTP y54sm74216878eef.8 " SMTP -> get_lines(): $data is "220 mx.google.com ESMTP y54sm74216878eef.8 " SMTP -> FROM SERVER:220 mx.google.com ESMTP y54sm74216878eef.8 SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250-mx.google.com at your service, [94.240.10.192] " SMTP -> get_lines(): $data is "250-mx.google.com at your service, [94.240.10.192] " SMTP -> get_lines(): $data was "250-mx.google.com at your service, [94.240.10.192] " SMTP -> get_lines(): $str is "250-SIZE 35882577 " SMTP -> get_lines(): $data is "250-mx.google.com at your service, [94.240.10.192] 250-SIZE 35882577 " SMTP -> get_lines(): $data was "250-mx.google.com at your service, [94.240.10.192] 250-SIZE 35882577 " SMTP -> get_lines(): $str is "250-8BITMIME " SMTP -> get_lines(): $data is "250-mx.google.com at your service, [94.240.10.192] 250-SIZE 35882577 250-8BITMIME " SMTP -> get_lines(): $data was "250-mx.google.com at your service, [94.240.10.192] 250-SIZE 35882577 250-8BITMIME " SMTP -> get_lines(): $str is "250-STARTTLS " SMTP -> get_lines(): $data is "250-mx.google.com at your service, [94.240.10.192] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS " SMTP -> get_lines(): $data was "250-mx.google.com at your service, [94.240.10.192] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS " SMTP -> get_lines(): $str is "250 ENHANCEDSTATUSCODES " SMTP -> get_lines(): $data is "250-mx.google.com at your service, [94.240.10.192] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES " SMTP -> FROM SERVER: 250-mx.google.com at your service, [94.240.10.192] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS " SMTP -> get_lines(): $data is "220 2.0.0 Ready to start TLS " SMTP -> FROM SERVER:220 2.0.0 Ready to start TLS Warning: stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto in C:\Program Files (x86)\WebServ\httpd\class.smtp.php on line 197 Ten post edytował karolius 30.01.2012, 16:23:15 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 03:02 |