0
Gmail 암호를 변경 한 후에이 오류가 발생합니다. 전에 일하고 있었어.데이터베이스 오류가 발생했습니다 : codeigniter의 오류 번호 1054 알 수없는 열
데이터베이스 오류가
Error Number: 1054 Unknown column 'g-recaptcha-response' in 'field list'
INSERT INTO
tblsb_userqueries
(project_id
,username
,phone
,message
,g-recaptcha-response
) VALUES ('0', 'demo', '0000', 'test', '03AJzQfVCDrIod2TLu')
을 발생 파일 이름 : 모델/Common_model.php 줄 번호 : 8
이 내 PHPMailer 코드 : 변경 아래
<?php
require 'application/third_party/email/PHPMailerAutoload.php';
$mail = new PHPMailer;
//$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.gmail.com'; // Specify main and backup server
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = '[email protected]'; // SMTP username
$mail->Password = 'Demo123#'; // SMTP password
$mail->SMTPSecure = 'ssl'; // Enable encryption, 'ssl' also accepted
$mail->Port = 587; //Set the SMTP port number - 587 for authenticated TLS
$mail->setFrom('[email protected]', 'header name'); //Set who the message is to be sent from
$mail->addAddress('[email protected]'); // Add a recipient
$mail->WordWrap = 50; // Set word wrap to 50 characters
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
//Read an HTML message body from an external file, convert referenced images to embedded,
//convert HTML into a basic plain-text alternative body
$mail->msgHTML('Hi, This is my test email');
if(!$mail->send()) {
echo 'Message could not be sent.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
exit;
}
echo 'Message has been sent';
?>
테이블'tblsb_userqueries'에'g-recaptcha-response' 필드가 있는지 여부는? – KMS
이 쿼리를 사용하는 코드를 게시 할 수 있습니까 –
예,이 필드는 테이블에 있습니다. @KMS에 감사드립니다. 언젠가 나의 접촉 모양이 완전히 일하고 그러나 언젠가 전에 나는 나의 웹 사이트 접촉 모양에서 inbox에있는 어떤 전자 우편든지 얻지 않았다 나의 Gmail 패스워드를 바꾸었다. – UDigi