Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Automatic emailing

Posted on 1998-10-09
1
Medium Priority
?
151 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 150 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

824 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