PDA

View Full Version : E-mail / E- card via Flash


Dizzy_dev
09-09-2002, 05:10 AM
Hi all experts, i need your help in some scripting.

I am doing a E-learning components using Flash 5. I need to allow students sent a E-card and e-mails for rewarding them after completing the E-lessons. Can i use ASP for coding the script? any example ? The Lesson in actionscript.org is using PhP which i am unfamiliar with.

I have also another problem (Although not actionscripting i think) Can i program to tell the server to automatically sent a E-card / E-mail to students during their birthday as greeting ?

Thanks~ :D

It would be best if there would be some exaples for reference ... Again thanks so much ~ !

Jesse
09-09-2002, 03:58 PM
Try this code:
<%@ Language = "VBScript" %>
<%
'Send mail script by Jesse Stratford, jesse@actionscript.org
'This script is just a mock up and may contain bugs.
'This script is supplied with NO WANRATEE or guarantees of any kind.

Dim objNewMail
Set objNewMail = Server.CreateObject("CDONTS.NewMail")

objNewMail.To = "you@yoursite.com"
objNewMail.From = Request.Form("email")
objNewMail.Subject = "Mail Via Website"
objNewMail.Body = Request.Form("comment") & " -- from " & Request.Form("name")
objNewMail.Send

Set objNewMail = Nothing

Response.Write "&error=Mail Sent. Thank you"
%>
You may need to adapt the variable names, as I wrote this code for another application which may not use the same variable names as my PHP tute.