Wrox Programmer Forums
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 18th, 2005, 06:28 AM
Authorized User
Join Date: Jan 2005
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to p2ptolu Send a message via Yahoo to p2ptolu
Default send e-mail to user after registration 2

i was sent a set of codes but it did not work?

but later on a friend of mine sent this to me and it worked, well i gave him the project details and he uploaded it for me, the codes are below and working with the site, but when i copied the folder to another server hosted elsewhere it did not work but it displayed this error :

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/opticalnet/hrtool1/profiles/CreateEditFn.asp, line 239

Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.

This is the code:
Sub SendThankYouMail()
        strCrLf = Chr(13) & Chr(10)
        strSender = "admin@*****.com"
        strRecipient = strEmailAddress
        strSubject = "HCDC - Thank you for registering!"
        strBody = "Dear " & strFirstName & "," & strCrLf & strCrLf
        strBody = strBody & "Thank you!" & strCrLf & strCrLf
        strBody = strBody & "We have received your completed CV." & strCrLf & strCrLf
        strBody = strBody & "Your email address and password will be used as your login name allowing you"
        strBody = strBody & " to update your CV anytime you wish. You can also visit our website regularly"
        strBody = strBody & " to view the vacancies available." & strCrLf & strCrLf
        strBody = strBody & "Please do not reply or send any message to this mail address." & strCrLf & strCrLf
        strBody = strBody & "We advice you to go through our website for loads of information on"
        strBody = strBody & " developing your career and building your organisation." & strCrLf & strCrLf
        strBody = strBody & "We wish you success." & strCrLf & strCrLf
        strBody = strBody & "Thank you for your interest in Human Capacity "
        strBody = strBody & "Development Consultants (HCDC)." & strCrLf & strCrLf

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

        objMail.From = strSender
        objMail.To = strRecipient
        objMail.Subject = strSubject
        objMail.Body = strBody

        set objMail=nothing
    End Sub

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
How to send mail Jolley_tolson PHP How-To 0 August 13th, 2007 03:38 AM
Cannot send mail rajanikrishna JSP Basics 3 March 17th, 2006 01:39 AM
Send E-mail meme2002bh Access ASP 2 September 30th, 2005 12:53 AM
send e-mail to user after registration p2ptolu Classic ASP Databases 6 April 8th, 2005 05:32 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.