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