Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Pure VPN - Up to 27 Months
vgp
Updated:
Friday at 8:10 AM
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Jun 2, 2026
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
May 30, 2026
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
vb.net - email
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="hasithayad" data-source="post: 22513606" data-attributes="member: 373872"><p>[CODE]Imports System.Net.Mail</p><p>Public Class Form1</p><p> </p><p> Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click</p><p> Try</p><p> Dim Smtp_Server As New SmtpClient</p><p> Dim e_mail As New MailMessage()</p><p> Smtp_Server.UseDefaultCredentials = False</p><p> Smtp_Server.Credentials = New Net.NetworkCredential("username@gmail.com", "password")</p><p> Smtp_Server.Port = 587</p><p> Smtp_Server.EnableSsl = True</p><p> Smtp_Server.Host = "smtp.gmail.com"</p><p></p><p> e_mail = New MailMessage()</p><p> e_mail.From = New MailAddress(txtFrom.Text)</p><p> e_mail.To.Add(txtTo.Text)</p><p> e_mail.Subject = "Email Sending"</p><p> e_mail.IsBodyHtml = False</p><p> e_mail.Body = txtMessage.Text</p><p> Smtp_Server.Send(e_mail)</p><p> MsgBox("Mail Sent")</p><p></p><p> Catch error_t As Exception</p><p> MsgBox(error_t.ToString)</p><p> End Try</p><p></p><p> End Sub</p><p></p><p>End Class[/CODE]</p></blockquote><p></p>
[QUOTE="hasithayad, post: 22513606, member: 373872"] [CODE]Imports System.Net.Mail Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Try Dim Smtp_Server As New SmtpClient Dim e_mail As New MailMessage() Smtp_Server.UseDefaultCredentials = False Smtp_Server.Credentials = New Net.NetworkCredential("username@gmail.com", "password") Smtp_Server.Port = 587 Smtp_Server.EnableSsl = True Smtp_Server.Host = "smtp.gmail.com" e_mail = New MailMessage() e_mail.From = New MailAddress(txtFrom.Text) e_mail.To.Add(txtTo.Text) e_mail.Subject = "Email Sending" e_mail.IsBodyHtml = False e_mail.Body = txtMessage.Text Smtp_Server.Send(e_mail) MsgBox("Mail Sent") Catch error_t As Exception MsgBox(error_t.ToString) End Try End Sub End Class[/CODE] [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom