I purchased PHPMail a couple of weeks ago. Using "WAMP" server on my laptop for dreamweaver non production websites. I tested your Mail Form using Outlook.com (Live.com) and Gmail.com. I attempted to send a message from my contact form but got errors regarding the "Headers Can't be Changed" from my PHP error log. I attempted to use SMTP method to send.
My WAMP server, installed on my home laptop, has OPEN SSL enabled but no formal security certificate assigned to it yet and enabled mail modules through PHP 5.6.31, Apache 2.4.27 i'm using Dreamweaver CS 6 (2012). I understand that deprecation of MYSQL keywords etc. will be happening down the road and future changes to PHP.
Outlook (Live.Com) uses "STARTTLS" at port 587, and GMAIL uses SSL 486 or TLS at 587. Trying to figure out if the error i'm getting is due to an issue with not having a Certificate in place so that message relaying can be authenticated and allowed through secure channels or if it's an Error with the PHPForm.
Appreciate your help and what I need to do so that my web contact form can send to my Outlook or Gmail email. Thanks.
Here's some of the error detail below:
2018-03-01 19:40:02 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP g3sm3431411ioj.6 - gsmtp 2018-03-01 19:40:02 CLIENT -> SERVER: EHLO localhost 2018-03-01 19:40:02 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2601:249:501:ced5:f587:ea79:70bc:b9a1] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 2018-03-01 19:40:02 CLIENT -> SERVER: STARTTLS 2018-03-01 19:40:02 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS ( ! ) Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in C:\wamp\www\Hair Salon\dwzMail\class.smtp.php on line 344 Call Stack # Time Memory Function Location 1 0.0006 148832 {main}( ) ...\The-Hair-Salon.php:0 2 0.0126 636576 dwzMail->Execute( ) ...\The-Hair-Salon.php:20 3 0.0133 641248 dwzMail->SendMail( ) ...\dwzMail.php:493 4 0.0215 1100672 PHPMailer->send( ) ...\dwzMail.php:1240 5 0.0227 1106768 PHPMailer->postSend( ) ...\class.phpmailer.php:1061 6 0.0227 1107120 PHPMailer->smtpSend( ) ...\class.phpmailer.php:1157 7 0.0227 1107696 PHPMailer->smtpConnect( ) ...\class.phpmailer.php:1312 8 0.3055 1239664 SMTP->startTLS( ) ...\class.phpmailer.php:1444 9 0.3302 1239832 stream_socket_enable_crypto ( ) ...\class.smtp.php:344
( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\Hair Salon\dwzMail\class.smtp.php:344) in C:\wamp\www\Hair Salon\dwzMail\dwzMail.php on line 530 Call Stack # Time Memory Function Location 1 0.0006 148832 {main}( ) ...\The-Hair-Salon.php:0 2 0.0126 636576 dwzMail->Execute( ) ...\The-Hair-Salon.php:20 3 2.1020 1219608 header ( ) ...\dwzMail.php:530
( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\Hair Salon\dwzMail\class.smtp.php:344) in C:\wamp\www\Hair Salon\dwzMail\dwzMail.php on line 531 Call Stack # Time Memory Function Location 1 0.0006 148832 {main}( ) ...\The-Hair-Salon.php:0 2 0.0126 636576 dwzMail->Execute( ) ...\The-Hair-Salon.php:20 3 2.1525 1219632 header ( ) ...\dwzMail.php:531
Jay Hill [email protected] |
|
|