Tôi đang cố gửi email qua SMTP từ tập lệnh PHP của mình, chạy qua CodeIgniter.Gửi thư từ PHP - là lỗi ở cuối của tôi hay của Mail Server?
Xem bên dưới để biết kết quả gỡ lỗi. Đây có phải là dấu hiệu của vấn đề của tôi với PHP (Unable to send email using PHP SMTP
) hay ở cuối của họ (hello: 250-parrot.email-provider.co.uk
- điều này có nghĩa là tôi đã kết nối với máy chủ của họ, vì máy chủ SMTP thực tế tôi nhập là mail2.email-provider.co.uk
, vì vậy dường như kết nối và chuyển hướng để điều này parrot
điều).
Chi tiết SMTP của tôi mà tôi đã xác nhận là chính xác nhưng vẫn cho biết không xác thực được mật khẩu - mặc dù mật khẩu giống như vậy hoạt động trong ứng dụng khách thư gốc của tôi.
Tôi đã thay đổi tên trang web của tôi và tên của nhà cung cấp (Tôi không muốn tên-and-xấu hổ nếu đó là lỗi của tôi!):
220 parrot.email-provider.co.uk ESMTP Postfix
hello: 250-parrot.email-provider.co.uk
250-PIPELINING
250-SIZE 512000000
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN CRAM-MD5 DIGEST-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Failed to authenticate password. Error: 535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6
from: 250 2.1.0 Ok
to: 554 5.7.1 : Relay access denied
The following SMTP error was encountered: 554 5.7.1 : Relay access denied
to: 554 5.7.1 : Relay access denied
The following SMTP error was encountered: 554 5.7.1 : Relay access denied
to: 554 5.7.1 : Relay access denied
The following SMTP error was encountered: 554 5.7.1 : Relay access denied
data: 554 5.5.1 Error: no valid recipients
The following SMTP error was encountered: 554 5.5.1 Error: no valid recipients
221 2.7.0 Error: I can break rules, too. Goodbye.
The following SMTP error was encountered: 221 2.7.0 Error: I can break rules, too. Goodbye.
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
User-Agent: CodeIgniter
Date: Wed, 7 Dec 2011 13:30:16 +0000
From: "Mysite.com"
Return-Path:
To: [email protected]
Cc: [email protected]
Subject: =?utf-8?Q?The_Subject?=
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Mã PHP thực tế của bạn trông như thế nào? Và đặc biệt là phần mà bạn đặt xác thực. – Oldskool