SwiftMailer crashes IIS SMTP
Moderators: Chris Corbyn, General Moderators
SwiftMailer crashes IIS SMTP
I have the same code running on a linux, bsd and windows box and sending mail with the normal mail() function just doesn't seem to work on windows very well, so I thought Swift might solve the problem.
I just installed swift mailer on my laptop (xp pro) where i have WAMP running and do development
and i have IIS installed - smtp is on, but iis web server off
I ran the swift test page
it sends the email just fine, but i get a window that pops up saying that the IIS has encountered a problem and needs to close
anybody know what might be causing this?
Also, is it ok to just use localhost as the smtp server?
It would certainly make it easier to maintain the code on multiple machines
thanks
hampton
I just installed swift mailer on my laptop (xp pro) where i have WAMP running and do development
and i have IIS installed - smtp is on, but iis web server off
I ran the swift test page
it sends the email just fine, but i get a window that pops up saying that the IIS has encountered a problem and needs to close
anybody know what might be causing this?
Also, is it ok to just use localhost as the smtp server?
It would certainly make it easier to maintain the code on multiple machines
thanks
hampton
maybe related to http://support.microsoft.com/default.as ... s;KB827214 ?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
feyd | Please use
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
PHP Version 5.1.6
just downloaded swift today 2.1.16
just used the test page that came with swift and put in my infoCode: Select all
<?php
require('include/Swift.php');
require('include/Swift/Connection/SMTP.php');
$mailer = new Swift(new Swift_Connection_SMTP('localhost'));
if ($mailer->isConnected()) //Optional
{
//Sends a simple email
$mailer->send(
'"To" <hampton@mydomain.com>', //used real domain
'"From" <hampton@mydomain.org>',//used real domain
'Some Subject',
'Message here'
);
//Closes cleanly... works without this but it's not as polite.
$mailer->close();
}
else echo "The mailer failed to connect. Errors: <pre>".print_r($mailer->errors, 1)."</pre><br />
Log: <pre>".print_r($mailer->transactions, 1)."</pre>";
?>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US