Jump to content

Html Question


hairybobby

Recommended Posts

I have seen some javascript scripts which supposedly send info to an email. But they don't seem to work.

 

Most send the info to some adress in cgi bin. But I want to send info to my email at [email protected]

 

I don't want windows to open up some email window - I want the info sent from the form to my email.

 

Anyone?

Share this post


Link to post
Share on other sites

Try this:

 

'==============================

'SendSMTPEmail

'Sends an email through SMTP

'==============================

 

Public Sub SendSMTPEmail(aTo, aFrom, aSubject, aText)

Dim CDONTSMail

 

Set CDONTSMail = Server.CreateObject("CDONTS.NewMail")

 

CDONTSMail.To = aTo

CDONTSMail.From = aFrom

CDONTSMail.Subject = aSubject

CDONTSMail.Body = aText

CDONTSMail.Send

Set CDONTSMail=nothing

End Sub

Share this post


Link to post
Share on other sites

yeah the problem I'm having is many of the scripts seem to send info to a cgi bin. But I'm using hotmail.

 

I want to write mailto:[email protected]

 

I've got a feeling there is some cgi bin reference in there!

 

Oh yeah and its preferable to use javascript or VB because most of my free web space doesn't support PHP etc.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...