Solved

Automatic emailing

Posted on 1998-10-09
1
141 Views
Last Modified: 2013-12-25
Is there any way I could automatically email a client when a response is made to through a form.  The email information would come from a database.  So if possible I need to be able to use ASP / ODBC and MAPI perhaps

Thanks
0
Comment
Question by:ossentoo
1 Comment
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1855624
<SCRIPT RUNAT=Server LANGUAGE="VBScript">
'-------------------------------------------------------------------------------
' function      :      Send_Mail
' purpose      :      Send an automatic mail Using ASP2.0 mailobject method
' requires      :      strFrom (your mailadres may not be empty, but the adres does not have to be valid no space however)
'                        strSendTo (Adres of the receiver)
'                        strCC (Adres to also send this mail to, usefull for debugging)
'                        strSubject (This gives the subject of the mail)
'                        strBody (The main text of the body, remember a chr(10) makes a breaking space
'
'-------------------------------------------------------------------------------
Function Send_Mail( strFrom, strSendTo, strCC, strSubject, strBody )
  IF strSendTo <> "" then
    Set objMail = CreateObject("CDONTS.Newmail")
    objMail.From       = strFrom
    objMail.To             = strSendTo
    objMail.cc            = strCC
    objMail.Subject = strSubject
    objMail.Body       = strBody
    objMail.Send
    Set objMail = Nothing
      
    Send_Mail = TRUE
  ELSE
    Send_Mail = FALSE
  END IF
End Function
</SCRIPT>

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
The viewer will learn how to count occurrences of each item in an array.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now