C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




emailsending!!!!!!!urgent


Posted Date: 28 Apr 2007      Total Responses: 2

Posted By: kalyan       Member Level: Bronze     Points: 2


i need to send email automatically. if suppose a user posted an add his expiry time is 15 days.so an email should be send to him on 14th day automatically help me with some code.



Responses

Author: Ritesh Tandon    28 Apr 2007Member Level: BronzeRating:     Points: 2
Hi Kalyan

Create a cookie or store every record of expiration in a database. Create a button and do the code on it. Check the date of expiration of account from the database or cookie file. Then retieve the e-mail address of the recipient and send the mail to him. You can send mail via Virtual SMTP on your server only but you have to configure your outlook express and have to give the SMTP and POP address.


Author: sumaa    28 Apr 2007Member Level: GoldRating:     Points: 2
using System.Web.Mail;

MailMessage m=new MailMessage();
m.To="sumu.mca@gmail.com";
m.From="abc.def@gmail.com";
m.Subject="hi";
m.Body="Hw R U";
SmtpMail.Send(m);


Post Reply
You must Sign In to post a response.
Next : about MAPI and CDO
Previous : can we find table name from dataset
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

conference call definitions

Contact Us    Privacy Policy    Terms Of Use