Click here to Skip to main content
15,915,324 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: "datagrid paging" Pin
_mubashir23-Nov-06 0:12
_mubashir23-Nov-06 0:12 
QuestionHelp !!! Pin
sukhchain singh22-Nov-06 23:40
sukhchain singh22-Nov-06 23:40 
AnswerDouble post Pin
leckey25-Nov-06 15:41
leckey25-Nov-06 15:41 
QuestionSetting username/passwords in the web.config using forms authentication? Pin
Red_Wizard_Shot_The_Food22-Nov-06 23:34
Red_Wizard_Shot_The_Food22-Nov-06 23:34 
AnswerRe: Setting username/passwords in the web.config using forms authentication? Pin
Britney S. Morales23-Nov-06 8:21
Britney S. Morales23-Nov-06 8:21 
QuestionSend mail Pin
aasstt22-Nov-06 22:19
aasstt22-Nov-06 22:19 
AnswerRe: Send mail Pin
Steven J Jowett22-Nov-06 23:36
Steven J Jowett22-Nov-06 23:36 
AnswerRe: Send mail Pin
Britney S. Morales23-Nov-06 3:46
Britney S. Morales23-Nov-06 3:46 
Do you have installed the Virtual Mail Service in your Server?

These code is at C# language, and use the localhost (IIS) mail Service.

<br />
private void SendEmailToClient(string to, string bodyMessage)<br />
    {<br />
        // System.Web.Mail.SmtpMail.SmtpServer is obsolete in 2.0<br />
        // System.Net.Mail.SmtpClient is the alternate class for this in 2.0<br />
        SmtpClient smtpClient = new SmtpClient();<br />
        MailMessage message = new MailMessage();<br />
        try<br />
        {<br />
            MailAddress fromAddress = new MailAddress("YOUR EMAIL", "YOUR NAME");<br />
<br />
            // You can specify the host name or ipaddress of your server<br />
            // Default in IIS will be localhost <br />
            smtpClient.Host = "localhost";<br />
<br />
            //Default port will be 25<br />
            smtpClient.Port = 25;<br />
<br />
            //From address will be given as a MailAddress Object<br />
            message.From = fromAddress;<br />
            MailAddress toAddress = new MailAddress(to);<br />
            // To address collection of MailAddress<br />
            message.To.Add(toAddress);<br />
            message.Subject = "This is an Email Test";<br />
<br />
            // CC and BCC optional<br />
            // MailAddressCollection class is used to send the email to various users<br />
            // You can specify Address as new MailAddress<br />
            message.CC.Add("admin@yoursite.com");<br />
<br />
            // You can specify Address directly as string<br />
            message.Bcc.Add(new MailAddress("moraleso@fmmb.org"));<br />
<br />
            //Body can be Html or text format<br />
            //Specify true if it  is html message<br />
            message.IsBodyHtml = false;<br />
<br />
            // Message body content<br />
            message.Body = bodyMessage;<br />
            // Send SMTP mail<br />
            smtpClient.Send(message);<br />
            //Send process was successful<br />
<br />
        }<br />
        catch (Exception ex)<br />
        {<br />
            Mensaje.Text = "You couldnt send the email" + ex.Message;<br />
        }<br />
    }<br />


Smile | :)

keep Learning and you never will be out of date...

Questionsms system Pin
jabbarsb22-Nov-06 21:39
jabbarsb22-Nov-06 21:39 
AnswerRe: sms system Pin
Coding C#22-Nov-06 23:17
Coding C#22-Nov-06 23:17 
GeneralRe: sms system Pin
jabbarsb22-Nov-06 23:31
jabbarsb22-Nov-06 23:31 
GeneralRe: sms system Pin
Coding C#23-Nov-06 19:07
Coding C#23-Nov-06 19:07 
QuestionDropdown Menu Pin
Rajiya22-Nov-06 20:13
Rajiya22-Nov-06 20:13 
AnswerRe: Dropdown Menu Pin
Imran Khan Pathan22-Nov-06 21:48
Imran Khan Pathan22-Nov-06 21:48 
GeneralRe: Dropdown Menu Pin
Rajiya23-Nov-06 0:32
Rajiya23-Nov-06 0:32 
Questionfind whether a datatable is present or not in a dataset Pin
pavansagar122-Nov-06 20:10
pavansagar122-Nov-06 20:10 
AnswerRe: find whether a datatable is present or not in a dataset Pin
Tamimi - Code22-Nov-06 20:33
Tamimi - Code22-Nov-06 20:33 
QuestionDropdownlist problem as DataGrid Control Pin
param thaker22-Nov-06 20:07
param thaker22-Nov-06 20:07 
AnswerRe: Dropdownlist problem as DataGrid Control Pin
_AK_22-Nov-06 21:02
_AK_22-Nov-06 21:02 
QuestionHow to use google earth from my web application? Pin
Guru_yogi22-Nov-06 19:41
Guru_yogi22-Nov-06 19:41 
Questionfile copyi from one machine to another in asp.net Pin
Guru_yogi22-Nov-06 19:36
Guru_yogi22-Nov-06 19:36 
Question"placing image on webform" Pin
ravikiranreddydharmannagari22-Nov-06 19:21
ravikiranreddydharmannagari22-Nov-06 19:21 
Questionlistbox [modified] Pin
kavithapuranik22-Nov-06 19:00
kavithapuranik22-Nov-06 19:00 
Questionexcel properties Pin
yesu prakash22-Nov-06 18:08
yesu prakash22-Nov-06 18:08 
Questionasp.net database connection error Pin
gaurabmani22-Nov-06 18:02
gaurabmani22-Nov-06 18:02 

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.