Click here to Skip to main content
15,894,720 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: publishing pages using FTB program. Pin
ahlamasp1-Jan-09 5:09
ahlamasp1-Jan-09 5:09 
QuestionPrecreated column in inherited gridview Pin
Member 202259231-Dec-08 6:39
Member 202259231-Dec-08 6:39 
QuestionEmail exist or not. Pin
kavitha_blueindia31-Dec-08 6:15
kavitha_blueindia31-Dec-08 6:15 
AnswerRe: Email exist or not. Pin
scottgp31-Dec-08 6:48
professionalscottgp31-Dec-08 6:48 
AnswerRe: Email exist or not. Pin
Christian Graus31-Dec-08 17:11
protectorChristian Graus31-Dec-08 17:11 
QuestionI want to create option like print and mail to friend in my site same as codeproject Pin
cooolguymca31-Dec-08 2:56
cooolguymca31-Dec-08 2:56 
AnswerRe: I want to create option like print and mail to friend in my site same as codeproject Pin
N a v a n e e t h31-Dec-08 3:01
N a v a n e e t h31-Dec-08 3:01 
AnswerRe: I want to create option like print and mail to friend in my site same as codeproject Pin
Aman Bhullar31-Dec-08 6:02
Aman Bhullar31-Dec-08 6:02 
For sending mail use code

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Net.Mail;

public class clsSendMail
{
    private String SMTPServer = string.Empty;
    public clsSendMail()
    {
        SMTPServer = "localhost";
    }

    public String getSMTPServerName()
    {
        return SMTPServer;
    }

    public bool SendMail(String strToUser, String strFromUser, String strSubject, String strMessage)
    {
        bool blnResult = true;
        MailMessage myMail = new MailMessage();
        SmtpClient objSMTP = new SmtpClient(SMTPServer);

        myMail.To.Add(strToUser);
        myMail.From = new MailAddress(strFromUser);
        myMail.Subject = strSubject;
        myMail.Body = strMessage;
        myMail.IsBodyHtml = true;

        try
        {
            //obClient.Send(myMail);
            objSMTP.Send(myMail);
            blnResult = true;
        }
        catch
        {
            blnResult = false;
        }

        return blnResult;
    }
}

QuestionHow to use FileUpload Pin
Muhammad Gouda31-Dec-08 2:17
Muhammad Gouda31-Dec-08 2:17 
AnswerRe: How to use FileUpload Pin
N a v a n e e t h31-Dec-08 2:52
N a v a n e e t h31-Dec-08 2:52 
GeneralRe: How to use FileUpload Pin
Abhijit Jana31-Dec-08 2:56
professionalAbhijit Jana31-Dec-08 2:56 
GeneralRe: How to use FileUpload Pin
N a v a n e e t h31-Dec-08 2:59
N a v a n e e t h31-Dec-08 2:59 
GeneralRe: How to use FileUpload Pin
Abhijit Jana31-Dec-08 3:31
professionalAbhijit Jana31-Dec-08 3:31 
AnswerRe: How to use FileUpload Pin
MarcelloTurnbull31-Dec-08 3:03
MarcelloTurnbull31-Dec-08 3:03 
GeneralRe: How to use FileUpload Pin
MarcelloTurnbull31-Dec-08 3:04
MarcelloTurnbull31-Dec-08 3:04 
AnswerRe: How to use FileUpload - I got it Pin
Muhammad Gouda31-Dec-08 3:19
Muhammad Gouda31-Dec-08 3:19 
QuestionProblem With Embedding .NET ActiveXcontrol (Window user control) inside aspx Pin
Dattatraya K31-Dec-08 1:30
Dattatraya K31-Dec-08 1:30 
AnswerCrosspost : Please ignore Pin
Brij31-Dec-08 2:14
mentorBrij31-Dec-08 2:14 
QuestionAuto send Emails Pin
kavitha_blueindia31-Dec-08 1:05
kavitha_blueindia31-Dec-08 1:05 
AnswerRe: Auto send Emails Pin
Abhijit Jana31-Dec-08 1:09
professionalAbhijit Jana31-Dec-08 1:09 
GeneralRe: Auto send Emails Pin
Tamer Oz31-Dec-08 1:32
Tamer Oz31-Dec-08 1:32 
GeneralRe: Auto send Emails Pin
Abhijit Jana31-Dec-08 1:47
professionalAbhijit Jana31-Dec-08 1:47 
GeneralRe: Auto send Emails Pin
ednrg31-Dec-08 8:08
ednrg31-Dec-08 8:08 
AnswerRe: Auto send Emails Pin
Christian Graus31-Dec-08 17:14
protectorChristian Graus31-Dec-08 17:14 
QuestionAccess provider for Roles [modified] Pin
scothykonma31-Dec-08 0:12
scothykonma31-Dec-08 0:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.