mage67 (mage67) wrote,
mage67
mage67

  • Mood:

Why I hate ASP

I think ASP must have been written by a 400 year old mad Tibetan monk. To set up webpage to send a simple email, in ASP you would have to write something like this:

theSchema="http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig=server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(theSchema & "sendusing")=2
cdoConfig.Fields.Item(theSchema & "smtpserver")="mail.webbrooklyn.com"
cdoConfig.Fields.Update

set cdoMessage=Server.CreateObject("CDO.Message")
cdoMessage.Configuration=cdoConfig
cdoMessage.From="jfrankel@webbrooklyn.com"
cdoMessage.To="mage67@aol.com"
cdoMessage.Subject="This is the message subject"
cdoMessage.TextBody="This is the message body"
cdoMessage.Send

Set cdoMessage=Nothing
Set cdoConfig=Nothing


in Coldfusion it would be something like this

cfmail from="#form.emailAddress#" to="mage67@aol.com" subject="#form.subject#" #form.body#
/cfmail


and in PHP it would be something like this
mail($to,$_POST['subject'],$_POST['body']);
Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 10 comments