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 !




After successfully registration we should get the message in mail


Posted Date: 30 Apr 2007      Total Responses: 3

Posted By: swathi       Member Level: Gold     Points: 2


suppose if we create an registration form we will create all fields atlast we will keep submit button by clicking on that we can get the message successfully registered but what i want is .
for ex:if we are submitting our resume to any consultancy we get the message that we are successfully registerd at the same time we will get through our mail also.to get message in our mail what should i do.




Responses

Author: latha reddy    30 Apr 2007Member Level: SilverRating:     Points: 2
Just before printing success message send a mail to their mail which is there in database or get it from text box which is filled while registration if mail is sent successfully then print a message like mail has been to mail id.

.net supports sending smtp mails .


Regards,
Latha


Author: Dotnet Galaxy    30 Apr 2007Member Level: GoldRating:     Points: 2
Try the following code to send a mail from asp.net.


MailMessage message = new MailMessage ();
message.From = <email>;
message.To = <email>;
message.Subject = "Scheduled Power Outage";
message.Body = "Our servers will be down tonight.";
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send (message);


MailMessage and SmtpMail are classes defined in the .NET Framework Class Library's System.Web.Mail namespace. Due to a security change made to ASP.NET just before it shipped, you need to set SmtpMail's SmtpServer property to "localhost" even though "localhost" is the default. In addition, you must use the IIS configuration applet to enable localhost (127.0.0.1) to relay messages through the local SMTP service.



Author: Venkatesan.K    30 Apr 2007Member Level: BronzeRating:     Points: 2
Just before the printing access You have to call to mail functions
MailMessage message = new MailMessage (); message.From = <email>;
message.To = <email>;
message.Subject = "Scheduled Power Outage"; message.Body = "Our servers will be down tonight.";
SmtpMail.Send (message);
and No need to specify the Server ip and somethings.it automatically take off the local host only



Post Reply
You must Sign In to post a response.
Next : Eiting & Updating DataGrid
Previous : program help
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

audio conferencing services

Contact Us    Privacy Policy    Terms Of Use