|
Is there a relatively 'foolproof' way to either determine the smtp server being used by a user of ones program, or alternatively a 'default' setting that one could assign as the smtp host that should work.
This is for use in an application that will be utilising system.net.mail for automatic e mailing. I would prefer to avoid having to ask the end user to supply such information during the installation, simply because not all of thenm would know what it is.
Most of the searches that I have done around this all seem to include a 'hardcoded' smtp host, which is the one thing I'm trying to avoid.
Any suggestions would be greatly appreciated.
|
|
|
|
|
No. The best you can do is to use the settings for a mail server you know of, that you have the right to use.
Member 4427614 wrote: This is for use in an application that will be utilising system.net.mail for automatic e mailing
Sounds evil.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian
Thanks for your quick reply, I was starting to think the same, so now I guess I'm going to have to turn
my attention to doing an NSLookup during the installation routine and seeing if I can get the information I need from there, unless you have a better idea that is.
Dom
|
|
|
|
|
Hello Friends
I have created a .msi file for my first vb.net 2005 applicatiion.
when i installed it to another machine(running on xp also having .net framework 2.0)
while running the application it generates the error
windows application1 encountered a problem and it needs to be close
'System invalid operation exception occured'
Can any one kindly help to solve this problem
Thanks in advance.
V.Baulraj
|
|
|
|
|
Wow - you deployed an app called windows application 1 ?
We really can't tell you much, you've not given us much to go on. If it runs then crashes, it's not .NET that is missing. What is your app trying to do when it crashes ? What is different between the machines ? Your best bet is a top level try/catch that shows you a stack trace so you know what function is failing, then you can take it from there.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Everyone,
I am using Janus controls(Grid) . The performance is slower to bind the data using dataset and vertical scroll bar takes time to expand the information. Can anyone help me out in finding an solution to this.
Regards,
Manowj
|
|
|
|
|
I'm sure the Janus people would love to help you.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi ,
I am having a toolstrip on the left .
If i click on an item , the cursor has to change to + with image of the item which is happening in VS 2005 at design time .
i tried but not acheived the thing .
Thanks ,
modified on Friday, March 7, 2008 2:43 AM
|
|
|
|
|
What did you try ? You can create a cursor from a bitmap, I believe. You can set the cursor by doing Cursor = whatever.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hello People, Good Morning,
i am doing VB.Net Windows application, here i need to send an email, so how could it possible through a windows application..? could you please help me?
self confidence+hard work=SUCCESS
|
|
|
|
|
|
hey,,, how come u become this,,,,,,, ( ? )
i had got so many answers from you, but i dint think this....
i tried in google and got few more ideas and scripts, but most of then i get for the web page,, so only i asked here.....
if u wish then help , other wise dont say "google is broken where you live ?", i knew how to use google,,,,
thanks ..
bye
self confidence+hard work=SUCCESS
|
|
|
|
|
This is such a commonly asked question, and there is so much information on google, it blows my mind. You tried google ? I need to write that article on how to do a google search....
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
|
My idea is ..
I want to change monitor resolution when my exe run and then when it finish monitor resolution change orginal position.
Please give me some suggestion..
|
|
|
|
|
|
Hi, I am writing a user control to customize the appearance of the combobox by using a textbox, button and listbox. On button click event I display the listbox and on list item selection event hide the listbox.
Private Sub btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn.Click
If lst.Visible = False Then
lst.Text = txt.Text
AutoSelectFromList(txt, lst)
lst.Visible = True
lst.Focus()
Me.BringToFront()
Else
lst.Visible = False
End If
End Sub
When I place this control onto a groupbox and expand it, the listbox goes undearneath the groupbox, any idea how to display the listbox and bring
it to front of the groupbox.
Many thanks
Nas
|
|
|
|
|
Hi,
if the ListBox needs to be smaller, inside and in front of the GroupBox, then make sure
it is that way in Visual Designer; if you do it properly, it will be a child of the GroupBox,
not of the Form, and have coordinates (Location) relative to the GroupBox, not the Form.
That will be reflected by the generated code: the ListBox will be added to the Controls
Property of the GroupBox, not the Form.
It may take some doing to get it that way if the ListBox accidentally starts of as a child
of the Form; try making it smaller, drag it inside the GroupBox, etc. If this fails, delete
it, and create a new one, inside the GroupBox right away.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
I have downloaded a file from a web server and it is encoded in MIME Mybase64. I would like an example of how to decode this file or some help doing so. I came across a C# example but it used an object MimeMessage and I could not find a namespace for it.
|
|
|
|
|
jimborobb wrote: I could not find a namespace for it
Is it here [^]?
BTW I don't know MyBase64 details, but in fact, Base64 encoding is really simple.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
If I use Rebex then I have to purchase the software. Is there another way to do the decode of the Base64 file using .net?
|
|
|
|
|
It [^] looks promising.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I must be really new to this but when I convert that program to vb .net where do I get the namespace TestBase64?
You don't have a vb .net example do you with all the necessary imports?
Thanks.
|
|
|
|
|
I am looking for a way to count identical items in a listbox.
f.i. if the listbox has 3 the same items listed, the counter should give the value of 3.
|
|
|
|