Solved

Automatic emailing

Posted on 1998-10-09
1
145 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax for query to update table 2 56
migrating to phpbb forum from vBulletin 4.2 3 97
Mobile apps - web/native or hybrid? 1 121
Getting robots.txt Error 9 57
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
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.
The viewer will learn how to count occurrences of each item in an array.

751 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