मैं कोडइग्निटर के माध्यम से चल रही, मेरी PHP स्क्रिप्ट से एसएमटीपी के माध्यम से ईमेल भेजने की कोशिश कर रहा हूं।PHP से मेल भेजना - मेरे अंत में त्रुटि है, या मेल सर्वर है?
डीबग आउटपुट के लिए नीचे देखें। क्या यह PHP (Unable to send email using PHP SMTP
) के साथ मेरे अंत में एक समस्या का संकेत है या उनके अंत में (hello: 250-parrot.email-provider.co.uk
- जो मुझे इंगित करेगा कि यह उनके सर्वर से जुड़ा हुआ है, क्योंकि मेरे द्वारा दर्ज वास्तविक SMTP सर्वर mail2.email-provider.co.uk
था, इसलिए ऐसा लगता है कि यह कनेक्ट और रीडायरेक्ट करता है इस parrot
चीज़ पर)।
मेरा एसएमटीपी विवरण मैंने सही होने की पुष्टि की है, लेकिन यह अभी भी कहता है कि यह पासवर्ड प्रमाणित करने में विफल रहता है - भले ही यह पासवर्ड मेरे मूल मेल क्लाइंट में काम करता है।
मैं अपनी साइट नाम और प्रदाता का नाम बदल दिया है (मैं नाम और शर्म की बात है नहीं करना चाहता था अगर यह मेरी गलती थी!):
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
आपका वास्तविक PHP कोड कैसा दिखता है? और विशेष रूप से वह हिस्सा जहां आपने प्रमाणीकरण सेट किया था। – Oldskool