|
yes, it should be, i don't know for certain. but even if i send it out on say 26 it should still receive right, if it is recieveing smtp.
in otherwords if i were to send mail on port 80 to mail.blah-blah.com it would know (if the router/firewall it's setup properly)to accept incomming traffic to mail.blah-blah.com on internal port 25 right? so i should be able to send outgoing mail on whatever port i want, as long as the recieveing server is configured to recieve mail from mail.whatever.whatever.
or am i just really off in my thinking here?
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
wetrivrrat wrote:
were to send mail on port 80 to mail.blah-blah.com
If you meant connecting to mail.blah-blah.com's port 80, no, it wouldn't work. Port 80 is for HTTP, it most certainly won't be expecting SMTP messages there.
So, the answer for your question is, yes, you should use port 25 for sending mails. I got sidetracked because I thought you were talking about the port number of the client which is sending the mail.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
no, I was talking about the outbound port.
But I figured out a way.
It seems it will still send outgoing mail if I relay off another server. So i'm up now.
thanks!
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
Is it possible to configure the SmtpMail.Send(); to send mail without having to have smtp installed locally?
I need to be able to send mail internally(intra-net) without having to install smtp on every client, as well without having to access the local mail client, as we don't have outlook or outlook express installed on the clients.
We are however in a Novell / Groupwise environment and I don't know anything about how to intergrate with GW, so I would like to stay away from trying to intergrate, but if it is the only way then i'm open to making it work. (I would need some help though!)
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
Just set the SmtpMail.SmtpServer property to the name of the smtp server you wish to use.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks much!
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
hi to all,
how can i put a mask while the user is typing.
does c# have an edit mask control like vb 6 ?
if yes, what reference do i have to add to my project
if no, does any body have a trick to do the same
best regards and thanks in advance
fady
|
|
|
|
|
do you mean to ask does C# have a way to mask the characters you are typing? Are you typing in a textBox?
if the answer is yes to both these questions then your answer is yes.
click properties for your textBox and look for PasswordChar
hope that helps
Dim Beautiful As String
Beautiful = "ignorant"
Label1.Text = "The world is full of " & Beautiful & " people."
Why is common sense such an un-common comodity?
|
|
|
|
|
You mean like this[^]???
No, the .NET Framework doesn't have built in support for masked text boxes as of version 1.1 (I think 2.0 will.) But there are several free controls out there, just try searching Google or CodeProject first.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
The help in Visual Stuio on double.Epsilon states the following:
"Two apparently equivalent floating point numbers might not compare equal because of differences in their least significant digits. For example, the C# expression, (double)1/3 == (double)0.33333, does not compare equal because the division operation on the left-hand side has maximum precision while the constant on the right-hand side is only precise to the visible digits.
Instead, determine if the two sides of a comparison are close enough to equal for your purposes by comparing whether the absolute value of the difference between the left and right-hand sides is less than Epsilon."
Epsilon is still going to be way smaller than the error due to the precision of the double's mantissa. Instead of trying to use epslilon I compare my doubles like this:
if (Math.Abs(exp-det) > Math.Abs(exp/Math.Pow(2.0, 64.0-12.0)))
{
throw new MyException(" BufferComparison failed " + det + " != " + exp);
}
Is there a better way? -or- Is there a correct way to use Epsilon?
Time is the fire in which we all burn...
|
|
|
|
|
Hi
I am using Microsoft.office.core (11.0) com library. I have added new button to the outlook toolbar. If i click on that it should get the currently focused email detals(like if i click on Reply,Forward etc...). I am able to get the entire folder emails detail but not exactly the selected email.
Thanks,
Inba S.
|
|
|
|
|
I have an app with 3 major dialogs. The parent dialog, a modal work dialog, and a help dialog. Since I only want a single copy of help open at a time I had the work dialog call a method of the parent which only created a new help dialog if there wasn't already one open. This works fine if the help button in the work dialog is clicked and the help dialog isn't open. In that case Help's freely available and the user can switch between the help dialog and the work dialog at will. The problem is if the help dialog is first opened in the parent it's inaccessable from the work dialog.
The only workaround I can think of is to have the work dialog first kill the help one, and then reopen it but that's a kluge and looses the users place. Is there a more graceful way to do it?
|
|
|
|
|
Interesting problem, how do you unlock a modeless dialog locked by a modal dialog? Sorry to say, I have no good answer and looking at the lack of responses to your question the community seams to have problems with it also.
Can't you make the help dialog as a standalone application which you kill when the parent dialog is shutdown? Only problem I see with this solution is if you need to communicate with the help application, which is more difficult than communication within an application, so then it might not be worth it. Here's a link how to make a single instance application: www.codeproject.com/csharp/singleinstance.asp
/Patric
My C# blog: C# Coach
|
|
|
|
|
That's an solution I hadn't thought of. It wouldn't be a problem now, but context sensitive help is in the features wishlist so it could become an issue in the future.
|
|
|
|
|
Hello,
In my data grid, when you edit the new added row (added automatically), if some of the fields are not completed, and user clicks on the rows that were loaded from dataview, last row automatically disapears.
I wanted to know, if there is an event that is fired on this action, becuase I have to recalculate the quantity column to display a proper sum from the cells.
Thank you
|
|
|
|
|
If you are using a dataview that means your view is filtered so any new row that you add should match the columns that are being filtered.
For example, if filter is for column named "Totals" and your filter is set for "Totals > 100" then if the "Totals" column of your new row is < 100 then it won't be visible.
|
|
|
|
|
My filter is set for the column RevenueID, but since it's a primary KEY I am not displaying it in the table. So, I have 4 columns visible out of 6 columns that are in the table.
Could that couse the problem? If yes, how can I manually set the the ramaining columns?
Thank you.
|
|
|
|
|
That is definitely the reason, so when a new row is added, you have to update column RevenueID in your dataview.
To repair, add a ListChanged event handler to your dataview.
Following is a code snipped of the event handler:
<br />
private void dataview_ListChanged(object sender, ListChangedEventArgs e)<br />
{<br />
if (e.ListChangedType == ListChangedType.ItemAdded )<br />
{<br />
DataView dv = (DataView) sender;<br />
DataRowView drv = (DataRowView) dv[e.NewIndex];<br />
if (drv.IsNew)<br />
drv["RevenueID"] = newRevenueId<br />
}<br />
}<br />
|
|
|
|
|
The event handler does not match the delegate.
dataview.ListChanged += new EventHandler(this.dataview_ListChanged);
Apparently the delegate is (object sender, EventArgs e);
|
|
|
|
|
Thanks, I found the solution.
|
|
|
|
|
I want to have an array of colors from blue to red - like a rainbow... How to fill in this array programmatically???
|
|
|
|
|
Start with blue (0/0/255) into first loop. Every turn adds a little green, and when green is 255, subtracts a little blue, until you reach pure green (0/255/0). Then begin a second loop, that adds red and subtracts green, until there is clear red.
Start
000/000/255 (blue)
000/010/255
000/020/255
000/030/255
...
000/255/255 (cyan)
000/255/240
000/255/230
000/255/220
...
000/255/000 (green)
010/255/000
020/255/000
030/255/000
...
255/255/000 (yellow)
255/240/000
255/230/000
255/220/000
...
255/000/000 (red)
As you can see, there are four loops like that:
<br />
for(int green=0; green<256; green++){<br />
colors.Add(new Color( 0, green, 255 ));<br />
}<br />
<br />
for(int blue=255; blue>-1; blue--){<br />
colors.Add(new Color( 0, 255, blue ));<br />
}<br />
DISCLAIMER: This response in not tested, it's simple guesswork.
_________________________________
Please inform me about my English mistakes, as I'm still trying to learn your language!
|
|
|
|
|
I built a console application however, I don't want to recreate this project as a class library. Can anyone show me ow to build as a dll using the the configuration properties?
|
|
|
|
|
Just change the Output Type (Right click on project in Solution Explorer, click Properties) to Class Library.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
The attributes under configuration properties/build/Outputs are output paths,XML documentation file, Generate Debuggin info, Register for com interop........There's no option for changing to a class library.
|
|
|
|