CONTACT: ICQ 22233 and PM

[VB.NET] SMTP Email [SOURCE]

Dr.Trojan

Member
Messages
208
Reaction score
1
Send email using SMTP in VB.
You can use :
Googlemail
Hotmail
Yahoo
(And more if you know the SMTP code)

Googlemail = smtp.gmail.com
Yahoo = smtp.mail.yahoo.com
hotmail = smtp.live.com​
Here are some more
PHP Code:

Bt Click: mail.btclick.com
Bt Connect
: smtp.btconnect.com
BT Internet
: mail.btinternet.com
BT Openworld
: mail.btopenworld.com
Freeserve
/Wanadoo: smtp.freeserve.co.uk
Freeserve
: smtp.freeserve.net
NTL World
: smtp.ntlworld.com
Orange
: smtp.orange.net (formally Freeserve and then Wanadoo)
Orange (Home): smtp.orangehome.co.uk
Pipex
: smtp.dial.pipex.com
Tesco
: smtp.tesco.net
Tesconet
: mail.tesco.net
Tiscali
: smtp.tiscali.co.uk
Virgin
: smtp.virgin.net
Wanadoo
: smtp.freeserve.co.uk (Now Orange)
Yahoo: smtp.mail.yahoo.com

Listed Alphbetically
. A - Z

Amaze
.net.au: mail.amaze.net.au
Ameritech DSL
: mailhost.col.ameritech.net
aol
: za.mx.aol.com
aol
: zb.mx.aol.com
aol
: zc.mx.aol.com
AT
&T: smtp1.attglobal.net
AT
&T: mailhost.worldnet.att.net
AT
&T WorldNet: mailhost.att.net
AT
&T WorldNet: mailhost.worldnet.att.net
Australink
.net: mail.australink.net

bellatlantic
.net: smtpout.bellatlantic.net
Bluelight
.com: smtp.mail.yahoo.com
BlueYonder
: smtp.blueyonder.co.uk
Bondinet
.com: mail1.oznet.net.au
Breathe
: mailhost.breathemail.net
bright
.net: mail.bright.net
Bt Click
: mail.btclick.com
Bt Connect
: smtp.btconnect.com
BT Internet
: mail.btinternet.com
BT Openworld
: mail.btopenworld.com
BusinessServe
: smtp.businessserve.co.uk

Cableinet
: smtp.blueyonder.co.uk
Claranet
: relay.clara.net
Comcast
: smtp.comcast.net
CompuServe 2000
: smtp.cs.com
CompuServe Classic
: mail.compuserve.com
CWCom
: smtp.ntlworld.com

DCAnet
: postoffice.dca.net
Demon
: post.demon.co.uk

Earthlink
.net: smtp.earthlink.net
Easynet
: smtp.easynet.co.uk
ee
.net: mail.ee.net

Freeinet
.com: mail.ma.freei.net
Freeserve
/Wanadoo: smtp.freeserve.co.uk
Freeserve
: smtp.freeserve.net

Gateway
: smtp.gateway.net
Genie
: mail.genie.co.uk
Greenbank
.net.au: mail.greenbank.net.au

Hotkey
.net.au: mail.hotkey.net.au

ibm
.net: smtp1.ibm.net
IC24
: smtp.ic24.net
icdc
.com: mailout.icdc.com
INFOLINK
.com: mail.nfolink.com
Interlink
: mail.your-net.com
Inweb Networks
: post.inweb.co.uk
IronNet
: mail.iron.net
iwayNET
: smtp.iwaynet.net

Jade Inc
.: mail.jadeinc.com

Lineone
: smtp.lineone.net
Log on America
: mail.loa.com
Logicworld
.com.au: mail.logicworld.com.au
Lycos
: smtp.lycos.co.uk

Madasafish
: smtp.madasafish.com
MegaNet
: smtp.meganet.net
Microsoft
's MSN: smtp.email.msn.com
MidOhio.net: mail.midohio.net
MindSpring: smtp.mindspring.com
MindSpring: mail.mindspring.com
Mistral: smtp.mistral.co.uk
MSN.com: smtp.email.msn.com
MSN.DSL: secure.smtp.email.msn.com

NamesToday: smtp.namestoday.ws
netcom.com: smtp.ix.netcom.com
netreach.net: smtp.netreach.net
Netscapeonline: mailhost.netscapeonline.co.uk
NetSet: mail.netset.com
NetWalk.com: mail.netwalk.com
netzero.net: smtp.netzero.net
nextek.net: mail.nextek.net
Nildram: smtp.nildram.co.uk
nni.com: nni.com
Northstar Data Systems: mail.nn.net
NTL World: smtp.ntlworld.com

