|
Hello Everyone,
I want to send the coding using the given below coding But i'm getting the error
"Could not access 'CDO.Message' object."
Plz suggest me the ways to come out of the problem
MailMessage mail =new MailMessage();
mail.To="manoj.msb1984@gmail.com";
mail.From="mail@saamstesting.com";
mail.Subject="Your Password";
mail.Priority = MailPriority.Normal;
mail.Body="This is Ur Password";
try
{
SmtpMail.SmtpServer="mail.saamstesting.com";
SmtpMail.Send(mail);
lblMsg1.Text="Mail Sent Successfully";
}
catch(Exception ex)
{
lblMsg1.Text=ex.Message.ToString();
lblMsg1.ForeColor=Color.Red;
}
|
|
|
|
|
(1) Specify a valid mail server for the SmtpMail.SmtpServer property. If that property is not set, at least set it to 127.0.0.1. For example:
SmtpMail.SmtpServer = "127.0.0.1".
(2)If you are using "localhost" or "127.0.0.1" as the SmtpMail.SmtpServer, you may not have permissions to relay through the IIS SMTP Service. To allow access, open up the IIS Admin MMC. Locate the SMTP Virtual Server, and right-click, then select Properties. On the Access tab, click the Relay button. In the Relay Restrictions dialog, grant your IP address (127.0.0.1) to the Computers listbox. Close down all dialogs, and restart the SMTP Service.
Hope this could solve your problem.
SSK.
|
|
|
|
|
Hello Sir,
I've done as u r asking but using this way i'm getting successful message but not receiving the email at my gmail Account.
my Smtp Server="mail.saamstesting.com";
plz suggest some other way .........
one more thing whenever i'm trying to send the email at my "mail@saamstesing.com" then i'm receiving the mails but i'm not able to send the emails in ASP.NET
plz................. it's very urgent
|
|
|
|
|
|
There exist several problems and solutions.
Ever thought of trying Google? Google results
At least you should provide information about what you have already tried.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
"Plz it's very urgent" isn't a very good subject line and gets ignored by those who can help the most.
only two letters away from being an asset
|
|
|
|
|
i am sending mail using arabic texts ..
My code is below
help me plz.. advance thanks to all
Dim MailApp As New MailMessage
MailApp.Body ="Arabic Texts"
MailApp.BodyEncoding = MailApp.BodyEncoding.UTF8
when recieving the mail through yahoo account it shows only ??? marks..
but in gmail it shows right texts..
help me plz....
advance thanks...
|
|
|
|
|
Did you check your Unicode?
SSK.
|
|
|
|
|
thanks for reply.
This is my code simply.
Dim MailApp As New MailMessage
MailApp.Body ="Arabic Texts"
MailApp.BodyEncoding = MailApp.BodyEncoding.UTF8
it shows the right chars in gmail but ??? marks in yahoo account.
|
|
|
|
|
Hi,
This is from Chandrakanth. I am using GridView Control. And I would like
to update the records through Coding. Can any one tell me how to go for
that.
Thansk in Advance
With Regards
Chandrakanth
Chandrakanth
Chandrakanth
|
|
|
|
|
u mean u want to update records in databases through gridview??
software student
|
|
|
|
|
i didnt understand ur query..however this code may help u updating records in databases if changes are made in datagrid
this code will b behind update button
for (int i = 0; i <= editgrid.RowCount - 1; i++)
{
str = "UPDATE table SET column1 = '" + editgrid.Rows[i].Cells[1].Value + "', column2='" + editgrid.Rows[i].Cells[2].Value + " WHERE cid = " + editgrid.Rows[i].Cells[0].Value;
SqlCommand com = new SqlCommand(str, conn);
com.ExecuteNonQuery();
}
software student
|
|
|
|
|
Hi,
Once again This is from Chandrakanth.
Actually i am using GridView Control in ASP.NET2.0
I want to update the records in databases through GridView Control by
using Coding in the CSharp.
not through Properties.
Thanks for Reaponse.
Thanks& Regards
Chandrakanth
Chandrakanth
|
|
|
|
|
Dear all,
i need to send fax from my asp.net page, i am using c#dotnet.
Can any body have idea regarding this.
thanks in advance,
Eswar.
|
|
|
|
|
You can't send fax with ASP.NET just like that. You need to have some faxing service available (3rd party) that has some SDK so that you can connect to it using your .NET code.
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
My application has all the webpages inside a specific folder in the application. When i try to use site map concept here, I am not getting the breadcrumb. Whereas, when i tried using the same with webpages that are directly attached to the application i am getting the breadcrumb. can any one help me out with dis??
Thanks
Ramya
|
|
|
|
|
It would be nice to have some code from your sitemap file to start with.
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
We could not judge what is your problem without seeing your code?
So please paste the code what you have did for the site map.
SSK.
|
|
|
|
|
These are the entries in web.sitemap.
/*
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="../Webpages/Sample.aspx" title="Sample" description="">
<siteMapNode url="../Webpages/Sample1.aspx" title="Sample1" description="">
<siteMapNode url="../Webpages/Sample2.aspx" title="Sample2" description=""/>
</siteMapNode>
</siteMapNode>
</siteMap>*/
I have an main page named sample. From which I navigate to Sample1 and then from Sample1 I navigate to Sample2.
Sample >> Sample1 >> Sample2. This is the breadcrumb expected.
Note: Sample, Sample1, Sample2 are aspx pages placed inside folder named Webpages.
In the aspx page of Sample2 i have included the following code.
<asp:sitemappath id="SiteMapPath2" runat="server" />
-- modified at 12:27 Thursday 16th August, 2007
|
|
|
|
|
Wake up sunshine youve got an extra equals sign in there
That's probably why.
siteMapNode url="="../Webpages
Please rate this solution as spooner. Thanks
|
|
|
|
|
Sorry.. That was an printing mistake. I dont have that equals sign in my original code.
|
|
|
|
|
Sorry try removing the ../
If i'm right it works from the root so you should probably put...
<br />
siteMapNode url="Webpages/Sample2.aspx<br />
|
|
|
|
|
I prefer to be explicit and use the full "~/foo/bar.aspx" paths.
Sounds like you are kinda shoehorning the sitemap framework into something its not really designed for, like a wizard? If it needs a lot of hacking with .sitemap files you might be better off using the static methods on the System.Web.Sitemap object to programatically provide what you want to appear.
|
|
|
|
|
What can you do using the static model. Can you provide an example? Thanks
|
|
|
|
|