|
Hello friends
I am trying to send mail in asp.net when it is from Example ... abcd@example.com to efgh@example.com it is reaching perfectly but whenever i send mail to different id like yahoo error is coming as
You should authenticate first...
Please explain how to make it work on other id's too
Thank You
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
Can you give us a bit more detail about what you are doing:
Is it a localhost or web server?
Whats the full error message?
Have you tested many other e-mail address?
|
|
|
|
|
i have tested it on the local server ... and code is
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.From = new MailAddress("abcd@example.com");
message.To.Add(new MailAddress("mr.abcd@yahoo.com"));
message.Subject = "This is my subject";
message.Body = "This is a test message";
SmtpClient client = new SmtpClient();
client.Send(message);
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
Is the server inside a local network?
First test if you can send e-mails to a local address then test sending e-mails to outside addresses like yahoo, hot mail etc
it could be that your mail server isnt yet set up to send e-mail to those types of addresses
|
|
|
|
|
ok...actually i dont know how to setup mail server to send mails to different server
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
I think there are plenty of articles on the net that will help you
|
|
|
|
|
Try with the same code..
System.Net.Mail.MailMessage objEmail = new System.Net.Mail.MailMessage(From, To);
objEmail.Subject = "Subject";
objEmail.Body = "Body";
objEmail.IsBodyHtml = true;
System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient();
client.Host = "smtp.orgname.com";
client.UseDefaultCredentials = false;
System.Net.NetworkCredential auth = new System.Net.NetworkCredential(From, "P@ssw0rd");
client.Credentials = auth;
client.Send(objEmail);
In the above code client.Host = "smtp.example.com" where example is abcd@example.com.
smile
|
|
|
|
|
you should have some config in web.config for the post email's smtp,username,password!
like this:
<configuration>
<system.net>
<mailSettings>
<smtp from="xxx@xx.com">
<network host="mail.xxx.net" password="xxx" port="25" userName="webmaster" defaultCredentials="false"/>
</smtp>
</mailSettings>
</system.net>
</configuration>
I love li li huang ,
ha ha ,
but you don't who is she!
|
|
|
|
|
Hello All,
I want to display data rowwise in any databond control.for example iam having a table called tbl_amt with fields amt1,amt2,amt3.......
in amt1 field iam having values 100,200,300,400,500
iam having static heading titles sunday,monday,tuesday.......
i want to display all this values in row wise manner in according with te static title
can we do it with place holder
Thanks in advance
Ali
|
|
|
|
|
Hi all,
I am generating a gridview on the fly as below...
ordergrid = New GridView<br />
ordergrid.Width = Unit.Percentage(100)<br />
ordergrid.BorderColor = Color.Black<br />
ordergrid.DataSource = GetOrderSource(orders(index))<br />
ordergrid.EmptyDataText = "No items in this order"<br />
ordergrid.DataBind()<br />
AddHandler ordergrid.RowDataBound, AddressOf ordergrid_RowDataBound
Protected Sub ordergrid_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles ordergrid.RowDataBound<br />
If e.Row.RowType = DataControlRowType.DataRow Then<br />
Response.Write(e.Row.Cells(0).Text)<br />
End If<br />
End Sub
but it gives me error while compiling...
Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
How can i achieve this... I googled but the results didn`t helped me..
When you fail to plan, you are planning to fail.
|
|
|
|
|
when you are adding in your control remember to use a withevents statement
If you are going to use the handle clause you will need to add in the withevents statement
|
|
|
|
|
.netman wrote: when you are adding in your control remember to use a withevents statement
If you are going to use the handle clause you will need to add in the withevents statement
so what should i do so that the handles clause in rowdatabound points to the newly generated gridview.Can u explain with a small example.
When you fail to plan, you are planning to fail.
|
|
|
|
|
I have a FormView.
the EdititemTemplate of FormView contained some controls.
such as DropDrownList,TextBox.
I want to initialize selectItem or Text of dropDownLists and TextBoxes.
but I can't get DropDownList and TextBox by "FormView.FindControls" method.
how do?
Thanks.
|
|
|
|
|
I would imagine you do it in the ASPX directly, or there is an event that fires when editing starts, you'd do it there to set the values to match the existing values from your data source. ( you may be able to write binding statements to do it that way in your ASPX also )
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 )
|
|
|
|
|
in EdititemTemplate I have a Birthday Field.
I separate Date
Date will be divided into three sections by me, corresponding to the three DropDownLists(year,month,day).
how initialize these DropDownList?
|
|
|
|
|
With the day, month and year from your data source, I suppose. I'm not sure what else I can add. what's the incoming data look like, if it's a DateTime, you can seperate it into Day Month and Year properties.
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 )
|
|
|
|
|
I have a detail to which I have binded data from code behind
protected void Page_Load(object sender, EventArgs e)
{
string categoryid = Request.QueryString["catid"];
string itemid = Request.QueryString["itemid"];
string selectCommand = "SELECT informationimage, informationdescription FROM iteminformation WHERE itemid = " + itemid;
DataSet ds = DataBaseManagemet.getdataset("iteminformation", selectCommand);
DetailsView1.DataSource = ds;
DetailsView1.DataBind();
}
Now when in paging when I did
protected void DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e)
{
DetailsView1.PageIndex = e.NewPageIndex;
}
Its not working porperly I have to click twice in the page index to redirect to new page index plz help me
|
|
|
|
|
TIMESTAMP=2008-04-29T05:57:10Z&CORRELATIONID=f504bd22c2255&ACK=Failure&L_ERRORCODE0=15005&L_SHORTMESSAGE0=Processor Decline&L_LONGMESSAGE0=This transaction cannot be processed.&L_SEVERITYCODE0=Error&VERSION=3.000000&BUILD=548868
what is this this error?
|
|
|
|
|
When exactly are you getting this error message?
Please be more specific.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Looks like an error from your credit card gateway to me. They don't have documenttion ?
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 )
|
|
|
|
|
You should try typing the error into google, someone before you might have had this error before
|
|
|
|
|
I doubt it, that's a specific, detailed error, probably from a payment gateway. Most people would know better than to even post that on the web.
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 )
|
|
|
|
|
The exact string might not elicit a search result since the transaction numbers are dynamic. You may need to break down the string into distinct patterns and then try out on the search engine.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
I am facing problem while making web request by WebClient.
I am making request to google map geocode apge to findout the longitude and latitude of particular address.
Here is my code to do that :
Dim QueryString As String
Dim responseText As String = ""
Dim WC As New Net.WebClient
Dim SR As IO.StreamReader
QueryString = "?q=" & getValidAddressString() & "&output=csv&key=" & ConfigurationManager.AppSettings("GeoCodeKey")
Dim redirectURL As String = ConfigurationManager.AppSettings("GeoCodeURL") & QueryString
SR = New IO.StreamReader(WC.OpenRead(redirectURL))
responseText = SR.ReadToEnd()
SR.Close()
processResponseText(responseText)
The strange thing is that for same address string, the code is working without any problem in one page. While the same code(have copy pasted) in another page is throwing the following error :
Illegal characters in path.
Exception Details: System.ArgumentException
at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.Path.GetFullPath(String path)
at System.Net.WebClient.GetUri(String path)
at System.Net.WebClient.DownloadData(String address)
at KG.GeoCodeHelper.Page_Load(Object sender, EventArgs e) in
|
|
|
|