tutorial to create a easy safest way email sender.

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
18 posts Page 1 of 2
Contributors
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Hello friends,

a little Thanks To Codenstuff because of him i can make this come true loove;

What You Need:

* Vb.net --> any version you have
* Start New Project
* Name the project what you like.



Started:

for reference add this file:
System.Web.dll

IMPORTANT IF YOU USE VB.NET 2010
Go to Project Properties, Compile ---> [Advanced Compile Options...]
Press that and change -->Target Framework (all configuration)
Change .NET Framework 4. Client Profile
To .NET Framework 4


Make a Module.
Put this code in there:
Code: Select all
Imports System.Net
Imports System.Text
Imports System.Web
Imports System.IO
Imports Microsoft.VisualBasic
Imports Microsoft.VisualBasic.CompilerServices

Module Module1

    Public TTo As String
    Public Fromm As String
    Public MyMessage As String
    Public MySubject As String

 

    Public Sub Sendmail()
        Try
            SendDt.Clear()

            SendDt.Add("txtTo", TTo)
            SendDt.Add("txtSubject", MySubject)
            SendDt.Add("txtDescription", MyMessage)
            SendDt.Add("txtFrom", Fromm)


            Interaction.MsgBox(("E-mail successfully sent to: " & TTo), MsgBoxStyle.OkOnly, "Email")

        Catch exception1 As Exception
            MsgBox("Unable to send email", MsgBoxStyle.OkOnly, "Email")
        End Try
    End Sub
    
End Module


now open Form1
add 4 Textboxen
4 Labels
1 Button
take the TextBox4 and set as multilines.

Text the labels:
to:
From:
Subject:
Message:

Function Button:
Code: Select all
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        TTo = TextBox1.Text
        Fromm = TextBox2.Text
        MySubject = TextBox3.Text
        MyMessage = TextBox4.Text

        Sendmail()

    End Sub
Thats it :lol:
Have fun
no more password to save in your projects.
Last edited by Dummy1912 on Sat Jun 23, 2012 12:43 pm, edited 3 times in total.
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

There are a few finished tutorials on this subject.
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

mandai wrote:
There are a few finished tutorials on this subject.

Excuse me? what you mean
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

mandai wrote:
There are a few finished tutorials on this subject.
We all know that, but that can't stop any of us from posting tuts we made ourselves. Please stop making such rude comments as they hurt the feelings of other members. I know that cuz I've had problems with you in the past. I don't to start it all again.
Image
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Hey this isn't rude. It's helpful if you are looking for something thats finished.

@comathi This is not bringing people down, you misunderstand.
Last edited by mandai on Fri May 18, 2012 10:43 pm, edited 1 time in total.
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

I think what mandai was saying is that this tutorial is incomplete and I agree because all it is doing is importing some libraries and you should edit/add the rest of it as soon as possible because as it is it doesnt do anything :?

Some poor soul could be sat at home now on their computer having followed this tutorial since 10:30am this morning twitching in their chair and banging their head on the keyboard waiting for the rest of it lol.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

i am sorry guys
didn't really know what mandai was trying to say.
but yes codenstuff i understand it correct.
i was planning to finished it :) but didn't had the time.
sorry :(

ill finished it soon promise :)
CodenStuff wrote:
Some poor soul could be sat at home now on their computer having followed this tutorial since 10:30am this morning twitching in their chair and banging their head on the keyboard waiting for the rest of it lol.
omg; i hope not :lol:
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

mandai wrote:
Hey this isn't rude. It's helpful if you are looking for something thats finished.

no worries mate :)
none taken loove;
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

tutorial has been updated :lol:
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

mandai wrote:
Hey this isn't rude. It's helpful if you are looking for something thats finished.

@comathi This is not bringing people down, you misunderstand.
Sorry for the misunderstanding...
Image
18 posts Page 1 of 2
Return to “Tutorials”