OneTel: mail.onetel.net.uk
On-Ramp: mail.marion.net
Orange: smtp.orange.net (formally Freeserve and then Wanadoo)
Orange (Home): smtp.orangehome.co.uk
Ozemail.com.au: smtp.ozemail.com.au

peoplepc: mail.peoplepc.com
Phone Co-op: smtp-1.opaltelecom.net
Pipex: smtp.dial.pipex.com
Prodigy: smtp.prodigy.net
Purplenet: smtp.purplenet.co.uk

rcn.com: smtp.rcn.com
redbird.net: mail.redbird.net
RichNet: mail.richnet.net
Road Runner (Insight Communications): smtp-server.insight.rr.com
Road Runner (Time Warner): smtp-server.columbus.rr.com
Road Runner (Time Warner): smtp-server.nc.rr.com

Screaming.Net: smtp.tiscali.co.uk
Spire: mail.spire.com
Supanet: smtp.supanet.com

Telewest: smtp.blueyonder.co.uk
Telocity: mail.telocity.com
Tesco: smtp.tesco.net
Tesconet: mail.tesco.net
Tiscali: smtp.tiscali.co.uk
Totalise: mail.totalise.co.uk
TPG.com.au: mail.tpg.com.au
TTLC: mail.ttlc.net

UKGateway: smtp.ukgateway.net
uu.net: uu.net

V 21: smtp.v21.co.uk
Verizon: smtp.verizon.net
Virgin: smtp.virgin.net
Vispa: mail.vispa.com
voicenet.com: mail.voicenet.com

Wanadoo: smtp.freeserve.co.uk (Now Orange)
Waitrose: smtpmail.waitrose.com
Webcom: smtp.webcom.com
Which Online: mail.which.net
Wide Open West: smtp.mail.wowway.com
Wide Open West (users with @wideopenwest.com): smtp.mail.wideopenwest.com
Worldonline: smtp.tiscali.co.uk







Code:

Imports System.Net.Mail
' This would go above everything on the form code
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Try
Dim SmtpServer As New SmtpClient()
Dim mail As New MailMessage()
SmtpServer.Credentials = New _
Net.NetworkCredential("username@gmail.com", "password")
SmtpServer.Port = 587
 

honestatg

Member
Messages
9
Reaction score
0
Send email using SMTP in VB.
You can use :
Googlemail
Hotmail
Yahoo
(And more if you know the SMTP code)

Googlemail = smtp.gmail.com
Yahoo = smtp.mail.yahoo.com
hotmail = smtp.live.com​
Here are some more
PHP Code:

Bt Click: mail.btclick.com
Bt Connect
: smtp.btconnect.com
BT Internet
: mail.btinternet.com
BT Openworld
: mail.btopenworld.com
Freeserve
/Wanadoo: smtp.freeserve.co.uk
Freeserve
: smtp.freeserve.net
NTL World
: smtp.ntlworld.com
Orange
: smtp.orange.net (formally Freeserve and then Wanadoo)
Orange (Home): smtp.orangehome.co.uk
Pipex
: smtp.dial.pipex.com
Tesco
: smtp.tesco.net
Tesconet
: mail.tesco.net
Tiscali
: smtp.tiscali.co.uk
Virgin
: smtp.virgin.net
Wanadoo
: smtp.freeserve.co.uk (Now Orange)
Yahoo: smtp.mail.yahoo.com

Listed Alphbetically
. A - Z

Amaze
.net.au: mail.amaze.net.au
Ameritech DSL
: mailhost.col.ameritech.net
aol
: za.mx.aol.com
aol
: zb.mx.aol.com
aol
: zc.mx.aol.com
AT
&T: smtp1.attglobal.net
AT
&T: mailhost.worldnet.att.net
AT
&T WorldNet: mailhost.att.net
AT
&T WorldNet: mailhost.worldnet.att.net
Australink
.net: mail.australink.net

bellatlantic
.net: smtpout.bellatlantic.net
Bluelight
.com: smtp.mail.yahoo.com
BlueYonder
: smtp.blueyonder.co.uk
Bondinet
.com: mail1.oznet.net.au
Breathe
: mailhost.breathemail.net
bright
.net: mail.bright.net
Bt Click
: mail.btclick.com
Bt Connect
: smtp.btconnect.com
BT Internet
: mail.btinternet.com
BT Openworld
: mail.btopenworld.com
BusinessServe
: smtp.businessserve.co.uk

