[thelist] Emailing a form...using ASP!

Brian Delaney brian.delaney at mccmh.net
Thu Mar 24 12:16:59 CST 2005


You can add this to the asp code that posts the data or create a 
function and pass in your variables. The following code
is straight asp, runs on a IIS web server with CDONTS installed.


Dim objMail
    Set objMail = Server.CreateObject("CDO.Message")
    objMail.From = "validemailaddress at MCCMH.NET"
    objMail.To = ""
    objMail.Bcc = "someone at somehwere.NET"
    objMail.Subject = "Put your Subject Here " &  someaspvariable
    objMail.TextBody = "Please read this email message: " &  
someaspvariable &vbCrLf
    objMail.Send()
   Set objMail = Nothing
    

Chris Kavanagh wrote:

> Dear list!
>
> A client wants the contents of a contact form emailed to a certain 
> address.  Fine...but their hosting package only supports ASP, which 
> I've never used.  Could anyone who has a minute to spare give me a 
> starting push?
>
> Thanks!
> CK.
>

*
*
*
This message, including any attachments, is intended solely for the use of the named recipient(s) and may contain confidential and/or priveleged information.  Any unauthorized review, use, disclosure or distribution of this communication(s) is expressly prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message.


More information about the thelist mailing list