|
Hello,
I am creating a mass mailing engine using C# which sends an email to many of its client. This engine includes many functionalities. One of them is tracking the email that is sent to the client (when it is opened on the emailing client like Outlook, Hotmail, Yahoo, Lotus Notes, etc., ) and also the attachments that are being downloaded by the client. All the tracking activities are to be logged into the database.
I searched many forums and got a solution of embedding 1px balnk image. I tried doing the same but i am not able to find the further steps, as to how will I actually include the entries in the db.
I am newbie to this functionality.
I would be very grateful, if anybody can help me with their small snippet of code (if any) or with the idea as to how should I go about.
Thanking you all in advance
Kind Regards
Pratik Shah.
Thanking you all in Advance
Regards
Pratik Shah
|
|
|
|
|
There isn't any way to track if an e-mail has been read if the user receiving it does not want you to know.
You could request a read receipt but the user would have to accept that it is sent to you.
Inserting an image that has to be downloaded will work but the user will still have to request that the image is downloaded, most e-mail clients will not automatically download them.
|
|
|
|
|
p4pratiks4shah wrote: I am creating a mass mailing engine
aka: A Spam Machine..?
|
|
|
|
|
Calla wrote: p4pratiks4shah wrote:
I am creating a mass mailing engine
aka: A Spam Machine..?
Not necessarily. I had to write email functionality into our backend DB app some years ago: our compliance department wanted the ability to sweep data from our field reps and send notifications only to those who needed them. Trying to manually configure a message for the right 50 or 60 people was no fun.
|
|
|
|
|
How do i check if a method exist in a named class library ?
thanks.
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:00am.
|
|
|
|
|
Thnks for the link,
But what if i want to get a class name form an assembly?
thanks again.
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:00am.
|
|
|
|
|
I've never heard of Google but I've heard of http://www.dogpile.com/
|
|
|
|
|
systemerror121 wrote: I've never heard of Google
I take it you've been living in a cave with no Internet access for the last 5 years?
|
|
|
|
|
You found Bin Laden.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
And using Google, you may find your question posted by someone else with a "let me google that for you" answer only...
|
|
|
|
|
You could use a tool like ILDASM or Reflector to have a look at the code behind the class file.
|
|
|
|
|
Hi,
Each time I try to sue the Strategy pattern, the concrete strategy have difference parameters.
For example the Strategy method could be a "double getprice()"
and a concreta class could need a matrix of interest rates, another classes a series of earning, other volatility numerbers and so on.
As opposed to this, most of the example I see on the web for the strategy pattern only involve either a series of commond paramters or no parameter at all to be passed to the strategy method.
So
1) Am I using the wrong patter to sort this problem?
2) If not how can I pass the Interface (IInstrment) to the client and give a way to the client to change the parameters?
For example
inferface IInstrument
{
double GetPrice()
}
class Stock : Instrument
{
double GetBody();
array[] double earnings{get;set}
double risk;
date today()
}
class Bonds : IInstrument
{
string GetBody();
double rate;
}
Thanks
|
|
|
|
|
When a simple strategy method with a constant signature isn't sufficient, I think you should rely on an interface and a strategy object, the strategy object holding all the data it needs, and one of its methods implementing the interface you're going to call in order to apply the strategy.
|
|
|
|
|
Hi Luc,
I think what you are suggesting is in line with the example I provided in my mail. Is it?
However, if I let the object store all the parameters and implement the strategy method of the internface,
How can my client change the Parameters (without doing any typecast) ?
This this what I would like to do:
ex.
Client.GetPrice()
%Change some parameters
Client.GetPrice()
Thanks
|
|
|
|
|
pierpaolo paparo wrote: How can my client change the Parameters (without doing any typecast) ?
What I was thinking would be along these lines:
interface IStrategy {
int Execute(someParameterList);
}
class Algorithm {
public int Execute(IStrategy strategy) {
...
int result=strategy.Execute(someParameterList);
...
}
}
MyStrategy strategy=new MyStrategy();
strategy.Property1=someValue1;
strategy.Property2=someValue2;
Algorithm.Execute(strategy);
obviously the algorithm cannot provide parameters to the strategy other than those set out in someParameterList, as it must treat all strategies equally. However the caller can influence its strategy by amending the code and/or providing constructor parameters or property values.
|
|
|
|
|
Hi Felolows,
Pls how do pass values to and fro an external class library from my .exe prgram.
the class library is written in vb2008 while the exe is in c#.
thanks.
|
|
|
|
|
If you want to use a class from a dll written in vb.net in your C# program, you just instantiate that class and call the method (with the appropriate arguments). What kind of problems are you experiencing?
|
|
|
|
|
the problem is that when i instantiate the DLL class in mt program,
the base class from which the DLL inherits is loaded, that is the program that the DLL is fused to
starts up with my program.
i donot want this to happen.
thanks again.
|
|
|
|
|
You may need to explain more.
|
|
|
|
|
As PIEBALDconsult mentioned - please explain more.
|
|
|
|
|
is there any functionality in c# where in I have a windows server running on a machine and other clients in the LAN with windows OS (say 98 or XP), so I need to shutdown or standby the clients from the server.
If anybody has the answer do reply
Thanx
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:01am.
|
|
|
|