Jump to content

dhanjish

Members
  • Posts

    5
  • Joined

  • Last visited

dhanjish's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi all,Thanks for ur reply.I followed the following code and it wrkd Dim str As String lab.Visible = False MailMessage = New System.Net.Mail.MailMessage Dim username As String = "name" Dim pswd As String = "pswd" Dim credentials As New NetworkCredential("hostaddress", "password") client = New SmtpClient MailMessage.To.Add("daa@rediffmail.com") MailMessage.From = New MailAddress("gg@gmail.com") MailMessage.Subject = "Test" MailMessage.Body = "Hai hw r u ? " client.Host = "host address" Try client.Credentials = credentials client.Send(MailMessage) Catch ex As Exception If (ex.Message = "The remote name could not be resolved:'mail@divisionalforesttcr.org' ") Then str = " Failed!! your mail has not been sent because of some technical reasons " ' Response.Write(str) Else str = ex.ToString() ' Response.Write(str) End If End TryThanks for your support
  2. hi,i am new to .net 2005. i used to work in .net 2003.So shall i know how to send a simple mail in 2005.i have tried many code but the mail is not going.Pleas elet me know..........Dhanjish
  3. Hi, We tried ur code and it worked ..........Thank u for ur response
  4. hello,I want to send some data in mail with Line breaksam getting the data from the database into a variable, where new line entries are stored as spaces.while retrieving from database i am using Regex object to replace '\n' with "<br>"I am able to get this result into asp Datgrid.But while sending in same way to mail, its showing data as single para.Please let me know if theres any solution to my problem.Looking forward for a quick response,Romita
  5. Hi,I have two buttons on a page which is directing to two different pages on their click event.ie there is one button named "change" and another one named "search".If i press enter key related to the change button action,its performs action for search button insted of performing change button action.So shalll u help us how to contol the actions while pressing entr key.
×
×
  • Create New...