Public class webform1
Private sub btnsend_Click(ByVal sender As system.Object, ByVal e As System.EventArgs) Handlesbtnsend.Click
Dim ObjMail As New MailMessage
dim a as MailAttachment = New MailAttachment("C:\a.jpg")
objMail = New MailMessage
objMail.BodyFormat = MailFormat.Text
objMail.To = txtto.Text
objMail.From = txtfrom.Text
objMail.Subject = txtsubject.Text
objMail.Body = txtbody.Text
SmtpMail.SmtpServer = "127.0.0.1"
Catch ex as Exception
Dim mm as String = ex.Message.ToString
lblmsg.Text = mm
You can send email using the above code and for recieving the emails you need to have another software....
Hi my name is mat...
i have found out a way to do this...
see me and my team hosting a site... called snipped .
we are allowing people to create the our webmail add users yadda yadda yadda
this service happens to be free... the umm only problem is... that you may not recieve mail from people out side of your domain name (eg firstname.lastname@example.org) some emails may take at least a day to send. there is only one last stop left on our site untill we create another webmail account server... so we recomend you use this service, you can add templates, pictures, logos and best of all NO ADDS!
When doing this it will take up to 64 hours to complete your Sign Up For snipped and your email account. so just sign and wait 3 days. you will recieve a email when your account has been successfully created.
to do all of this please go to:
Edited 6 Years Ago by Ezzaral: URL snipped. No promotion please.
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...