Solved

Automatic emailing

Posted on 1998-10-09
1
147 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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. …
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

624 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