matthewking
Programmer
Hi,
Im using this to try to send a text string which contains html incase that makes a difference. But am getting this error:
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/includes/thankyou.asp, line 261
The error line is where I try to set the mailer object. Heres the code:
'Create the mailer object
Dim Mailer
Set Mailer = Server.CreateObject("SMTPsvg.Mailer"
-- Error Line
Mailer.Organization = "website.com"
Mailer.FromName = "Customer Services"
Mailer.FromAddress = "sales@website.com"
Mailer.RemoteHost = "123.123.123.123"
Mailer.Subject = "subject bleh"
Mailer.CharSet = 2
Mailer.ConfirmRead = true
Mailer.ReturnReceipt = true
Mailer.BodyText = strHTML
Mailer.ADDRecipient "Matt","matt@bleh39329932.com"
Mailer.SendMail
Set Mailer = Nothing
I cant work out why I would be getting this error, its the first time I've tried mailing something from an ASP page so I may be missing the obvious. Im pretty sure we have whats needed on the server because other developer have used it on the same server.
Thanks,
Matt.
Im using this to try to send a text string which contains html incase that makes a difference. But am getting this error:
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/includes/thankyou.asp, line 261
The error line is where I try to set the mailer object. Heres the code:
'Create the mailer object
Dim Mailer
Set Mailer = Server.CreateObject("SMTPsvg.Mailer"
Mailer.Organization = "website.com"
Mailer.FromName = "Customer Services"
Mailer.FromAddress = "sales@website.com"
Mailer.RemoteHost = "123.123.123.123"
Mailer.Subject = "subject bleh"
Mailer.CharSet = 2
Mailer.ConfirmRead = true
Mailer.ReturnReceipt = true
Mailer.BodyText = strHTML
Mailer.ADDRecipient "Matt","matt@bleh39329932.com"
Mailer.SendMail
Set Mailer = Nothing
I cant work out why I would be getting this error, its the first time I've tried mailing something from an ASP page so I may be missing the obvious. Im pretty sure we have whats needed on the server because other developer have used it on the same server.
Thanks,
Matt.