Click here to Skip to main content
15,884,099 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to reflect the change made to the table in the database at the time of updation itself? Pin
Christian Graus14-Apr-09 21:11
protectorChristian Graus14-Apr-09 21:11 
AnswerRe: How to reflect the change made to the table in the database at the time of updation itself? Pin
Christian Graus14-Apr-09 21:10
protectorChristian Graus14-Apr-09 21:10 
AnswerRe: How to reflect the change made to the table in the database at the time of updation itself? Pin
danico4912-Aug-09 14:43
danico4912-Aug-09 14:43 
Question[Message Deleted] Pin
shantanusenin14-Apr-09 18:45
shantanusenin14-Apr-09 18:45 
AnswerRe: error "Missing file: Urgent Pin
Yusuf14-Apr-09 18:54
Yusuf14-Apr-09 18:54 
AnswerRe: error "Missing file: Urgent Pin
Abhijit Jana14-Apr-09 19:05
professionalAbhijit Jana14-Apr-09 19:05 
AnswerRe: error "Missing file: Urgent Pin
Christian Graus14-Apr-09 21:07
protectorChristian Graus14-Apr-09 21:07 
QuestionProblem to sending mail Pin
Shahdat Hosain14-Apr-09 6:18
Shahdat Hosain14-Apr-09 6:18 
I applied following code. Output show Msg sent successfully. Actually never it is sent to destination. Messages are only push to C:\inetpub\mailroot\queue;
1.I think IIS can not push the emails out on the internet.How can I look on SMTP response code.
2.I want to send emails from localhost. Now I confused how it possible sending a mail from anonymous mail address like "shahdat_mbstu@yahoo.com" through localhost, bcoz there no relation between my localhost and my mail address "shahdat_mbstu@yahoo.com". ;
3. Please help me!;



public void CreateCopyMessage(string server)
{
MailAddress from = new MailAddress("shahdat_mbstu@yahoo.com", "Ben Miller");
MailAddress to = new MailAddress("shahdat45ict@yahoo.com", "Shahdat Kooras");//jane@contoso.com
MailMessage message = new MailMessage(from, to);
// message.Subject = "Using the SmtpClient class.";
message.Subject = "Using the SmtpClient class.";
message.Body = @"Using this feature, you can send an e-mail message from an application very easily.";
// Add a carbon copy recipient.
MailAddress copy = new MailAddress("Notification_List@contoso.com");
message.CC.Add(copy);
SmtpClient client = new SmtpClient(server);
// Include credentials if the server requires them.
client.Credentials=
client.Credentials = CredentialCache.DefaultNetworkCredentials;
Console.WriteLine("Sending an e-mail message to {0} by using the SMTP host {1}.",
to.Address, client.Host);

try
{
client.Send(message);
lblMessage.Text = "Message successfully sent";
}
catch (Exception ex)
{
Console.WriteLine("Exception caught in CreateCopyMessage(): {0}",
ex.ToString());
}
}

shahdat

AnswerRe: Problem to sending mail Pin
Yusuf14-Apr-09 9:17
Yusuf14-Apr-09 9:17 
AnswerRe: Problem to sending mail Pin
Abhijit Jana14-Apr-09 19:40
professionalAbhijit Jana14-Apr-09 19:40 
QuestionWhy does one session variable store multiple values? Pin
Tomz_KV14-Apr-09 6:10
Tomz_KV14-Apr-09 6:10 
AnswerRe: Why does one session variable store multiple values? Pin
Yusuf14-Apr-09 9:22
Yusuf14-Apr-09 9:22 
GeneralRe: Why does one session variable store multiple values? Pin
Tomz_KV14-Apr-09 9:41
Tomz_KV14-Apr-09 9:41 
AnswerRe: Why does one session variable store multiple values? Pin
Tomz_KV15-Apr-09 3:31
Tomz_KV15-Apr-09 3:31 
QuestionDetecting changes on a page Pin
dptalt14-Apr-09 4:44
dptalt14-Apr-09 4:44 
AnswerRe: Detecting changes on a page Pin
binarymax14-Apr-09 5:32
binarymax14-Apr-09 5:32 
GeneralRe: Detecting changes on a page Pin
dptalt14-Apr-09 5:44
dptalt14-Apr-09 5:44 
GeneralRe: Detecting changes on a page Pin
binarymax14-Apr-09 6:07
binarymax14-Apr-09 6:07 
GeneralRe: Detecting changes on a page Pin
dptalt14-Apr-09 6:52
dptalt14-Apr-09 6:52 
GeneralRe: Detecting changes on a page Pin
binarymax14-Apr-09 9:20
binarymax14-Apr-09 9:20 
AnswerRe: Detecting changes on a page Pin
Yusuf14-Apr-09 9:24
Yusuf14-Apr-09 9:24 
QuestionVS2008 SOAP Client - losing Session problem [modified] Pin
Vozzie214-Apr-09 4:44
Vozzie214-Apr-09 4:44 
AnswerRe: VS2008 SOAP Client - losing Session problem Pin
anbam15-Nov-10 22:54
anbam15-Nov-10 22:54 
QuestionScroll bars of TreeView should be invisble when they are disabled by using CSS class Pin
indian14314-Apr-09 3:35
indian14314-Apr-09 3:35 
AnswerRe: Scroll bars of TreeView should be invisble when they are disabled by using CSS class Pin
binarymax14-Apr-09 3:41
binarymax14-Apr-09 3:41 

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.