+ Reply to Thread
Results 1 to 4 of 4

Thread: Sending HTML form info to ASP mailing form? Please Help!

  1. #1
    Full Member Steveo31 is on a distinguished road
    Join Date
    Jan 2004
    Posts
    40

    Sending HTML form info to ASP mailing form? Please Help!

    Hey all-

    I have seen a few sites that use this method as opposed to a straight up "mailto:_____" in the action of the form method:
    PHP Code:
    <FORM METHOD="post" ACTION="mailto:you@email.com" ENCTYPE="text/plain"
    Instead, I have seen this way:
    PHP Code:
    <form action="invoicesub.asp" method="POST" name="register" align="center"
    I assume in the above example, they send the info in the form to the "invoicesub.asp" which then emails it, correct? Would one of you be kind enoughto send a link or a sample with commentary? I have searched, but haven't found anything.

    I don't know much ASP, or any for that matter, I know some PHP, and a bit of HTML. Thanks all.

    -Steve

  2. #2
    Newbie Dream is on a distinguished road
    Join Date
    Jan 2004
    Location
    Ohio
    Posts
    3
    You can use ASP to send emails and it work much better than the mailto: method.

    Here's an example using CDONTS to send an HTML email:


    PHP Code:

    Dim objMail
    Set objMail 
    Server.CreateObject("CDONTS.NewMail")
    objMail.From "webmaster@site.com"
    objMail.Subject "Email Subject Here"
    objMail.To "Send to email"
    objMail.Body "<html>" &_
            
    "<BODY> Email Message Here</body></html>"
    objMail.BodyFormat 0
    objMail
    .MailFormat 0
    objMail
    .Send
    set objMail 
    nothing 

  3. #3
    Newbie desman is on a distinguished road
    Join Date
    Jan 2004
    Posts
    1
    If itís on a Win 2003 server you can no longer use CDONT (well it doesnít come installed by default) so CDO is the alternative.
    PHP Code:
    Dim objMail

    Set objMail 
    CreateObject("CDO.Message"

    objMail.From "webmaster@domain.com"
    objMail.To "user@domain.com"
    objMail.Subject "Welcome to our service"
    objMail.TextBody "Testing Email services on server."

    objMail.Send
    Set objMail 
    Nothing 
    Hope this helps

  4. #4
    Full Member Steveo31 is on a distinguished road
    Join Date
    Jan 2004
    Posts
    40
    Ahh thanks all

    Just curious, what does CDO and CDONT stand for?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts