|
Schedule the mail sending application using windows scheduler.
Ramin RamZ wrote: the problem is that the computer sending the mail might be off on that time, what i want is to send the mail even if the computer goes off.
|
|
|
|
|
thanks navaneeth for the reply.
but if the computer goes off then how the scheduler would be able to run.
|
|
|
|
|
Ramin RamZ wrote: what i want is to send the mail even if the computer goes off.
Wow. You ARE dumb. How can your PC send mail, if it is off ? It can't.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
nothing is impossible in the world of programming.
if i send e-mail to someone and if i am able to delay it from the server then for sure it is possible. It is possible through server based not client based i know this, but i dont know how to delay it from the SMTP server.
|
|
|
|
|
Ramin RamZ wrote: if i send e-mail to someone and if i am able to delay it from the server then for sure it is possible.
Sure, on an Exchange server, it's possible. But, on a normal SMTP server, there is no facility to support this.
|
|
|
|
|
You send email using the SMTP protocol which is donkey's years old. There is no facility in this protocol to time the sending of mail, you send it to your server, it forwards it on to the next and so on until it gets recieved by the recipient.
The only way email gets delayed is if a server is out of action. Normally when this happens, the previous server in the chain will attempt to resend it at intervals. The sender will normally get information emails saying that it's having difficulty contacting the (maybe redirection) server. Usually after about 48 hours it gives up and returns your mail.
The only way you can do what you're tring to do is by actually doing the send at a later time. If you're SMTP server or the sending computer is turned off then you are stuck and that's the bottom line.
As others suggest either the Windows Scheduler or your own rolled solution are the only options you have. Sorry.
Regards,
Rob Philpott.
|
|
|
|
|
|
Sorry Ramin my mistake - missed the word "delay" in your title
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Hi Guys. I have a working Excel application that reads an input file and writes the data to an Excel sheet. Now, I need to do a few more things though but just can't seem to get it working properly. This is what I need to do and what I have so far.
I need to set the current cell color to red if the Recon Indicator is NN but it sets all the cells before the current cell to RED. My question is how do I select only the current Cell. I have tried numerous things but it doesn't work.
if (RECONCILIATIONIND == "N")
{
objSheet.Cells[iR, iC + 18] = RECONCILIATIONIND;
objRange = objSheet.Cells.Rows.EntireRow;
objRange.Font.ColorIndex = "3";
}
>/pre>
The next problem I have is that I need to do some calculation on an unknown number of cells and subtract it from a total in a different column. Below is a sample screen.
<code>
Nominees & Own Name (Level 1) Beneficiaries (Level 2)
19326421
175
84
76
2238
235
14
591
345
122
</code>
From the above, I need to calculate the totals in Beneficiary (level 2) and subtract that from Level 1 total and add the total into a new column. Now, there is an undertermined number of values in Level 2 i.e. there could be 2 or 4 or 50 or 300 values to add. How would I be able to do that?
Any help or advise would be appreciated.
<div class="ForumSig">Excellence is doing ordinary things extraordinarily well.</div>
|
|
|
|
|
I suggest you reformat the question to include ONLY code in the code block - this is unreadable.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi All!
I have a Form simulating an OpenFileDialog which has a ContextMenuStrip with some items including: Copy, Paste, Delete and so on with shortcut keys: Ctrl+ C, Ctrl + V and Del.
The problem is this: when I lunch the form, Del shortcut works fine (but Ctrl+V ant Ctrl+C don work unless I show the context menu by right clicking)! if I do a Copy/Paste the Del shortcut does not work any more until the next time I right click on the form and showing the context menu . this problem is only by shortcuts, context menu items work fine by themselves.
any suggestion would be greatly appritiated.
|
|
|
|
|
I am assuming that the form is getting the keypress events instead of the context menu. If you think about the way a menu works IE press alt F to activate the file menu item then it makes sense that a context menu will not be operated directly from the form.
Why Del work, I have no idea. If you trap the keypress on the form you may be able to activate the context menu.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
Here is my code...
string sPath = Server.MapPath("~/sms/sms.xls");
String sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=sPath;Extended Properties=Excel 8.0";
OleDbConnection objConn = new OleDbConnection(sConnectionString);
objConn.Open();
OleDbCommand objCmdSelect = new OleDbCommand("SELECT * FROM [Sheet1$]", objConn);
From the above code, connection string was working and connection is opening fine, than its throwing the error messg like
"The Microsoft Jet database engine could not find the object 'Sheet1$'. Make sure the object exists and that you spell its name and the path name correctly."
But sms.xls file having the name of sheet1 and which resides inside the sms folder... than to y this message appearing....
Pls help me....for the past 2 days iam sike of this problem
krishna
|
|
|
|
|
never having used a connection to XL but I would check that the sheet1$ is the same as naming a sheet sheet1, the $ may signify the system default name rather than a user defined name.
Try naming the sheet differently.
Also make sure the sheet layout conforms to DATABASE layout structure, no stray bits in the top rows!
Personally I would open the sheet and interate the rows and cells rather than rely on the OLEDB connection.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
The excel's sheet have some sheet name, Sheet1$ on of this,but application read excel, if you excel file sheet name not call Sheet1$, it's will error, So, You'll using sheet of Excel file, the code for sheet[0],it's mean frist sheet name,Sheet[1] is second sheet name.
|
|
|
|
|
Hi Everybody,
I have a word document, i need to analyze the whole document and search a word and capture the next immediate word of the searched word and insert it into the DB.
eg: i have a phone bill of 3 persons in a single word document, i need to analyze this doc and find each persons name, ph no, monthly charges and insert these values into a DB... i hope u understood my issue... Awaiting ur reply....
|
|
|
|
|
|
Hi Holmes...
I know how to search in Google, bt i did'nt get the expected result... that s y i have posted here...if u know plz give me a clue r else...leave it...
|
|
|
|
|
did you follow any of the results - the 4th entry sounds like exactly what you are after. What is it with you people - do some research!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have a uni assignment where I need to recursively process a large number of nodes in a dependency graph in order to calculate the ripple impact. I have come up with a solution that I think is correct, however I'm seeking confirmation of whether my logic is correct, and if so, is there any way to make it faster (and yes, I could post this to the forum for this uni subject, but since we'll be put in groups based on how well we do individually I'm reluctant to do so since I could be heading down the right track).
First some background info:
Fan-Out metric is the number of classes that a particular class relies
on. Fan-In metric is the number of classes that make use of a given class.
The ripple impact measure counts the total number of classes that might
have an impact when any single class is changed. Based on the dependency
graph above, if we were to modify "E", the ripple will impact B directly,
since B has an impact this will impact A as well. In short any change made
to ‘E’ can have a potential ripple impact on B and A.
The nodes in the dependency graph that have a Fan-Out of Zero are known as
a Sink node. Nodes that have a Fan-In of zero are known as Source nodes.
In the dependency graph shown, we can extract the following information:
• A: Fan-out = 1 [B], Fan-In = 0, Impact-Ripple = 0
• B: Fan-Out = 3 [D, E, F], Fan-In = 1 [A], Impact-Ripple = 1 [A]
• C: Fan-Out = 1 [D], Fan-In = 1 [F], Impact-Ripple = 4 [F, D, B, A]
• D: Fan-Out = 1 [F], Fan-In = 2 [C, B], Impact-Ripple = 4 [B,A,C, F]
• E: Fan-Out = 0, Fan-In = 1, Impact-Ripple = 2 [B,A]
• F: Fan-Out = 1, Fan-In = 2, Impact-Ripple = 4 [B,D,A,C]
• Sink nodes: E, Source nodes: A
So in order to calculate the ripple impact you need to recurse through a node's fan-in nodes and add them to a list unless you either a) run into a source node or b) find a node you've already processed.
Here's what I have so far:
public class Node
{
...
public List<Node> FanIn
{
get
{
return this.fanIn;
}
}
public HashSet<Node> Ripple
{
get
{
HashSet<Node> rippleSet = new HashSet<Node>();
rippleSet.Add(this);
this.CalcRipple(rippleSet);
rippleSet.Remove(this);
return rippleSet;
}
}
private void CalcRipple(HashSet<Node> rippleSet)
{
foreach (Node node in this.FanIn)
{
if (rippleSet.Add(node))
{
node.CalcRipple(rippleSet);
}
}
}
...
}
With a data set of 9,749 nodes (with 1459 source nodes, 1459 sink nodes and a max fan-in count of 1469 nodes), a full ripple impact calculation for each node takes ~26 seconds all up (and another 30 seconds to write it all to the hard drive resulting in a 630 meg file - all references are stored as strings ) on my Athlon XP 2100+
So my questions are:
* Does my ripple-impact calculations look correct, and if so
* Can anyone find any other optimisations I may have missed apart from using a hash collection for speedy lookups?
"I think I speak on behalf of everyone here when I say huh?" - Buffy
|
|
|
|
|
Hi,
I am running a form, when i click a button in the form a dll is called in which another form is appeared, now total two forms are running. In the task manager processes, i can see only the name of the first form. So i cannot able to find and kill the second from code using 'processname.Kill'.
How can i able to find and kill the dll running from main form?
Thankyou,
YP
|
|
|
|
|
FreeLibrary(hModule);
Free the Library (dll)....i'm assuming your program loaded the dll....
modified 20-Oct-19 21:02pm.
|
|
|
|
|
yes my program load a dll which display another form, how can i free the library?
|
|
|
|
|
Kill the dll? Maybe you mean unload the dll from memory. Because only process owns the memory for excution. In this case, we can use AppDomain.Unload mehtod in .net as a approach.
I Love KongFu~
|
|
|
|
|