<% Dim strFName,strEId,strPh,strCName,strInt 'Strings for recipient, subject, boby Dim objCDOMail 'The CDO object 'First we'll read in the values entered strFName = Request.Form("name") strEId = Request.Form("email") strPh = Request.Form("Phone") strCName = Request.Form("Company_Name") strInt = Request.Form("interested") 'These would read the message subject and body if we let you enter it 'strSubject = Request.Form("subject") 'strBody = Request.Form("body") ' Both of these should be changed before you run this script. strSubject = "Case Study Enquiry - " & strCName ' This is multi-lined simply for readability strBody = "Name - "& strFName & vbCrLf &"Email Id - " & strEId & vbCrLf & "Interested in more ? " & strInt & vbCrLf strBody = strBody & "Phone - "& strPh & vbCrLf &"Organization Name - "& strCName & vbCrLf ' Some spacing: strBody = strBody & vbCrLf & vbCrLf ' A lot of people have asked how to use form data in the emails so ' I added this line to the sample as an example of incorporating form ' data in the body of the email. strBody = strBody & Request.Form("to") ' A final carriage return for good measure! strBody = strBody & vbCrLf 'Ok we've got the values now on to the point of the script. 'We just check to see if someone has entered anything into the to field. 'If it's equal to nothing we show the form, otherwise we send the message. 'If you were doing this for real you might want to check other fields too 'and do a little entry validation like checking for valid syntax etc. ' Note: I was getting so many bad addresses being entered and bounced ' back to me by mailservers that I've added a quick validation routine. If strFName = "" Or strEId = "" Then %>
** PLEASE DESCRIBE THIS IMAGE ** Home | Contact Us
The Bharat Asmita National AwardsThe Bharat Asmita National AwardsThe Bharat Asmita National AwardsThe Bharat Asmita National Awards
Recognizing excellence forRecognizing excellence forRecognizing excellence for** PLEASE DESCRIBE THIS IMAGE **
background image1

The Bharat Asmita National Awards are meant to recognize the selfless and awe inspiring feats of leaders from the field of Management Education, Journalism & Mass Media and Polities.

With the initiation of MIT-SOG and MIT-SOM earlier, we have realized that the growth of the nation lies in inspiring the next generation of Indian leaders by recognizing their potential.

** PLEASE DESCRIBE THIS IMAGE ** about the awardabout the awardworld peace centerin the mediain the media
** PLEASE DESCRIBE THIS IMAGE **
** PLEASE DESCRIBE THIS IMAGE **
www.mitsom.com
www.mitsog.com
unesco

Newsletter Subscription


Home    Newsletter Subscription
 
Newsletter Subscription Sign-in form  

 

Please fill the following form to access our case studies.
The fields marked with * are mandatory.

Name *
:
E-mail *
:
Phone
:
Name of Company *
:
Are you interested to subscribe to our Newsletter and Offers*
:
   
 
     
<% Else ' Create an instance of the NewMail object. Set objCDOMail = Server.CreateObject("CDONTS.NewMail") ' Set the properties of the object '*********************************************************** ' PLEASE CHANGE THESE SO WE DON'T APPEAR TO BE SENDING YOUR ' EMAIL. WE ALSO DON'T WANT THE EMAILS TO GET SENT TO US ' WHEN SOMETHING GOES WRONG WITH YOUR SCRIPT... THANKS '*********************************************************** ' This syntax works fine 'objCDOMail.From = "user@domain.com" ' But this gets you the appearance of a real name! objCDOMail.From = "newsletter@ilantus.com" objCDOMail.To = "newsletter@ilantus.com" objCDOMail.Subject = strSubject objCDOMail.Body = strBody ' There are lots of other properties you can use. ' You can send HTML e-mail, attachments, etc... ' You can also modify most aspects of the message ' like importance, custom headers, ... ' Check the documentation for a full list as well ' as the correct syntax. ' Some of the more useful ones I've included samples of here: objCDOMail.Cc = "marketing@ilantus.com" 'objCDOMail.Bcc = "user@domain.com;user@domain.com" 'objCDOMail.Importance = 1 '(0=Low, 1=Normal, 2=High) 'objCDOMail.AttachFile "c:\path\filename.txt", "filename.txt" ' I've had several requests for how to send HTML email. ' To do so simply set the body format to HTML and then ' compose your body using standard HTML tags. 'objCDOMail.BodyFormat = 0 ' CdoBodyFormatHTML 'Outlook gives you grief unless you also set: 'objCDOMail.MailFormat = 0 ' CdoMailFormatMime ' THIS LINE SHOULD BE UNCOMMENTED TO ACTUALLY SEND THE ' MESSAGE. PLEASE BE SURE YOU HAVE APPROPRIATE VALUES ' FOR TO AND FROM ADDRESSES AND HAVE CHANGED THE MESSAGE ' SUBJECT AND BODY BEFORE UNCOMMENTING THIS. ' Send the message! objCDOMail.Send ' Set the object to nothing because it immediately becomes ' invalid after calling the Send method. Set objCDOMail = Nothing Response.redirect "newsletter.html" End If ' End page logic %>

 

 


The Judges
Application Forms
Selection Process
Previous Year Awards
 
 
 
Feedback | FAQ's | Newsletter Subscription | Contact | Privacy Policy | Legal Copyright 2011. MITSOG
Design & developed by WhiteOrangeWorks