|
everything executed and no error message but unable to send mail..
sent mail from and to local network...
guide me...
MailMessage message = new MailMessage();
message.From = TextBox1.Text;
message.To = TextBox2.Text;
message.Subject = TextBox3.Text;
message.Body = TextBox4.Text;
try
{
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(message);
}
catch (Exception ex)
{
Label1.Text=ex.Message.ToString();
}
|
|
|
|
|
Have you configured SMTP service on the dev/deployment box? If yes check if the messages are in the Bad mail folder. Else configure SMTP service, All the best for that .
|
|
|
|
|
messages are in badmail folder what is the problem how to send...
|
|
|
|
|
There might be a multitude of reasons why the mail is moved to bad mail. For starters check if the SMTP configuration is correct. As Anuragh has pointed, it could be a problem with the SMTP routing.
Also, open the message from the bad mail folder to see if there is anything wrong in the message itself, may be the from, to, etc is not valid.
Also, check out the reference that Anuragh has provided.
|
|
|
|
|
smtp is configured correctly...
this is error im getting in badmail...
Final-Recipient: rfc822;madhuk@ritwik.net
Action: failed
Status: 5.5.0
Diagnostic-Code: smtp;550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces.
Received: from netzoom ([192.168.1.140]) by netzoom with Microsoft SMTPSVC(6.0.3790.1830);
Fri, 11 Dec 2009 11:33:28 +0530
thread-index: Acp6J6iir0Pz4+GbReinRqj/qV6YfA==
Thread-Topic: hi
From:madhuk@ritwik.net;
To:madhuk@ritwik.net;
Subject: hi
Date: Fri, 11 Dec 2009 11:33:28 +0530
Message-ID: <000601ca7a27$a8a2df80$8c01a8c0@netzoom>;
MIME-Version: 1.0
|
|
|
|
|
madhukk wrote: Diagnostic-Code: smtp;550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces.
I guess the lines message there pretty much sums up your errors.
|
|
|
|
|
i can send and recieve emails for that mailid through outlook express...
|
|
|
|
|
|
Hi Peoples,
I am working in web application, and i want to open an additional window from the main form, it will show the additional details of the record( like tool tip window) and i want the same as modal window for the parent form.i have referred in the internet as all the examples are from asp.net codes.
is there possible the same via C#.net code,.?
if so please help me.
thanks in advance.
|
|
|
|
|
Hi Hema,
I think you can create one more page (say Modal page or sub page). On clicking a button in main page , try to display this modal page. Resize this page before displaying so that it looks like Modal webpage. Try javascripts to acomplish it.
|
|
|
|
|
I think you can use AJAX Modal Popup extender. Check out the results from Google [^]
|
|
|
|
|
Hi All,
How to create a registry key in client System? and how can i register a dll(inject dll) in client system? Using asp.net......Please guide.
Thanks in advance
|
|
|
|
|
No.... You cant..
You need to forcefully let the user install an application.. and access the Registry from your software. Its impossible access registry of the client side because of Browser security.
|
|
|
|
|
Hi Abhi,
Actually i am trying to launch an notepad application in client system.i referred Whirly Wiry Web and created an application which works fine..But i have to create registry key and register the dll manually in the client system..i want this to be done through program.How can it be done?
Thanks in advance.
|
|
|
|
|
Well... if your issue is to show any notes, I would recommend to show this in browser rather than opening it in notepad. You might use textarea easily to create an interface just like Notepad.
I saw you are using ActiveX. Well, ActiveX has some limitation as well. Even from ActiveX you cant register or directly access the file system. It has to use the interfaces it provides to access the file system from the browser.
AFAIK, you cant register some external dll from ActiveX as well.
So the only option, if you still require this, is let the user download your custom software and run in their machine. The executable would be downloaded to clients file system to access and register dlls .
Cheers.
|
|
|
|
|
It sounds malicious. Why would you like to place your dll into client computers?
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Does your client Aware of that ? If yes, allow client to download one exe from your site and run. Which will call your Web Service to send you the information of registry. Or you can use ActiveX ( Only on IE ).
But my question is Does your client aware of this ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
hi Abhi,
yes they know it..currently i am using ActiveX. But i don't know how to pass dll to the client system and register it.
|
|
|
|
|
Prasadsm wrote: currently i am using ActiveX.
This will work only on IE
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi All,
How to set the all child control in Panel to Readonly Mode.
i have nearly 18 TB, 10 RadioButtionList and 10 DropdownLists in Panel Control.
Need a function which set the all the controls Readonly mode..
JohnDas
|
|
|
|
|
You can loop through the control collection for the panel and set the ReadOnly property as true wherever applciable. You can make use of reflection instead of switch cases. Like this:
PropertyInfo propInfo = this.Controls[ctrlIndex].GetType().GetProperty("ReadOnly");
if(propInfo != null)
propInfo.SetValue(this.Controls[ctrlIndex], true, null);
In case the control does not has a ReadOnly property, you can check for Enabled .
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Good answer....
|
|
|
|
|
Thanks.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Good answer! I was think about using switch case with in a loop, but this is even simpler!
Very good & Thanks!
|
|
|
|
|
hii all....
i am using role and membership provider in my website.The default password validation
when we create new user is given such that the password length must be atleast seven characters and shud be alpha numeric.I want to cutomize this validation to make it simple for user.how can i do it.plz guide me.....
thank's in advance.........
|
|
|
|