|
Hi friends
I am able to send mail to the id of same domain but not to other....
this is the code and below of the code is error
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.From = new MailAddress(frmEmail);
message.To.Add(new MailAddress(txtEmailAddress.Text));
message.Subject = " From "+ Label1.Text + " Your Booking Information " ;
message.Body = booking_body;
SmtpClient client = new SmtpClient();
client.Host = hostname;
client.UseDefaultCredentials = false;
System.Net.NetworkCredential auth = new System.Net.NetworkCredential(user_name,password);
client.Credentials = auth;
client.Send(message);
ERROR:
Syntax error, command unrecognized. The server response was: mr.sindhutiwari@yahoo.com relaying prohibited. You should authenticate first
please tell me where i am going wrong
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
you can set the relay property of SMTP server by following steps
open IIS
Right click on default SMTP server, then select properties
gott Access tab, there you will find Relay button, there you set the Relay restrictions.
Regards,
Sylvester G
If we don't succeed, we run the risk of failure
|
|
|
|
|
Can you send e-mail to local address but not web address like yahoo and hotmail?
|
|
|
|
|
my mail server is mail.abcd.com so i am able to send mails to any id of this domain like xyz@abcd.com but when i tried to send it to other ids error raised
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Hi
I have just tried implementing a new control for RSS feeds for my website
The control worked fine locally but when I put it on the server it returned the above error message.
Anyone knows why this would be?
cheers
|
|
|
|
|
that means server unreachable from your server. Try to open the port to access particular host
Regards,
Sylvester G
If we don't succeed, we run the risk of failure
|
|
|
|
|
So what your saying is that there is a port on the server which is blocking rss feeds from other websites
|
|
|
|
|
that could be one reason
Regards,
Sylvester G
If we don't succeed, we run the risk of failure
|
|
|
|
|
hi,
i hav a problem. i require a functionality in my website that when i'm logged out of my website and if i've pressed back button after logging out, i am coming to the same page. where as i want session to be deleted for that user and it shouldn't navigate back instead it should say that user has been logged out. please help, its urgent.[
thanks in advance...
Shraddha
|
|
|
|
|
try
System.Web.Security.FormsAuthentication.SignOut().
|
|
|
|
|
The autoeventwireup , if it is set to false , it will not execute the code written in the page load function , and reverse is true.
My question is , how should i implement this case in the project and in which situation i should use it?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
if ajax is incorporated with my project , i can easily invoke the message box using scriptmanager.registerstartupscript(......), what should i do in case , i am not using the ajax in the project?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Can you explain that again please
If you are not using ajax in your project you dont need scriptmanager
|
|
|
|
|
The issue is , i am not being able to invoke the message box.Now , for some reasons i used ajax in the project.Subsequently , i got the scriptmanager class.Through this class , i can invoke the message box , using the below code.
scriptmanager.registerstartupscript(page,typeof(page),"","alert('message box');",true);
if i am not using the ajax in the project.Then the script manager class does not includes in the intellisence.
Now , how should i invoke the message box?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
You could use javascript to invoke the messagebox. I dont think scriptmanager would make that much of a difference.
I could see it being a probelm if you used the extender control which provides a confirmation message but that isnt what your doing
|
|
|
|
|
Can we dynamically add menu item in Microsoft dynamic CRM 4.0 in asp.net
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
how do I hide or encrypt source code asp.net that has important value to send to another server.
indy
thanks for advance
|
|
|
|
|
Check this out:
http://www.codeproject.com/KB/web-security/QueryStringEncryptionNET.aspx
|
|
|
|
|
thanks .netman but I don't know how program(sourcecode) it work
can you explain this sourcecode
thanks for advance
indy
|
|
|
|
|
Hi,
I am using input button type ="submit" and I want to redirect to(.aspx) another page if the dropdown value "Cheque" is selected.
How Can I do?
Thanks
|
|
|
|
|
if the button is on the client side then check the value of dropdown in the javascript and then open the other aspx page using window.open()...
if the button is on the server side then on the button click check the dropdown value and use Response.Redirect(other aspx page url)..
.....
|
|
|
|
|
Hi,
I am using .net's Dropdownbox. Dropdown box contains 3 values.
if Credit card is used I am redirect to payment gateway. for payment gateway
i am using input button type ="submit" because it was essential.
Now if the other values select then I want to redirect to .aspx page when same input button is click.
Thanks
|
|
|
|
|
i didn't understand where u got held up..
Is the input button is on the server side? if so then in the post back check the drop down value .. if it is Credit Card then redirect it to payment gateway..
.....
|
|
|
|
|
Two ways
1 - can you access the form tag and change it's action via javascript ?
2 - why not just redirect in your code behind if the dropdown has that value ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If possible just put an onselectedchange event for your dd in your code behind and the redirect in there
|
|
|
|