Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send mail script

Status
Not open for further replies.

andreas57

Technical User
Sep 29, 2000
110
CH
this script worked under wnt but on the new ms 2000 internet information server it doesn't work anymore.

Dim objMail
set objMail = server.createobject("SMTPsvg.Mailer")
objMail.FromName = sFromEmail
objMail.FromAddress = sFromEmail
objMail.RemoteHost = sEmailServer
objMail.AddRecipient sToEmail, sToEmail
objMail.Subject = sSubject
objMail.BodyText = sText
if objMail.SendMail then
SendEmail = ""
else
' Message send failure
SendEmail = objMail.Response
end if
Set objMail = nothing

i always get the error: page cant be displayed server failure 500

andreas owen
aowen@swissonline.ch
 
I am not sure I really understand the underlying "stuff" with these types of things but do you know if your new version of the server supports the SMTPsvg object.

I use interdev and it has a CDONTS mail object in the toolbox and you can tell if your server has the support for it if the "intellisense" lists popup for the object. That is all I know about how to tell if the server supports the object.

I think I would look into that, I just wish I could tell you where to look, but I just don't know.
Crystal
crystalized_s@yahoo.com

--------------------------------------------------

Experience is one thing you can't get for nothing.

-Oscar Wilde

 
As I recall the that is the SMTP object from serverobjects.com they have a test tool on their site to test to make sure it is properly setup. Your code looks right though from what I see.

Steve Hagerman
Admin@Advancedisp.com
I did it my way!
 
To further make the wters murky - you can have CDONT on your server, but the SMTP service could be down or not installed. If you have your virtual server running in a seperate memory space then you also might not be able to 'see' CDONTS properly - there is a problem on IIS 4 and NT4 with not having access to certain parts of the metabase if your virtual server is running in its own memory space.

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top