Reply
Does objSendMail work with Netscape ?
Old 10-01-2004, 03:18 PM Does objSendMail work with Netscape ?
VegaLA's Avatar
Skilled Talker

Posts: 64
Hi all,
I have this code below in a ASP file. I also have a html file as a form with a few
textboxes for users to complete. On hitting the submit button it should email to me email address but for some reason its not working. I can't figure out if the code is wrong or if Netscape just wont co-operate. I know I can't use the sendobject in Access with Netscape but had hoped this method would work ?

strTo = "test@tester.com"


Set objSendMail = CreateObject("CDONTS.NewMail")
objSendMail.From = strFrom
objSendMail.To = strTo
objSendMail.Subject = strSubject
objSendMail.Body = strBodyT

objSendMail.BodyFormat = CdoBodyFormatText
objSendMail.MailFormat = CdoMailFormatMime
objSendMail.Importance = CdoNormal

objSendMail.Send

Thanks in advance,
Mitch....
VegaLA is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 10-01-2004, 08:10 PM
vivekar's Avatar
Webmaster Talker

Posts: 537
ASP files are run using a webserver.
Are you using PWS or IIS?

ASP code does not depend on the browser, except when you use client-side vbscript.

Netscape is gone.

Use Firefox instead. http://www.spreadfirefox.com
__________________
| Submit URL at All the Websites Directory
| Get Certified in Web Design
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Old 10-04-2004, 11:37 AM
VegaLA's Avatar
Skilled Talker

Posts: 64
Well I tried running it from my PC using PWS (In the inetpub folder) then I put it on the Webserver and I got this error message.

Microsoft VBScript runtime error '800a01ad'

ActiveX component can't create object: 'CDONTS.NewMail'

/ProjSitePages/intranet/remove.asp, line 41

Aparantly I need to turn something on with IIS... can anyone please shed some light on this please ?

Thanks in advance,

Mitch....

Last edited by VegaLA : 10-04-2004 at 01:33 PM.
VegaLA is offline
Reply With Quote
View Public Profile
 
Old 10-04-2004, 01:35 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Sounds like your webhost doesn't use CDONTS, you'll need to check with them as to what mail components they support.
Anacrusis is offline
Reply With Quote
View Public Profile Visit Anacrusis's homepage!
 
Old 10-04-2004, 03:47 PM
VegaLA's Avatar
Skilled Talker

Posts: 64
Yep. We are hosting the site ourselves. We have Win2003 server which we use as the webserver running IIS 6.0. From what I understand there is an option I need to change to allow the webserver to use CDONT.

Mitch.....
VegaLA is offline
Reply With Quote
View Public Profile
 
Old 10-04-2004, 03:54 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Oh, ok... with WIN 2003 CDONTS was depreciated and you'll need to use CDO instead
Anacrusis is offline
Reply With Quote
View Public Profile Visit Anacrusis's homepage!
 
Old 10-04-2004, 05:06 PM
VegaLA's Avatar
Skilled Talker

Posts: 64
Ahhh I see... OK.. i'll look into that.

Thanks for your help on this.

Mitch...
VegaLA is offline
Reply With Quote
View Public Profile
 
Old 10-04-2004, 08:04 PM
VegaLA's Avatar
Skilled Talker

Posts: 64
OK... tried looking for information on using CDO but Windows 2003 server was'nt much help. I have also been advised to use JMail instead. I looked it up on google and downloaded JMail but what I got was a folder full of .java files and even the readme files did'nt make much sense to me, i'm afraid i'm not a java programmer !!

Is there any way I can get an html form to email information from the form textfields once the user clicks the submit button ?

Best regards,
Mitch...
VegaLA is offline
Reply With Quote
View Public Profile
 
Old 10-04-2004, 08:40 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Maybe this will help you out: Sending Emails in ASP using CDO

ASPMail is another good component to use.
Anacrusis is offline
Reply With Quote
View Public Profile Visit Anacrusis's homepage!
 
Old 10-04-2004, 09:40 PM
vivekar's Avatar
Webmaster Talker

Posts: 537
Another great website for ASP and ASP.NET is ASPIN

try at
http://aspin.com/func/search?tree=as...=all&x=13&y=11
__________________
| Submit URL at All the Websites Directory
| Get Certified in Web Design
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Old 10-05-2004, 01:32 PM
VegaLA's Avatar
Skilled Talker

Posts: 64
Thank you.. ASPMail looks like it works but.. the version is out of date...hence this message..

Mail send failure. Error was This evaluation component has expired.

but it looks like the system itself worked so all I need do is find a .dll file that is currently working. Thanks so much for your assistance with this !!! The instructions on the webpage were very easy to follow for someone with limited knowledge such as myself !!

Best regards,
Mitch....

Last edited by VegaLA : 10-05-2004 at 05:23 PM.
VegaLA is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Does objSendMail work with Netscape ?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.18983 seconds with 13 queries