Bir php mail komut dosyası yapıyorum ve bunun için phpmailer kullanıyorum. Şu hatayı alıyorum: Ölümcül hata: Eğer yöntem
Kullanımında biri d özledikTanımlanmamış yöntem nasıl düzeltilir? PHPMailer :: AddAdress()
if (empty($errors)) {
$m = new PHPMailer;
$m->isSMTP();
$m->SMTPAuth = true;
$m->SMTPdebug = 2;
$m->Host = 'smtp.gmail.com';
$m->Username = '[email protected]';
$m->Password = '******'
$m->SMTPSecure = 'tls';
$m->Port = 465;
$m->isHTML();
$m->Subject = 'Contact form submitted';
$m->Body = 'From: ' . $fields['name'] . ' (' . $fields['email'] . ')<p>' . $fields['message'] . '</p>';
$m->FromName = 'Contact';
$m->AddAdress("[email protected]", "Name");
if ($m->send()) {
header('Location: thanks.php');
die();
} else {
$errors[] = 'sorry, could not send';
}
Belki de doğru hecelemelisiniz – RiggsFolly