Question: |
Hello! On my site yuliaphoto.ru in the contact section there is feedback via google smtp. ON your computer (from xampp localhost) works without any problem, emails are sent. When you fill to hosting, click submit - nothing happens, just loading and stops. (on xampp php version 5.0.2), have you tried with different versions - did not help. The problem started 4 days ago, before it was tested - everything worked out with your hosting. What could be the problem? |
Answer: |
Hello. check cakn configured your script |
Question: |
\"smtp.gmail.com\", \"SMTP_port\" => \"465\", \"SMTP_email\" => \"my mail\", \"SMTP_pass\" => \"my password\", \"SMTP_type\" => \"ssl\");// Email recipient/Recipient$Receiver = \"[email protected]\";// message Subject$Subject = \"Send email from PHP\";// message Text (in HTML)$Text = $_GET[`Author`];// Attachment email - address to the file$Attachment = \";/* $mail = new KM_Mailer(server, port, user, password, type); *//* Type can be: null, tls or ssl */$mail = new KM_Mailer($SenderConfig[`SMTP_server`], $SenderConfig[`SMTP_port`], $SenderConfig[`SMTP_email`], $SenderConfig[`SMTP_pass`], $SenderConfig[`SMTP_type`]);if($mail->isLogin) { // Attach a file if($Attachment) {$mail->addAttachment($Attachment);} // Add a recipient // $mail->addRecipient(`[email protected]`); // $mail->addRecipient(`[email protected]`); /* $mail->send(From, To, Subject, Text, Header = optional) */ $SendMail = $mail->send($SenderConfig[`SMTP_email`], $Receiver, $Subject, $Text); // clear the list of recipients $mail->clearRecipients(); $mail->clearCC(); $mail->clearBCC(); $mail->clearAttachments(); //echo \"message sent successfully! \"; echo \"message sent successfully! \";} else { echo \"an error Occurred during a connection to SMTP server \"; }?> | |