Forum Moderators: open

Message Too Old, No Replies

sending form data to mailin ASP

Problem with sending data in aform to mail

         

chalapathirao

8:41 pm on Apr 22, 2004 (gmt 0)

10+ Year Member



i am trying to send form data to a mail but i am getting an error "invalid class string"

i have used following code

Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = strName
Mailer.FromAddress=strEmail
Mailer.RemoteHost = "mail.example.com"
Mailer.AddRecipient "Name", "someone@example.com"
Mailer.Subject ="Query"
strMsgBody =strMsgBody & "Email:" & strEmail&vbCrLf& "Name:" & strName&vbCrLf&"Company:" & strCompany&vbCrLf&"Phone:" & strPhone&vbCrLf&vbCrLf&"Query About:" & strQuery
Mailer.BodyText = strMsgBody

do i require to install any component, or what is the problem.Please any one help me

[edited by: DrDoc at 5:35 am (utc) on April 28, 2004]
[edit reason] Examplified code [/edit]

WHeights

8:44 pm on Apr 22, 2004 (gmt 0)

10+ Year Member



Ummm.. this is a CSS forum. I'm sure someone will be able to help you though. I'm a php/cold fusion/perl coder myself. ASP is something I avoid, sorry for my unhelpful post :(

Stratus42

10:17 am on Apr 23, 2004 (gmt 0)

10+ Year Member



Yeah.. this is the CSS forum.... so I could feign ignorance but.. it seems to me you're trying to use a server object called SMTPsvg.Mailer is that installed on the server you're using?

tell me more about the error (hopefully, somebody will move this to the Microsoft forum)

What line is it telling you .. what does that line have on it?

Most servers use either CDONTS or cdosys

Lana