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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...