Click here to Skip to main content
15,881,649 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Sending mail using SMTP Mail...? Pin
Michael Sync17-Feb-07 1:35
Michael Sync17-Feb-07 1:35 
GeneralRe: Sending mail using SMTP Mail...? Pin
fmlove17-Feb-07 1:46
fmlove17-Feb-07 1:46 
AnswerRe: Sending mail using SMTP Mail...? Pin
WoutL17-Feb-07 10:10
WoutL17-Feb-07 10:10 
GeneralRe: Sending mail using SMTP Mail...? Pin
fmlove18-Feb-07 1:50
fmlove18-Feb-07 1:50 
AnswerRe: Sending mail using SMTP Mail...? Pin
Abisodun18-Feb-07 7:14
Abisodun18-Feb-07 7:14 
GeneralRe: Sending mail using SMTP Mail...? Pin
fmlove18-Feb-07 20:40
fmlove18-Feb-07 20:40 
GeneralRe: Sending mail using SMTP Mail...? Pin
Abisodun19-Feb-07 1:32
Abisodun19-Feb-07 1:32 
GeneralRe: Sending mail using SMTP Mail...? Pin
fmlove20-Feb-07 21:31
fmlove20-Feb-07 21:31 
Thanks a lot for this kind of kindness my code is:

Private mMailServer As String
Private mTo As String
Private mFrom As String
Private mMsg As String
Private mSubject As String
Private mCC As String
Private mPort As Integer

Dim strMsg As String
strMsg = "Thank you for Feedback"

mTo = Trim(GoNews.Text)
mFrom = Trim("hotshot2000pk@yahoo.com")
mSubject = Trim("Thanks")
mMsg = Trim(strMsg)
mMailServer = "185.109.209.230"
mPort = 387

Try

Dim message As New MailMessage(mFrom, mTo, mSubject, mMsg)

Dim mySmtpClient As New SmtpClient(mMailServer, mPort)
mySmtpClient.Credentials = New Net.NetworkCredential("mailto@daily-aaj.com", "sentto")
mySmtpClient.DeliveryMethod = SmtpDeliveryMethod.Network

mySmtpClient.Send(message)

'Response.Redirect("Default.aspx")
MailSent.Text = "Email has sent successfully"
'MessageBox("The mail message has been sent to " & message.To.ToString())

Catch ex As FormatException
MailSent.Text = "Format Exception: " & ex.Message
Catch ex As SmtpException
MailSent.Text = "SMTP Exception: " & ex.Message
Catch ex As Exception
MailSent.Text = "General Exception: " & ex.Message


End Try

Feroze
GeneralRe: Sending mail using SMTP Mail...? Pin
Abisodun21-Feb-07 1:24
Abisodun21-Feb-07 1:24 
QuestionMaster Page Class Pin
WaleedS17-Feb-07 1:01
WaleedS17-Feb-07 1:01 
AnswerRe: Master Page Class Pin
Michael Sync17-Feb-07 1:32
Michael Sync17-Feb-07 1:32 
QuestionRetrieving the COM class factory for component with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} failed due to the following error: 80070002 Pin
Rajkumar S. Rajput17-Feb-07 0:58
Rajkumar S. Rajput17-Feb-07 0:58 
QuestionSOAP Pin
Member 383800717-Feb-07 0:21
Member 383800717-Feb-07 0:21 
AnswerRe: SOAP Pin
Michael Sync17-Feb-07 1:39
Michael Sync17-Feb-07 1:39 
GeneralRe: SOAP Pin
Michael Sync17-Feb-07 1:46
Michael Sync17-Feb-07 1:46 
Questionhow to CC the mail?? Pin
EEmaan16-Feb-07 22:50
EEmaan16-Feb-07 22:50 
AnswerRe: how to CC the mail?? Pin
Michael Sync16-Feb-07 23:09
Michael Sync16-Feb-07 23:09 
GeneralRe: how to CC the mail?? Pin
EEmaan16-Feb-07 23:13
EEmaan16-Feb-07 23:13 
GeneralRe: how to CC the mail?? Pin
Michael Sync16-Feb-07 23:28
Michael Sync16-Feb-07 23:28 
QuestionPrecompile web application Pin
John Gathogo16-Feb-07 22:09
John Gathogo16-Feb-07 22:09 
AnswerRe: Precompile web application Pin
Not Active18-Feb-07 4:00
mentorNot Active18-Feb-07 4:00 
Questiondatagrid-graphic Pin
luckyve16-Feb-07 21:35
luckyve16-Feb-07 21:35 
AnswerRe: datagrid-graphic Pin
Michael Sync16-Feb-07 21:48
Michael Sync16-Feb-07 21:48 
GeneralRe: datagrid-graphic Pin
luckyve16-Feb-07 22:06
luckyve16-Feb-07 22:06 
GeneralRe: datagrid-graphic Pin
Michael Sync16-Feb-07 22:31
Michael Sync16-Feb-07 22:31 

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.