?
Solved

Automatic emailing

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

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

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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

719 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