On Mon, 19 Jul 2004 10:42:54 +0200, "Cas" <fhffh@rt.sp> wrote:
[color=blue]
>I run IIS 5.0 on windows 2000 server sp4. This server is connected to the
>ISP with adsl modem.
>I put ASP code (found on internet) in order to send emails with CDO: (see
>below)
>When running that page, i get the error: "HTTP 500 - Internal server error
>Internet Explorer"
>No idea why.[/color]
FAQ:
Why do I get a 500 Internal Server error for all ASP errors?
http://www.aspfaq.com/show.asp?id=2109
[color=blue]
>I wonder whether the first 4 lines must be between comments.
>Another point: do i need to install SMTP service of my IIS server, or (what
>i think) can i use the SMTP service of my ISP?[/color]
Provided you have access to send through it, you can use any SMTP
server with CDO. That's what cdoSMTPServer is used for.
Jeff
[color=blue]
>Thanks
>Cas
>
>
><!--
> METADATA
> TYPE="typelib"
> UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
> NAME="CDO for Windows 2000 Library"
>-->
><%
> Set cdoConfig = CreateObject("CDO.Configuration")
> With cdoConfig.Fields
> .Item(cdoSendUsingMethod) = cdoSendUsingPort
> .Item(cdoSMTPServer) = "smtp_ of_ my_ ISP"
> .Update
> End With
> Set cdoMessage = CreateObject("CDO.Message")
> With cdoMessage
> Set .Configuration = cdoConfig
> .From = "fromme@eretr.be"
> .To = "toyou@dfghdfg.be"
> .Subject = "test with CDO"
> .TextBody = "it works"
> .Send
> End With
> Set cdoMessage = Nothing
> Set cdoConfig = Nothing
>%>
>[/color]