|
|
Hi all
I m inserting an event date in my databse like marriage.
so we want that before coming marriage date automatic mail will be shoot after a particular time like 1 or 2 or 5 day etc, when that marriage will not be finished.
so how we fixed that time that email shoot automatically
|
|
|
|
|
A windows service, or scheduled task that reads the database and generates the emails?
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
As ashfeild suggested to go for task scheduller ..!Its A good idea..!
apart from tht you can go for triggers or sql jobs..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
I am planning for write an article for all possible Automatic Email generation scenarios. This is one of the most common question now a day ! I have to find out some times for it.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Great to hear from you..!
Because there is no good articles which are related to tht..!
all the best..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Yeah ! I need some good time for it . I will manage....
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
For Me also thts the problem I am little bit busy with my project ..!May Be i will try to write an article on quartz scheduller.!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
How is a trigger going to do it? Unless you plan on running a check each time the trigger fires, which would be ridiculously wasteful.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
sorry my mistake..! i thought after he entered "marriage" in database....!
rummer wrote: mail will be shoot after a particular time like 1 or 2 or 5 day etc
i missed tht line..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hello Friends,
I'm sending mail using the following code and mail is working fine.
SmtpClient client = new SmtpClient();
string from = "manoj.msb1984@gmail.com";
MailAddress From = new MailAddress(from);
//To whom the mail is being sent
string to = "depth.heart@gmail.com";
MailAddress To = new MailAddress(to);
//To whom Carbon copy is being sent if there is not don't write this code
//string cc = "rawgirish@gmail.com";
//MailAddress Cc = new MailAddress(cc);
//Creat an object for MailMessage
MailMessage message = new MailMessage(From, To);
//Set Message body HTML true otherwise sometime it send html code
message.IsBodyHtml = true;
//Add Your Subject
message.Subject = "Add You Subject Here";
//Add Body of the Mail here
string strBody = "Hello, This is Manoj Bisht <br> Got It";
message.Body = strBody;
try
{
//Send the Mail
client.Send(message);
//Show sent message if mail is sent successfully
Response.Write("Mail Sent Successfully");
}
catch (Exception ex)
{
Response.Write(ex.Message.ToString());
}
But when im using this code to send email over intranet it's throwing error as shown below
{"Failure sending mail."}
[System.Net.Mail.SmtpException]: {"Failure sending mail."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: {"Unable to connect to the remote server"}
Message: "Failure sending mail."
Source: "System"
StackTrace: " at System.Net.Mail.SmtpClient.Send(MailMessage message)\r\n at Rough_New.cmdSend_Click(Object sender, EventArgs e)"
TargetSite: {Void Send(System.Net.Mail.MailMessage)}
|
|
|
|
|
Where is your SMTP Server name ? Does your SMTP in local Intranet configured properly ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
<mailSettings>
<smtp>
<network host="192.168.1.8" port="25" userName="myuserName" password ="1234"></network>
</smtp>
</mailSettings>
|
|
|
|
|
.NET- India wrote: InnerException: {"Unable to connect to the remote server"}
Your exception says that, you system is not able to connect with the remote server. Please check the connectivity between them.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
How to display multiple columns in Dropdownlist in asp.net page with c# code?
Known is a drop, unknown is an ocean
modified on Monday, December 14, 2009 11:27 PM
|
|
|
|
|
|
How can I set a background image? Cause whenever I set it in the FORM and launch it, there is always this space around that form which is the document. So how can I set the form to the Document so there won't be any spaces at the sides..
thanx in advance...
|
|
|
|
|
set it to the body tag
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
eivah wrote: How can I set a background image?
body {
background-image: url("image_name.jpg");
background-repeat: no-repeat;
}
Or you can use DIV for the same .
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
aha.. but exactly where am I suppose to put that code?? Pardon for I really dont have any idea
|
|
|
|
|
In application state management technique, What will happen if multiple users trying to update the same object same time ? How to handle this situation ?
|
|
|
|
|
The last one in wins. Obviously, if you need to maintain settings per user, then Application state is not the tool to use.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
If you are going to update Application Object you have to use Local() and Unlock() , as data are shared for all users. Here is the way ,
Application.Lock();
Application["Counter"] = (int)Application["Counter"] + 1;
Application.UnLock();
Hope this will help you !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Halo, I'm interested in the study of the HTTP and SMTP protocols commands and I would like to be able of analyze the content of the commands sequence between a client and the server gathering the requests and response messages of each one, please which tool suggest to me for studying these sequences.
Best Regards
|
|
|
|
|
I am developing a website where users will search on some address fields and get a gridview list of all possible matches for images in a database. The images aren't actually stored in the database, they are tiff files on the webserver, the address information and a link to their location is what is stored in the database. I need a handy control that can view tiff files and do some basic operations with them. Go to the next page, last page, print all pages, etc. It doesn't matter if it is a pop up window or something I can embed into the page somewhere.
I have the searching feature working and it pulls up a gridview of matches, but now I just have a seperate page that gets the file path passed by the querystring and it uses GDI to load the tiff from file and stream it to the response.outputstream of that second page. That means I can't put ANYTHING on the page like buttons to control next, prev etc.
Is there a good way to go about doing something like this? Is a user control what I am looking for? If so does anyone know where I would find something free that I could use?
I have some sample images but I don't have a good spot to upload them for viewing right now.
|
|
|
|