Click here to Skip to main content
15,895,084 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: visual basic simple calculator Pin
Steven J Jowett26-Apr-10 21:38
Steven J Jowett26-Apr-10 21:38 
JokeRe: visual basic simple calculator Pin
Michel Godfroid27-Apr-10 1:21
Michel Godfroid27-Apr-10 1:21 
Questionmeaning of code Pin
skskhoukhita201026-Apr-10 5:25
skskhoukhita201026-Apr-10 5:25 
AnswerRe: meaning of code Pin
Michel Godfroid26-Apr-10 5:40
Michel Godfroid26-Apr-10 5:40 
GeneralRe: meaning of code Pin
Eddy Vluggen26-Apr-10 5:54
professionalEddy Vluggen26-Apr-10 5:54 
AnswerRe: meaning of code Pin
Eddy Vluggen26-Apr-10 5:50
professionalEddy Vluggen26-Apr-10 5:50 
GeneralRe: meaning of code Pin
skskhoukhita201026-Apr-10 6:04
skskhoukhita201026-Apr-10 6:04 
QuestionHow to sent Mail in VB6.0 Pin
JC.KaNNaN25-Apr-10 21:04
JC.KaNNaN25-Apr-10 21:04 
Hi,

I have worked email option in vb6.0.
Its only working for gmail smtp server.
I want to sent from my offical mail server...
Plz Help me...

This is code for ur knowldge...



Dim iMsg As Object
Dim iConf As Object

Dim Flds As Variant

Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")

iConf.Load -1 ' CDO Source Defaults
Set Flds = iConf.Fields
With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = txtUsername.Text
.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = txtPass.Text
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = 25

.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = txtPort.Text
.Update
End With

'strbody = "Your Sample message "

With iMsg
Set .Configuration = iConf
.To = txtTO.Text
.CC = txtCC.Text
.BCC = txtBCC.Text


.From = txtUsername.Text
'.From = "<your mailid to be displayed as@gmail.com>"
.Subject = txtSUb.Text
.TextBody = txtBody.Text
.Send
MsgBox ("Sent")
Yours,
KaNNaN

-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"


AnswerRe: How to sent Mail in VB6.0 Pin
Dalek Dave25-Apr-10 22:14
professionalDalek Dave25-Apr-10 22:14 
GeneralRe: How to sent Mail in VB6.0 Pin
Wayne Gaylard25-Apr-10 22:39
professionalWayne Gaylard25-Apr-10 22:39 
GeneralRe: How to sent Mail in VB6.0 Pin
Tom Deketelaere25-Apr-10 23:52
professionalTom Deketelaere25-Apr-10 23:52 
GeneralRe: How to sent Mail in VB6.0 Pin
Eddy Vluggen26-Apr-10 0:20
professionalEddy Vluggen26-Apr-10 0:20 
GeneralRe: How to sent Mail in VB6.0 Pin
Tom Deketelaere26-Apr-10 0:32
professionalTom Deketelaere26-Apr-10 0:32 
GeneralRe: How to sent Mail in VB6.0 Pin
Eddy Vluggen26-Apr-10 0:58
professionalEddy Vluggen26-Apr-10 0:58 
GeneralRe: How to sent Mail in VB6.0 Pin
Steven J Jowett25-Apr-10 23:56
Steven J Jowett25-Apr-10 23:56 
GeneralRe: How to sent Mail in VB6.0 Pin
Dalek Dave26-Apr-10 0:09
professionalDalek Dave26-Apr-10 0:09 
AnswerRe: How to sent Mail in VB6.0 Pin
DaveAuld25-Apr-10 23:18
professionalDaveAuld25-Apr-10 23:18 
AnswerRe: How to sent Mail in VB6.0 Pin
Simon_Whale25-Apr-10 23:27
Simon_Whale25-Apr-10 23:27 
AnswerRe: How to sent Mail in VB6.0 Pin
ksenthilbabu26-Apr-10 0:17
ksenthilbabu26-Apr-10 0:17 
GeneralRe: How to sent Mail in VB6.0 Pin
Dalek Dave26-Apr-10 0:20
professionalDalek Dave26-Apr-10 0:20 
GeneralRe: How to sent Mail in VB6.0 Pin
εїзεїзεїз26-Apr-10 21:24
εїзεїзεїз26-Apr-10 21:24 
Questionparallel ports Pin
Jack W. Pulling25-Apr-10 11:05
Jack W. Pulling25-Apr-10 11:05 
AnswerRe: parallel ports Pin
DaveAuld25-Apr-10 11:15
professionalDaveAuld25-Apr-10 11:15 
AnswerRe: parallel ports PinPopular
DaveAuld25-Apr-10 20:50
professionalDaveAuld25-Apr-10 20:50 
AnswerRe: parallel ports Pin
Abhinav S25-Apr-10 20:58
Abhinav S25-Apr-10 20:58 

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.