Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. "ASP" Email sending problem.. [modified]

"ASP" Email sending problem.. [modified]

Scheduled Pinned Locked Moved Web Development
htmlcomsysadminwindows-admindata-structures
10 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    D Manivelan
    wrote on last edited by
    #1

    Hi Friends, I am using IIS Server with ASP, my mail code doesn't work whenever i send a mail it will go only Queue's folder it will not deliver.., but this code work well in my friend PC. my OS Windows XP Here My code <% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="dmanivelan@siminfosystems.com" myMail.To="dmanivelan@siminfosystems.com" myMail.Bcc="dmanivelan@siminfosystems.com" myMail.Cc="dmanivelan@siminfosystems.com" myMail.TextBody="Testing." & Time myMail.Send set myMail=nothing %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> </body> </html> Please Reply immediately...

    modified on Monday, March 16, 2009 11:07 AM

    T 1 Reply Last reply
    0
    • D D Manivelan

      Hi Friends, I am using IIS Server with ASP, my mail code doesn't work whenever i send a mail it will go only Queue's folder it will not deliver.., but this code work well in my friend PC. my OS Windows XP Here My code <% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="dmanivelan@siminfosystems.com" myMail.To="dmanivelan@siminfosystems.com" myMail.Bcc="dmanivelan@siminfosystems.com" myMail.Cc="dmanivelan@siminfosystems.com" myMail.TextBody="Testing." & Time myMail.Send set myMail=nothing %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> </body> </html> Please Reply immediately...

      modified on Monday, March 16, 2009 11:07 AM

      T Offline
      T Offline
      tech603
      wrote on last edited by
      #2

      See if this link helps any. http://www.hostmysite.com/support/vps/windows/smtprelay/[^] The problem almost always a minor configuration issue. Matthew Vass QA Analyst mvass@hostmysite.com http://www.hostmysite.com?utm_source=bb[^]

      D 1 Reply Last reply
      0
      • T tech603

        See if this link helps any. http://www.hostmysite.com/support/vps/windows/smtprelay/[^] The problem almost always a minor configuration issue. Matthew Vass QA Analyst mvass@hostmysite.com http://www.hostmysite.com?utm_source=bb[^]

        D Offline
        D Offline
        D Manivelan
        wrote on last edited by
        #3

        Hi, You are sending IIS configuraion IIS 6.0 but i was working with IIS 5.1. it will support IIS 5.1

        T 1 Reply Last reply
        0
        • D D Manivelan

          Hi, You are sending IIS configuraion IIS 6.0 but i was working with IIS 5.1. it will support IIS 5.1

          T Offline
          T Offline
          tech603
          wrote on last edited by
          #4

          Here is the article for IIS 5 http://support.microsoft.com/kb/310336[^] Hope this helps. Matthew Vass QA Analyst mvass@hostmysite.com http://www.hostmysite.com?utm_source=bb[^]

          D 1 Reply Last reply
          0
          • T tech603

            Here is the article for IIS 5 http://support.microsoft.com/kb/310336[^] Hope this helps. Matthew Vass QA Analyst mvass@hostmysite.com http://www.hostmysite.com?utm_source=bb[^]

            D Offline
            D Offline
            D Manivelan
            wrote on last edited by
            #5

            I Change the setting but still same problem.. mail goes to queue folder any other way..

            T 1 Reply Last reply
            0
            • D D Manivelan

              I Change the setting but still same problem.. mail goes to queue folder any other way..

              T Offline
              T Offline
              tech603
              wrote on last edited by
              #6

              It could be that your ISP is blocking mail going out from your local server, or other things really hard to say without seeing the configuration. You could however try to use an outside mail server if you have one and set CDOSYS to authenticate like the following: Set myMail = CreateObject("CDO.Message") //now set the mail server myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.yourdomain.com" //set the port myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 //set code to authenticate myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 //set the email address for authentication myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "username@yourdomain.com" //set password for authentication myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password" myMail.Subject="Sending email with CDO" myMail.From="dmanivelan@siminfosystems.com" myMail.To="dmanivelan@siminfosystems.com" myMail.Bcc="dmanivelan@siminfosystems.com" myMail.Cc="dmanivelan@siminfosystems.com" myMail.TextBody="Testing." & Time myMail.Send set myMail=nothing Let me know if that helps. Matthew Vass QA Analyst mvass@hostmysite.com http://www.hostmysite.com?utm_source=bb[^]

              D 1 Reply Last reply
              0
              • T tech603

                It could be that your ISP is blocking mail going out from your local server, or other things really hard to say without seeing the configuration. You could however try to use an outside mail server if you have one and set CDOSYS to authenticate like the following: Set myMail = CreateObject("CDO.Message") //now set the mail server myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.yourdomain.com" //set the port myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 //set code to authenticate myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 //set the email address for authentication myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "username@yourdomain.com" //set password for authentication myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password" myMail.Subject="Sending email with CDO" myMail.From="dmanivelan@siminfosystems.com" myMail.To="dmanivelan@siminfosystems.com" myMail.Bcc="dmanivelan@siminfosystems.com" myMail.Cc="dmanivelan@siminfosystems.com" myMail.TextBody="Testing." & Time myMail.Send set myMail=nothing Let me know if that helps. Matthew Vass QA Analyst mvass@hostmysite.com http://www.hostmysite.com?utm_source=bb[^]

                D Offline
                D Offline
                D Manivelan
                wrote on last edited by
                #7

                Hi, Again same problems.. mails sent in QUEUE folder

                T 1 Reply Last reply
                0
                • D D Manivelan

                  Hi, Again same problems.. mails sent in QUEUE folder

                  T Offline
                  T Offline
                  tech603
                  wrote on last edited by
                  #8

                  Ok i was getting the same issue as you when using XP and localhost for smtp relay. I think i may have missed something in my original code snippet, but i did test this on my local and got this working hopefully this will help with your issue. Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="matt@xynergypc.com" myMail.To="livenitup603@yahoo.com" myMail.TextBody="This is a message." myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 'Name or IP of remote SMTP server myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="youremailserver" 'Server port myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 'authenticate myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'email address for authentication myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "youremailaddresshere" 'email password myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "youremailpasswordhere" myMail.Configuration.Fields.Update myMail.Send set myMail=nothing

                  Matthew Vass QA Analyst mvass@hostmysite.com HostMySite.com

                  D 1 Reply Last reply
                  0
                  • T tech603

                    Ok i was getting the same issue as you when using XP and localhost for smtp relay. I think i may have missed something in my original code snippet, but i did test this on my local and got this working hopefully this will help with your issue. Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="matt@xynergypc.com" myMail.To="livenitup603@yahoo.com" myMail.TextBody="This is a message." myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 'Name or IP of remote SMTP server myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="youremailserver" 'Server port myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 'authenticate myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'email address for authentication myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "youremailaddresshere" 'email password myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "youremailpasswordhere" myMail.Configuration.Fields.Update myMail.Send set myMail=nothing

                    Matthew Vass QA Analyst mvass@hostmysite.com HostMySite.com

                    D Offline
                    D Offline
                    D Manivelan
                    wrote on last edited by
                    #9

                    Hi friend, error '80040211' "myMail.Send" /ASP/Sim File/MailCode/NewMail.asp, line 71 i am getting error this line "myMail.Send"

                    T 1 Reply Last reply
                    0
                    • D D Manivelan

                      Hi friend, error '80040211' "myMail.Send" /ASP/Sim File/MailCode/NewMail.asp, line 71 i am getting error this line "myMail.Send"

                      T Offline
                      T Offline
                      tech603
                      wrote on last edited by
                      #10

                      This usually means that your unable to send mail via that smtp relay. 1. does your email/website provider allow smtp relay? 2. do you login to your email with your full email address or just username Basically the cdosys script is working but unable to connect to the email server for what ever reason. If your mail server doesn't require authentication (although all most do) then you will not need the username/email address and password. If they do require authentication you will need to make sure that the username/email address and password are correct as well as the server name and port. If all that information is correct you may want to ensure you can send mail on port 25. To do that you can try and telnet to your mail server on port 25, if this doesn't connect try port 50. The default smtp mail port is 25, but there usually is always an alternate port such as with our company which is port 50. If neither of these work then you should contact your email provider and find out what ports they allow smtp relay on, that is if they do. Hope this helps.

                      Matthew Vass QA Analyst mvass@hostmysite.com HostMySite.com

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups