CodeIgniter Forums
sending mail from windows 2003 server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: sending mail from windows 2003 server (/showthread.php?tid=9364)



sending mail from windows 2003 server - El Forum - 06-23-2008

[eluser]bikuta[/eluser]
Hi I'm writing an application which requires to send notification emails. The server is a windows 2003 server (don't have a choice). What's the easiest way to send emails, as windows, unlike linux does not have sendmail.

Would I be able to use the IIS SMTP server? Is there a specific way it needs to be configured?

Btw I'm using WAMPserver to run the site.


sending mail from windows 2003 server - El Forum - 06-23-2008

[eluser]outrage[/eluser]
I used Windows servers a few years ago and had to use CDONTS.
I believe this was depracated for 2003 though and replaced with CDOSYS.

Just Google CDOSYS for more info.


sending mail from windows 2003 server - El Forum - 06-23-2008

[eluser]Raiko[/eluser]
Hello,

You should be able to. There are directions in the user guide on the Email class page that tells you how to set up SMTP for CIs email.


sending mail from windows 2003 server - El Forum - 06-23-2008

[eluser]bikuta[/eluser]
um so do I need to use CDOSYS? or can I just use an SMTP server.

Raiko: the configuration I was talking about was for configuring the server itself not CI.

If I use CDOSYS, doesn't that mean I need to use ASP page?


sending mail from windows 2003 server - El Forum - 06-26-2008

[eluser]bikuta[/eluser]
I've tried searching and I still can't find a way of using CDOSYS in PHP.

I've also tried setting up the IIS SMTP server and I keep getting timeouts:
Fatal error: Maximum execution time of 30 seconds exceeded in D:\wamp\www\system\libraries\Email.php on line 1704

How did you guys do it on windows servers? (by having a local smtp server)


sending mail from windows 2003 server - El Forum - 06-26-2008

[eluser]bikuta[/eluser]
hmm I decided to try using the normal mail() function in php and that worked!

For some reason the Email library keeps timing out when I use the built in smtp server in Windows.


sending mail from windows 2003 server - El Forum - 05-11-2009

[eluser]Iverson[/eluser]
[quote author="bikuta" date="1214482668"]hmm I decided to try using the normal mail() function in php and that worked!

For some reason the Email library keeps timing out when I use the built in smtp server in Windows.[/quote]

For some stupid *** reason, you have to add
$config['newline'] = "\r\n";
$config['crlf'] = "\r\n";