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. SMTP configuration

SMTP configuration

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netcomsysadmin
6 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.
  • T Offline
    T Offline
    Talal Sultan
    wrote on last edited by
    #1

    Hi, This is not exactly an ASP.NET question but I didn't know where else to post it. Since it is somehow ASP.NET-related, I thought this was the best forum for it. I am wondering if there is a way to configure the way messages are being sent by the local SMTP. I don't want to do so by code, so I would like to know if there is some configuration file with SMTP parameters that I can change. I found that such a file exists for Biztalk (http://msdn.microsoft.com/en-us/library/aa560648.aspx[^]) but since i'm not familiar with all this stuff, I don't know if it also applies to the local SMTP server (the one that can be configured through IIS console) Basically what I need to do is to be able to force a certain encoding of the subject of the emails without having to change my code, in other words, I need to find an alternative for mail.SubjectEncoding = System.Text.Encoding.ASCII; Is there any way to do that? Thanks, Talal

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    P N 2 Replies Last reply
    0
    • T Talal Sultan

      Hi, This is not exactly an ASP.NET question but I didn't know where else to post it. Since it is somehow ASP.NET-related, I thought this was the best forum for it. I am wondering if there is a way to configure the way messages are being sent by the local SMTP. I don't want to do so by code, so I would like to know if there is some configuration file with SMTP parameters that I can change. I found that such a file exists for Biztalk (http://msdn.microsoft.com/en-us/library/aa560648.aspx[^]) but since i'm not familiar with all this stuff, I don't know if it also applies to the local SMTP server (the one that can be configured through IIS console) Basically what I need to do is to be able to force a certain encoding of the subject of the emails without having to change my code, in other words, I need to find an alternative for mail.SubjectEncoding = System.Text.Encoding.ASCII; Is there any way to do that? Thanks, Talal

      -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Can you tell me which version are you using ? In .Net1.1 (System.Web.Mail) may need to set this property as you mentioned. But .Net2.0 (System.Net.Mail) manage all these things by itself. So can you do some more research on it. Please let me know.

      Parwej Ahamad R & D: REST services with WCF

      1 Reply Last reply
      0
      • T Talal Sultan

        Hi, This is not exactly an ASP.NET question but I didn't know where else to post it. Since it is somehow ASP.NET-related, I thought this was the best forum for it. I am wondering if there is a way to configure the way messages are being sent by the local SMTP. I don't want to do so by code, so I would like to know if there is some configuration file with SMTP parameters that I can change. I found that such a file exists for Biztalk (http://msdn.microsoft.com/en-us/library/aa560648.aspx[^]) but since i'm not familiar with all this stuff, I don't know if it also applies to the local SMTP server (the one that can be configured through IIS console) Basically what I need to do is to be able to force a certain encoding of the subject of the emails without having to change my code, in other words, I need to find an alternative for mail.SubjectEncoding = System.Text.Encoding.ASCII; Is there any way to do that? Thanks, Talal

        -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        Talal Sultan wrote:

        without having to change my code

        Do you mind changing the web.config ? I believe this can be set in the web.config.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        T 1 Reply Last reply
        0
        • N N a v a n e e t h

          Talal Sultan wrote:

          without having to change my code

          Do you mind changing the web.config ? I believe this can be set in the web.config.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          T Offline
          T Offline
          Talal Sultan
          wrote on last edited by
          #4

          hi, no I don't mind changing the web.config. In fact, I was looking for a solution like that. Changing the code means that I would have to go through all the testing documentation and the release of a fix, and I'm trying to avoid that. So changing the web.config would be a great solution.

          -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

          N 1 Reply Last reply
          0
          • T Talal Sultan

            hi, no I don't mind changing the web.config. In fact, I was looking for a solution like that. Changing the code means that I would have to go through all the testing documentation and the release of a fix, and I'm trying to avoid that. So changing the web.config would be a great solution.

            -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

            N Offline
            N Offline
            N a v a n e e t h
            wrote on last edited by
            #5

            Well, scott has a blog here[^]. It's not showing how to set the encoding, but I guess it will give you a kick start.

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            T 1 Reply Last reply
            0
            • N N a v a n e e t h

              Well, scott has a blog here[^]. It's not showing how to set the encoding, but I guess it will give you a kick start.

              All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

              T Offline
              T Offline
              Talal Sultan
              wrote on last edited by
              #6

              Thanks, I have checked it out. Unfortunately it seems that this method is not able to chage the encoding through web.config as specified by this page: http://www.systemnetmail.com/faq/4.1.aspx[^] It seems I will have to release a fix to the application anyway since another bug has to be fixed as well. but thanks anyway :)

              -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

              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