I don't think CDO is installed by default unless you have a Server OS.

Signature
Phil Wilson
[MVP Windows Installer]
Hi,
CDO is working fine, the problem seems to be using authentication. I
think I may be using the SMTP server settings incorrectly.
If I send an email with a username and password how does the SMTP server
authenticate the user? Is there a list somewhere where I can add users? If
I allow anonymous access then everything works as i should, but I don't want
to allow just anyone to send email through my server..
Any ideas or tutorials on how to correctly set up the IIS SMTP server?
John
> I don't think CDO is installed by default unless you have a Server OS.
> > Ok, I've checked the link you gave me michael, and have coded that into my
[quoted text clipped - 53 lines]
> >
> > aMessage.BodyFormat = MailFormat.Text;
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"]
> > = ipAddr2[0].ToString();
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverpo
> > rt"] = 25;
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"]=
> > 2;
> >
[quoted text clipped - 33 lines]
> >
> > }
Phil Wilson - 15 Apr 2004 17:59 GMT
Search for "authenticated SMTP", see if that helps.

Signature
Phil Wilson
[MVP Windows Installer]
> Hi,
>
[quoted text clipped - 71 lines]
> > >
> > > aMessage.BodyFormat = MailFormat.Text;
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"]
> > > = ipAddr2[0].ToString();
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverpo
> > > rt"] = 25;
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"]=
> > > 2;
> > >
[quoted text clipped - 33 lines]
> > >
> > > }
John Young - 15 Apr 2004 18:42 GMT
Right, I got it working by using a seperate smtp server, instead of using
the IIS SMTP Server. Now all I'm trying to do is detect whether the pc the
app is running on is connected to the net. Any ideas?
Thanks
John
> Search for "authenticated SMTP", see if that helps.
> > Hi,
[quoted text clipped - 27 lines]
> > > >
> > > > aMessage.BodyFormat = MailFormat.Text;
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"]
> > > > = ipAddr2[0].ToString();
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverpo
> > > > rt"] = 25;
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"]=
> > > > 2;
> > > >
[quoted text clipped - 34 lines]
> > > >
> > > > }
Phil Wilson - 21 Apr 2004 22:58 GMT
For the internet, there's:
[DllImport("wininet.dll")]
public static extern bool InternetGetConnectedState(int lpdwFlags, int res);
Will that do the job?

Signature
Phil Wilson [MVP Windows Installer]
----
> Right, I got it working by using a seperate smtp server, instead of using
> the IIS SMTP Server. Now all I'm trying to do is detect whether the pc the
[quoted text clipped - 36 lines]
> > > > >
> > > > > aMessage.BodyFormat = MailFormat.Text;
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"]
> > > > > = ipAddr2[0].ToString();
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverpo
> > > > > rt"] = 25;
aMessage.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"]=
> > > > > 2;
> > > > >
[quoted text clipped - 34 lines]
> > > > >
> > > > > }