Cableinet
: smtp.blueyonder.co.uk
Claranet
: relay.clara.net
Comcast
: smtp.comcast.net
CompuServe 2000
: smtp.cs.com
CompuServe Classic
: mail.compuserve.com
CWCom
: smtp.ntlworld.com

DCAnet
: postoffice.dca.net
Demon
: post.demon.co.uk

Earthlink
.net: smtp.earthlink.net
Easynet
: smtp.easynet.co.uk
ee
.net: mail.ee.net

Freeinet
.com: mail.ma.freei.net
Freeserve
/Wanadoo: smtp.freeserve.co.uk
Freeserve
: smtp.freeserve.net

Gateway
: smtp.gateway.net
Genie
: mail.genie.co.uk
Greenbank
.net.au: mail.greenbank.net.au

Hotkey
.net.au: mail.hotkey.net.au

ibm
.net: smtp1.ibm.net
IC24
: smtp.ic24.net
icdc
.com: mailout.icdc.com
INFOLINK
.com: mail.nfolink.com
Interlink
: mail.your-net.com
Inweb Networks
: post.inweb.co.uk
IronNet
: mail.iron.net
iwayNET
: smtp.iwaynet.net

Jade Inc
.: mail.jadeinc.com

Lineone
: smtp.lineone.net
Log on America
: mail.loa.com
Logicworld
.com.au: mail.logicworld.com.au
Lycos
: smtp.lycos.co.uk

Madasafish
: smtp.madasafish.com
MegaNet
: smtp.meganet.net
Microsoft
's MSN: smtp.email.msn.com
MidOhio.net: mail.midohio.net
MindSpring: smtp.mindspring.com
MindSpring: mail.mindspring.com
Mistral: smtp.mistral.co.uk
MSN.com: smtp.email.msn.com
MSN.DSL: secure.smtp.email.msn.com

NamesToday: smtp.namestoday.ws
netcom.com: smtp.ix.netcom.com
netreach.net: smtp.netreach.net
Netscapeonline: mailhost.netscapeonline.co.uk
NetSet: mail.netset.com
NetWalk.com: mail.netwalk.com
netzero.net: smtp.netzero.net
nextek.net: mail.nextek.net
Nildram: smtp.nildram.co.uk
nni.com: nni.com
Northstar Data Systems: mail.nn.net
NTL World: smtp.ntlworld.com

OneTel: mail.onetel.net.uk
On-Ramp: mail.marion.net
Orange: smtp.orange.net (formally Freeserve and then Wanadoo)
Orange (Home): smtp.orangehome.co.uk
Ozemail.com.au: smtp.ozemail.com.au

peoplepc: mail.peoplepc.com
Phone Co-op: smtp-1.opaltelecom.net
Pipex: smtp.dial.pipex.com
Prodigy: smtp.prodigy.net
Purplenet: smtp.purplenet.co.uk

rcn.com: smtp.rcn.com
redbird.net: mail.redbird.net
RichNet: mail.richnet.net
Road Runner (Insight Communications): smtp-server.insight.rr.com
Road Runner (Time Warner): smtp-server.columbus.rr.com
Road Runner (Time Warner): smtp-server.nc.rr.com

Screaming.Net: smtp.tiscali.co.uk
Spire: mail.spire.com
Supanet: smtp.supanet.com

Telewest: smtp.blueyonder.co.uk
Telocity: mail.telocity.com
Tesco: smtp.tesco.net
Tesconet: mail.tesco.net
Tiscali: smtp.tiscali.co.uk
Totalise: mail.totalise.co.uk
TPG.com.au: mail.tpg.com.au
TTLC: mail.ttlc.net

UKGateway: smtp.ukgateway.net
uu.net: uu.net

V 21: smtp.v21.co.uk
Verizon: smtp.verizon.net
Virgin: smtp.virgin.net
Vispa: mail.vispa.com
voicenet.com: mail.voicenet.com

Wanadoo: smtp.freeserve.co.uk (Now Orange)
Waitrose: smtpmail.waitrose.com
Webcom: smtp.webcom.com
Which Online: mail.which.net
Wide Open West: smtp.mail.wowway.com
Wide Open West (users with @wideopenwest.com): smtp.mail.wideopenwest.com
Worldonline: smtp.tiscali.co.uk







Code:

Imports System.Net.Mail
' This would go above everything on the form code
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Try
Dim SmtpServer As New SmtpClient()
Dim mail As New MailMessage()
SmtpServer.Credentials = New _
Net.NetworkCredential("username@gmail.com", "password")
SmtpServer.Port = 587
Add me ICQ 710986011
 

gaith

Member
Messages
6
Reaction score
0
:smashing-computer::smashing-computer::smashing-computer::smashing-computer:
 
Top