Classic ASP - How to email from a webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjeetgrang
    New Member
    • Feb 2008
    • 36

    Classic ASP - How to email from a webpage

    i m just new to Web Tech. i have to design a web page in HTML in which user enters some information in a form on that webpage , on submitting all that information passes to me on my email . Without use of outlookexpress on Client Computers. Any Solution plz
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    You need to utilise a clientside language.

    Have a look into PHP and it's mail() funciton

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      Originally posted by markusn00b
      You need to utilise a clientside language.

      Have a look into PHP and it's mail() funciton
      I sure hope you mean a server side language (like PHP, ASP, etc.)

      Ronald

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by ronverdonk
        I sure hope you mean a server side language (like PHP, ASP, etc.)

        Ronald
        Darn it!

        Yeh, server-side.

        :(

        Comment

        • manjeetgrang
          New Member
          • Feb 2008
          • 36

          #5
          I have problem in sending email In ASP with this Code . When i run it shows no error but no mail is received at other end

          Code:
          <%
          
          Set myMail=CreateObject("CDO.Message")
          myMail.Subject="Sending email with CDO"
          myMail.From="abc@abc.com"
          myMail.To="ccd@yahoo.ca"
          myMail.Bcc="dcd@yahoo.ca"
          myMail.Cc="deg@yahoo.ca"
          myMail.TextBody="This is a message."
          myMail.Send
          set myMail=nothing
          response.write(" Done ")
          %>
          Last edited by eWish; May 28 '08, 03:12 AM. Reason: Please use code tags

          Comment

          • ronverdonk
            Recognized Expert Specialist
            • Jul 2006
            • 4259

            #6
            This is the HTML and CSS forum. Your question does not belong in this forum but in the ASP forum.

            Ronald

            Comment

            • manjeetgrang
              New Member
              • Feb 2008
              • 36

              #7
              ASP/CDOSYS - E-Mail not sending

              i have problem in sending email In ASP with this Code . When i run it shows no error but no mail is received at other end i m using IIS and XP Pro using default localhost server
              Code:
                 
              <%
               
              Set myMail=CreateObject("CDO.Message")
              myMail.Subject="Sending email with CDO"
              myMail.From="abc@abc.com"
              myMail.To="ccd@yahoo.ca"
              myMail.Bcc="dcd@yahoo.ca"
              myMail.Cc="deg@yahoo.ca"
              myMail.TextBody="This is a message."
              myMail.Send
              set myMail=nothing
              response.write(" Done ")
              %>
              any suggestions
              Last edited by DrBunchman; May 27 '08, 05:08 PM. Reason: Added code tags - note the # button

              Comment

              • DrBunchman
                Recognized Expert Contributor
                • Jan 2008
                • 979

                #8
                I find the easiest way to diagnose email problems is to create a VBScript with your email code and run it on the server - it should give you a message with some idea about why it's not working.

                Also, do you have McAfee or similar software running on the server? Some firewalls or virus scanners have a default configuration which can prevent mail from sending.

                Let me know how you get on,

                Dr B

                Comment

                • DrBunchman
                  Recognized Expert Contributor
                  • Jan 2008
                  • 979

                  #9
                  Merged threads.

                  MOD

                  Comment

                  • manjeetgrang
                    New Member
                    • Feb 2008
                    • 36

                    #10
                    Originally posted by DrBunchman
                    I find the easiest way to diagnose email problems is to create a VBScript with your email code and run it on the server - it should give you a message with some idea about why it's not working.

                    Also, do you have McAfee or similar software running on the server? Some firewalls or virus scanners have a default configuration which can prevent mail from sending.

                    Let me know how you get on,

                    Dr B
                    A very special Thanks to Dr. Bunchman

                    My Mccafee was killing my mails. But what if the host server has such kind of softwares. Any suggestions

                    Comment

                    • DrBunchman
                      Recognized Expert Contributor
                      • Jan 2008
                      • 979

                      #11
                      Glad to help :-)

                      McAfee has a setting which says something like:

                      "Prevent from mass-mailing worms on Port 25"

                      Which is what is preventing you from sending mail. You will need to check with your host but you'll probably find that they will have a dedicated mail server which you can use rather than the default smtp server.

                      If you are installing on your own (or company) servers and you wish to use the default smtp then you can either turn this setting off or use a different port to send your mail.

                      Hope this helps,

                      Dr B

                      Comment

                      Working...