Welcome Guest, Not a member yet? Register   Sign In
sending mail from windows 2003 server
#1

[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.
#2

[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.
#3

[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.
#4

[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?
#5

[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)
#6

[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.
#7

[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";




Theme © iAndrew 2016 - Forum software by © MyBB