|
Bog wrote:
Do I have to install an SMTP server on the user's machine in order to send an email?
No...you just need to point to the user's SMTP server at their ISP...
I passionately hate the idea of being with it, I think an artist has always to be out of step with his time.
-Orson Welles
|
|
|
|
|
Well, thanks but that won't do. I have verizon, for examle, and Verizon doesn't let you send email where the From address is anything besides the email address verizon gives you. If you want to send email From any other address you have to use a different SMTP server. Also where could I find out what the user's ISP's SMTP server is? Like if they don't have Outlook installed, or it's not set up (wrong or missing SMTP for example).
thanks anyway for your response.
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
Here's an idea, if you have Outlook installed in the user's machine, why not just use the Outlook Com object.Add a reference to the Com, and add the following code:
Outlook.Application ol = new Outlook.Application();
Outlook.MailItem ml;
ml = ol.CreateItem(olMailItem);
ml.Body = "message body";
ml.To = email address;
ml.SenderName = your email;
ml.Send();
warning : the code above is modified from vba, so it might not exactly like expected.
God, I pity me! - Phoncible P. Bone
If I end up Windows ME someone is going to be hurting. - One of the answers to a question for What OS are you
|
|
|
|
|
This is a new one- I haven't seen anyone mention this.
If the use doesn't have outlook installed, then obviously this won't work. So I'm still probably better off installing an SMTP server on the users local machine instead.
Hey, if the user has Outlook installed, but the user didn't specify an SMTP server for outlook (or specified an incorrect one), then this won't work right? Or is it like using the underlying internal SMTP server of outlook itself or something? See, like me for example- I have outlook installed but I never use it- I use Eudora, so I never told Outlook what SMTP server to use.
thanks for your response,
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
|
Yea this is exactly what I did, and I got the error I described. But thanks for your response anyway.
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
I have a class that represents a table. I want to save it to the database.
I could sen all of the pertinent data that needs to be changed then build it in store procs to write
or i could send a copy of all data to the stored procs
I would like to build it in stored procs but is there a way to avoid building a string to execute?
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I am using a richtextbox in winforms.
When the wordwrap property us set to true i cannot find a way to select the current / any other paragraph within the control.
it seems that some of the methods / api functions return some values in logical lines unit and some in physical lines units.
is ther a way to find a line / paragraph break in the control.
Opher Goddard
|
|
|
|
|
Can I add a web page into a C# Windows application and program it, such load data from database, show specific data only?
Thanks!
|
|
|
|
|
Why do you want to do that !!
- Kannan
|
|
|
|
|
You can display a web page in the "internet explorer control", and of course you can generate text and save it as a html file.
But why do you want to do it?
You can write a web application in C#, so you don't need to generate the page in a windows application.
|
|
|
|
|
Thank Kannan Kalyanaraman & Corinna John.
I do this because I have never developed any web application and have absolutely no idea what web application is like. I was thinking about trying to develop a web application, but I was told that it's complicated. Because I need to develop the server side to provide webservice.
Now what I am developing a tool to compare selected records in selected tables(could be more than 2). I already finished most of functions using Windows form. Also I have a windows form to show the compare result, highlight the difference.
Having the idea of putting the webpage in my windows application, is because I don't like the way I am doing now. If I can show the result in a webpage, then user can save it to wherever they want and also the appearance of webpage is nicer than a form.
I am new in .Net programming. So if you have any suggestion for me, please don't hesitate to tell me.
Thanks again.
|
|
|
|
|
yyf wrote:
I was thinking about trying to develop a web application, but I was told that it's complicated.
Its really easy, especially when you think about all the intricasies involved in a win app. There really is no need to make it a windows app. You'll have install, mainaining, and other problems. Design your 3 page web site in asp.net its soooooo much easier.
And dont listen to them thier probably VB programmers
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I forgot to mention another function in my program. It's to run one or more than one query files. Something like Query Analyzer.
I think that might help you understand why I am using windows application to do this.
|
|
|
|
|
Hi !
Please help me.
i'm trying to create a remote application. everything works fine if i copy the interface-dlls to the client computer.
BUT:
when i get them using soapsuds it doesn't work because the variablenames got somehow changed.
for example:
the property "Destination" (private: destination)
gets to destination. so the initial letter changes to lower-case.
WHY ?!?!?!?
any ideas ?
thanks very much !
|
|
|
|
|
an other interesting thing is that only the empty (standard) constructor is defined.
any other constructor gets lost.
|
|
|
|
|
I am fairly new to winforms and for some reason even though I added a 32x32 bitmap to my LargeImageList for my ListView it resizes them to 16x16 at runtime. My small icons display at the same size. The actual files are 32x32. Anyone encountered this and know how to fix it?
Matt Newman Sonork: 100:11179
"Battleship, was the first game that taught you to lie" - Zachery
|
|
|
|
|
Hi!
What should I do to create working bindable property in my custom control? I took System.Windows.Forms.Label, inherited into nLabel (numeric label) and added following code:
[Bindable(true)]<br />
public int val <br />
{<br />
get { return _val;}<br />
set { _val=value; this.Text=_val.ToString(); }<br />
}<br />
next I've bound this control and some other control to one datasource. I tried to change value, but value is locked by my control.
What is wrong?
h.
|
|
|
|
|
try return this.Text;
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I'tried this one - it doesn't work (
There is really interesting event flow in the bound property. When you try to change value at bound column, property events are fired as following: GET ( ), SET, SET.
First GET destroy any data changes - because it reads from internal data of my class. This makes value "uneditable". How to detect, that data was changed externally or is it possible to not return anything from the property?
h.
|
|
|
|
|
Well it gets every second. I include a blank set set {} and this suffices for my read only
One way you might look into is
MyClassList : CollectionBase, IBindingList
MyClass : IEditableObject
Use the customer example in the IEditableObject example in msdn help within the IDE
The reason its doing this is it has to raise events notifying the control of changes.
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
HI!
thanks for your time and help. I tried to implement IEditableObject in my class, but these methods are not used in regular databinding. They are used in grids only.
but the most important I've found the bug:
I've made form with datagrid and nLabel connected to one datasource. I found, that they cannot be based on one currency manager. When they are on separate cm, everything works well. I've never seen similar behavior before this one. Could anybody explain it to me?
h.
|
|
|
|
|
yes they are used in datagrid or any control that uses an IBindingList
I use them for labels also
basically my class looks like
public class MyClass
{
private string s;
private MyObject i;
public string MyString
{
get { return s; }
set { s = value; }
}
public MyObject ThisObject
{
get { return i; }
set { i = value; }
}
}
public class MyObject
{
public override string ToString()
{
return "MyObject class";
}
}
if any other problems, explain a little more and I can send a prototype project to ya. I had to go trhough hell with getting my databinding to work. My classes wrap the database then bind to classes. And i perform biz rules on them so almost no code in GUI.
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Hi!
It seems you truly are an expert - esp. in Windows controls )
I have just one more question: How the bound property notifies datasource, that it's value has changed?
Let's imagine textbox with similar property val as in the numLabel described in my first mail. When value in datasource changes, text in textbox will change. But when user changes text in textBox, datasource doesn't change untill some other control does not refresh data. I played with control bound to dataset and datagrid which shows data from table. When I've changed value in the control, datagrid doesn't show any changes. But when I clicked on bound column in current row of datagrid, the value was read from the control. I'd like to know if there is a way to make it without clicking in datagrid - just like all MS controls do?
thanks again
h.
|
|
|
|
|
yeah I had a hard time with this also. The datagrid reacts by the underlying data source having its OnListChange event fired. This forces a refresh of the data for the grid.
You might try on either the change or leave event raising a changed event. This could possibly help in your situation. I'm a few days from this same situation in my app, so either way I will have to figure it out.
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|