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
  1. Home
  2. Web Development
  3. ASP.NET
  4. email sending problem

email sending problem

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netcomsysadmin
3 Posts 3 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.
  • K Offline
    K Offline
    Kissy16
    wrote on last edited by
    #1

    Dear all, Am sending this msg regarding asp.net 1.1 email usage. My code for sending email is below. The problem it is reaching my inetpub/mailroot/queue instead of actual mail id. I have seen all my smtp server settings which are using port 25 and localhost as smtpserver.No error nothing. Can anybody resolve using asp.net 1.1 not with 2.0. I had the solution for 2.0 Code is on button click event Dim cdoconfig, cdomessage, sch sch = "http://schemas.microsoft.com/cdo/configuration/" cdoconfig = Server.CreateObject("CDO.Configuration") cdoconfig.Fields.Item(sch & "sendusing") = 2 cdoconfig.Fields.Item(sch & "smtpserver") = "localhost" cdoconfig.Fields.Update() cdomessage = CreateObject("CDO.Message") With cdoMessage .Configuration = cdoconfig .From = _txtFrom.Text .To = _txtTo.Text .Subject = _txtSubject.Text .TextBody = _txtMessage.Text .Send() End With cdomessage = Nothing cdoconfig = Nothing I tried maximum trails still am not with the right solution.Can nay body tell me if u r free.

    kissy

    A M 2 Replies Last reply
    0
    • K Kissy16

      Dear all, Am sending this msg regarding asp.net 1.1 email usage. My code for sending email is below. The problem it is reaching my inetpub/mailroot/queue instead of actual mail id. I have seen all my smtp server settings which are using port 25 and localhost as smtpserver.No error nothing. Can anybody resolve using asp.net 1.1 not with 2.0. I had the solution for 2.0 Code is on button click event Dim cdoconfig, cdomessage, sch sch = "http://schemas.microsoft.com/cdo/configuration/" cdoconfig = Server.CreateObject("CDO.Configuration") cdoconfig.Fields.Item(sch & "sendusing") = 2 cdoconfig.Fields.Item(sch & "smtpserver") = "localhost" cdoconfig.Fields.Update() cdomessage = CreateObject("CDO.Message") With cdoMessage .Configuration = cdoconfig .From = _txtFrom.Text .To = _txtTo.Text .Subject = _txtSubject.Text .TextBody = _txtMessage.Text .Send() End With cdomessage = Nothing cdoconfig = Nothing I tried maximum trails still am not with the right solution.Can nay body tell me if u r free.

      kissy

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      There could be many reason in behind.

      Kissy16 wrote:

      which are using port 25

      Please check Port is not blocked by firewall. You can try one thing : 1. Go To > IIS > Default SMTP Server > Properties 2. Go to Delivery Tab 3. Set First, Second, Third, Subsequent Retry Interval To 1 Hope this will resolve your Issue :)

      cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net My Latest Article : IIS Remote Debugging

      1 Reply Last reply
      0
      • K Kissy16

        Dear all, Am sending this msg regarding asp.net 1.1 email usage. My code for sending email is below. The problem it is reaching my inetpub/mailroot/queue instead of actual mail id. I have seen all my smtp server settings which are using port 25 and localhost as smtpserver.No error nothing. Can anybody resolve using asp.net 1.1 not with 2.0. I had the solution for 2.0 Code is on button click event Dim cdoconfig, cdomessage, sch sch = "http://schemas.microsoft.com/cdo/configuration/" cdoconfig = Server.CreateObject("CDO.Configuration") cdoconfig.Fields.Item(sch & "sendusing") = 2 cdoconfig.Fields.Item(sch & "smtpserver") = "localhost" cdoconfig.Fields.Update() cdomessage = CreateObject("CDO.Message") With cdoMessage .Configuration = cdoconfig .From = _txtFrom.Text .To = _txtTo.Text .Subject = _txtSubject.Text .TextBody = _txtMessage.Text .Send() End With cdomessage = Nothing cdoconfig = Nothing I tried maximum trails still am not with the right solution.Can nay body tell me if u r free.

        kissy

        M Offline
        M Offline
        Manas Bhardwaj
        wrote on last edited by
        #3

        Kissy16 wrote:

        cdoconfig = Server.CreateObject("CDO.Configuration")

        I am not sure why are you using CDO to do this in .Net. In .Net 1.1, you should rather use the System.Web.Mail.MailMessage do send email.

        Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        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