Click here to Skip to main content
15,919,893 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: default.aspx.cs can not see classes added in App_Code folder Pin
himanshu256114-Jul-09 21:34
himanshu256114-Jul-09 21:34 
GeneralRe: default.aspx.cs can not see classes added in App_Code folder Pin
freshers14-Jul-09 21:41
freshers14-Jul-09 21:41 
GeneralRe: default.aspx.cs can not see classes added in App_Code folder Pin
himanshu256114-Jul-09 21:52
himanshu256114-Jul-09 21:52 
QuestionRe: default.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 22:03
professionalChesnokov Yuriy14-Jul-09 22:03 
AnswerResolved - Re: default.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 22:06
professionalChesnokov Yuriy14-Jul-09 22:06 
QuestionProblem with membership provider DB created using ASP.NET configuration Pin
ptr_Electron14-Jul-09 21:01
ptr_Electron14-Jul-09 21:01 
AnswerRe: Problem with membership provider DB created using ASP.NET configuration Pin
r a m e s h15-Jul-09 0:40
r a m e s h15-Jul-09 0:40 
QuestionMail is not reached Pin
Kissy1614-Jul-09 20:56
Kissy1614-Jul-09 20:56 
Hi all,
Am trying to send an email from my asp.net page.
Am using 5 textboxes and a button.
Following is my code ,
After clicking the submit button it is displaying that mail sent successfully.
How to ensure that mail has been reached.In my gmai maibox no msg was there.
Can anybody tell me.??


Submit Button click event
Dim tc, cc, bcc, subject, body As String
tc = _txtTo.Text
cc = _txtFrom.Text
bcc = _txtBCC.Text
subject = _txtSubject.Text
body = _txtMessage.Text
Dim status As Integer = sendMail(tc, cc, bcc, subject, body)
If (status = 1) Then
Response.Write("your mail has been sent successfully")
Else
Response.Write("sorry! your mail could not be sent�")
End If

My sendMail fuction
Private Function sendMail(ByVal tc As String, ByVal cc As String, ByVal ccc As String, ByVal subject As String, ByVal body As String) As Integer
Try
SmtpMail.SmtpServer = "localhost"
Dim msg As MailMessage = New MailMessage
msg.From = "mymail@gmail.com"
msg.Cc = cc
msg.Bcc = ccc
msg.Subject = subject
msg.Body = body
SmtpMail.Send(msg)
Return 1
Catch ex As Exception
Return 0
End Try

End Function

kissy

AnswerRe: Mail is not reached Pin
SeMartens14-Jul-09 21:15
SeMartens14-Jul-09 21:15 
GeneralRe: Mail is not reached Pin
Kissy1614-Jul-09 21:20
Kissy1614-Jul-09 21:20 
QuestionHow to handel NULL referance Pin
vnsraj14-Jul-09 19:47
vnsraj14-Jul-09 19:47 
AnswerRe: How to handel NULL referance Pin
Brij14-Jul-09 20:20
mentorBrij14-Jul-09 20:20 
AnswerRe: How to handel NULL referance Pin
Vimalsoft(Pty) Ltd14-Jul-09 20:33
professionalVimalsoft(Pty) Ltd14-Jul-09 20:33 
Questionhow to call a method of one user control in another user control Pin
lakshmichawala14-Jul-09 18:47
lakshmichawala14-Jul-09 18:47 
AnswerRe: how to call a method of one user control in another user control Pin
Vimalsoft(Pty) Ltd14-Jul-09 20:36
professionalVimalsoft(Pty) Ltd14-Jul-09 20:36 
GeneralRe: how to call a method of one user control in another user control Pin
lakshmichawala14-Jul-09 21:05
lakshmichawala14-Jul-09 21:05 
GeneralRe: how to call a method of one user control in another user control Pin
Vimalsoft(Pty) Ltd14-Jul-09 21:09
professionalVimalsoft(Pty) Ltd14-Jul-09 21:09 
GeneralRe: how to call a method of one user control in another user control Pin
lakshmichawala14-Jul-09 21:18
lakshmichawala14-Jul-09 21:18 
GeneralRe: how to call a method of one user control in another user control Pin
Vimalsoft(Pty) Ltd14-Jul-09 21:54
professionalVimalsoft(Pty) Ltd14-Jul-09 21:54 
GeneralRe: how to call a method of one user control in another user control Pin
DoctorMick15-Jul-09 1:07
DoctorMick15-Jul-09 1:07 
QuestionHow to get back up from database using asp .net & C# Pin
Suhachi14-Jul-09 18:20
Suhachi14-Jul-09 18:20 
AnswerRe: How to get back up from database using asp .net & C# Pin
Abhijit Jana14-Jul-09 18:28
professionalAbhijit Jana14-Jul-09 18:28 
QuestionRe: How to get back up from database using asp .net & C# Pin
Suhachi14-Jul-09 22:14
Suhachi14-Jul-09 22:14 
AnswerRe: How to get back up from database using asp .net & C# Pin
ScottM115-Jul-09 22:16
ScottM115-Jul-09 22:16 
QuestionProblem with retrieving information from Data Pin
Sider8914-Jul-09 9:19
Sider8914-Jul-09 9:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.