IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 28th, 2004, 09:43 AM
Jobin Jobin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 Jobin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send Mail using vbscript

Hi experts!

I'm new to vbscript, asp & IIS.

I've configured IIS in my computer and it's working fine. Every one in my local network can just type my computer's name and see my default page in their web browsers.

I've already installed smtp server in my system, but have no idea how to work on it and how to send mails using my smtp server. I've tried & searched most of the sites where I can look for a simple example or a help.

In most of the examples, I've seen (says simple again)
<%Server.CreateObject("CDONTS.NewMail")%>
but when I tried to see the page in browser, I got an error message as follows

Server object, ASP 0177 (0x800401F3)
Invalid class string
/mail.asp, line 3

What does that mean ? How can have this class installed in my system ? What r the steps. How can I send e-mails with just SMTP installed without using any activex controls ?

Can I also receive mails ?

Any help on this regard will be heighly appreciated!

Jobin!

Reply With Quote
  #2  
Old March 28th, 2004, 01:13 PM
Doug G Doug G is online now
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,713 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 m 54 sec
Reputation Power: 688
What windows? In XP and 2003, CDONTS is not installed, instead CDOSYS is installed. Search msdn for details on using the CDOSYS object.
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old April 1st, 2004, 02:44 AM
Jobin Jobin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 Jobin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs down Thank you!

Thank you very much Mr. Doug!

Though I have not tried with CDOSYS in XP, I could do what I wanted with CDONTS in my web server.

The codes I used is as follows:

Dim MailObj
Set MailObj = Server.CreateObject("CDONTS.NewMail")
MailObj.From = "Web <web@domain.com>"
MailObj.Cc = ""

MailObj.To = "weber@domain.com"
MailObj.Subject = "From Web"
MailObj.Body = "Mail from web"
MailObj.BodyFormat = 1
MailObj.MailFormat = 0
MailObj.Importance = 3
MailObj.Bcc = ""
MailObj.Attachfile "C:\path\Picturefile.gif", "Picture", 1

MailObj.Send
Set MailObj = Nothing

This worked!!! Thanx for all those who helped!!!

<b>Now may I ask if there is way to receive mails too ? Using any of these companonts ?</b>

Thanx once again for the help!
Jobin!

Last edited by Jobin : April 5th, 2004 at 09:04 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Send Mail using vbscript


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway