CodeIgniter Forums
Unable to send email at Windows Server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Unable to send email at Windows Server (/showthread.php?tid=23317)



Unable to send email at Windows Server - El Forum - 10-06-2009

[eluser]eshban[/eluser]
Hi,

I have a windows server and my website is in codeigniter. Everything is working fine except email.

I have tried the following protocols

1) MAIL
2) SMTP



1) When I use MAIL Protocol, i got the following error.

PS: In the below error messages, I have replaced the original domain name with 'abc'

Code:
An Error Was Encountered

Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.

From: "Your Name"
Return-Path:
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?_CodeIgniter_Rocks_Socks_?=
Hello WWorld


2) When I use SMTP, I got the following error.

Code:
An Error Was Encountered

The following SMTP error was encountered: 10060 A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Unable to send data: AUTH LOGIN
Failed to send AUTH LOGIN command. Error:
Unable to send data: MAIL FROM:

from:

The following SMTP error was encountered:
Unable to send data: RCPT TO:

to:

The following SMTP error was encountered:
Unable to send data: DATA

data:

The following SMTP error was encountered:
Unable to send data: User-Agent: CodeIgniter Date: Wed, 7 Oct 2009 04:47:33 +0100 From: "Your Name" Return-Path: To: [email protected] Subject: =?utf-8?Q?_CodeIgniter_Rocks_Socks_?= Reply-To: "[email protected]" X-Sender: [email protected] X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <[email protected]> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hello WWorld
Unable to send data: .

The following SMTP error was encountered:
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 Oct 2009 04:47:33 +0100
From: "Your Name"
Return-Path:
To: [email protected]
Subject: =?utf-8?Q?_CodeIgniter_Rocks_Socks_?=
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0


Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Hello WWorld

Kindly help me in this regard because I am unable to solve this issue.

Best Regards,
Eshban


Unable to send email at Windows Server - El Forum - 10-06-2009

[eluser]BrianDHall[/eluser]
I suggest a googling for "setup php mail windows" - specific to your version of windows and it depends on what server software you are using.

Part of this process is configuring various directives in php.ini.


Unable to send email at Windows Server - El Forum - 10-06-2009

[eluser]eshban[/eluser]
not anyone got a chance to send mail at windows server???


Unable to send email at Windows Server - El Forum - 10-07-2009

[eluser]InsiteFX[/eluser]
Post your Windows Server IIS.

Then do a google search on it.

SMTP is setup for windows in your php.ini file.

Enjoy
InsiteFX