Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old April 17th, 2004, 06:45 AM
Authorized User
Join Date: Mar 2004
Location: Zarka, , Jordan.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default sending email

hi allz,
i want to tell u that i search the internet for sending email in my site using asp and any free components like cdo or cdonts as i think, and how to configuration the smtp.

today i use this code ( plrase notice that this code is run successfully on the internet ,but on my site it dosent )

If Len(Request.Form("txtEmail")) > 0 then

    Dim objMail
    Set objMail = Server.CreateObject("CDONTS.NewMail")

    objMail.From = "info@4guysfromrolla.com (4GuysFromRolla.com)"
    objMail.Subject = "Email attachment demo"
    objMail.AttachFile Server.MapPath("/images/new468x60.gif")
    objMail.To = Request.Form("txtEmail")
    objMail.Body = "This is a demo on sending an email with an attachment."

    Response.write("Mail was Sent<p>")

    'You should always do this with CDONTS.
    set objMail = nothing

End If

  <form method="post" id=form1 name=form1>
    Enter your email address:<br>
    <input type="text" name="txtEmail" value="<%=Request.Form("txtEmail")%>">
    <input type="submit" value="Send me an Email with an Attachment!" id=submit1 name=submit1>

and when i run the page it gives me the following error:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/asp/testm.asp, line 5


so how can i solve this problem and how can i configure the SMTP ?

thanks alot

  #2 (permalink)  
Old April 27th, 2004, 10:23 PM
Friend of Wrox
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 481
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran

hi afradoit
Server.CreateObject Failed
this is your server problem which server you are using
please check your SMTP server.

(Anything is Possible)
  #3 (permalink)  
Old April 28th, 2004, 01:13 AM
Authorized User
Join Date: Mar 2004
Location: Zarka, , Jordan.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

hi surendran,

thanks for helping.
i'm using windows 2003 enterprise edition.
i donna know how to correct it.

thanks again


Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending EMAIL charleshua BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 16 September 3rd, 2008 12:27 AM
Sending email ironchef Pro JSP 3 February 17th, 2008 10:38 PM
Sending email maitias C# 2005 2 February 17th, 2006 10:24 AM
sending email keyvanjan Classic ASP Components 1 May 9th, 2005 05:56 PM
email sending msrnivas .NET Web Services 6 June 26th, 2004 06:59 AM

All times are GMT -4. The time now is 03:07 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.