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. Why is mail left in the queue folder

Why is mail left in the queue folder

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netdata-structureshelp
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.
  • M Offline
    M Offline
    mahmoud mohammed
    wrote on last edited by
    #1

    :confused:Why when send mail from localhost is still on queue folder and not arrive to receiver > > > I am using ASP.NET SmtpMail to send email using the following code > > > > > > public void SendEmail(string From, string To, string Subject, > > > StringBuilder > > > Message, string Attachment, string mailFormat) > > > { > > > MailMessage mailMessage = new MailMessage (); > > > mailMessage.From = From; > > > mailMessage.To = To; > > > mailMessage.Subject = Subject; > > > mailMessage.Body = Message.ToString (); > > > > > > if(mailFormat == "T") > > > { > > > mailMessage.BodyFormat = MailFormat.Text; > > > } > > > else if(mailFormat == "H") > > > { > > > mailMessage.BodyFormat = MailFormat.Html; > > > } > > > > > > SmtpMail.SmtpServer = "10.0.0.1";//or "localhost" or "127.0.0.1" > > > SmtpMail.Send (mailMessage); > > > } > > > > > > This code executes fine without error. But the email goes and sits in > the"C:\Inetpub\mailroot\Queue" folder. > > > SMTP service is running and cdosys.dll and cdonts thanks for all

    C S 2 Replies Last reply
    0
    • M mahmoud mohammed

      :confused:Why when send mail from localhost is still on queue folder and not arrive to receiver > > > I am using ASP.NET SmtpMail to send email using the following code > > > > > > public void SendEmail(string From, string To, string Subject, > > > StringBuilder > > > Message, string Attachment, string mailFormat) > > > { > > > MailMessage mailMessage = new MailMessage (); > > > mailMessage.From = From; > > > mailMessage.To = To; > > > mailMessage.Subject = Subject; > > > mailMessage.Body = Message.ToString (); > > > > > > if(mailFormat == "T") > > > { > > > mailMessage.BodyFormat = MailFormat.Text; > > > } > > > else if(mailFormat == "H") > > > { > > > mailMessage.BodyFormat = MailFormat.Html; > > > } > > > > > > SmtpMail.SmtpServer = "10.0.0.1";//or "localhost" or "127.0.0.1" > > > SmtpMail.Send (mailMessage); > > > } > > > > > > This code executes fine without error. But the email goes and sits in > the"C:\Inetpub\mailroot\Queue" folder. > > > SMTP service is running and cdosys.dll and cdonts thanks for all

      C Offline
      C Offline
      chakkara2003
      wrote on last edited by
      #2

      is there any error in ur page? coolsweety

      1 Reply Last reply
      0
      • M mahmoud mohammed

        :confused:Why when send mail from localhost is still on queue folder and not arrive to receiver > > > I am using ASP.NET SmtpMail to send email using the following code > > > > > > public void SendEmail(string From, string To, string Subject, > > > StringBuilder > > > Message, string Attachment, string mailFormat) > > > { > > > MailMessage mailMessage = new MailMessage (); > > > mailMessage.From = From; > > > mailMessage.To = To; > > > mailMessage.Subject = Subject; > > > mailMessage.Body = Message.ToString (); > > > > > > if(mailFormat == "T") > > > { > > > mailMessage.BodyFormat = MailFormat.Text; > > > } > > > else if(mailFormat == "H") > > > { > > > mailMessage.BodyFormat = MailFormat.Html; > > > } > > > > > > SmtpMail.SmtpServer = "10.0.0.1";//or "localhost" or "127.0.0.1" > > > SmtpMail.Send (mailMessage); > > > } > > > > > > This code executes fine without error. But the email goes and sits in > the"C:\Inetpub\mailroot\Queue" folder. > > > SMTP service is running and cdosys.dll and cdonts thanks for all

        S Offline
        S Offline
        SABhatti
        wrote on last edited by
        #3

        afaik you your code is fine if you are getting mail in queue. to send it you have to have a live internet connection and valid smtp server. if it is in queue nothing is wrong with the code you need to check smtp server setting.. or relay options in IIS -----

        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