Click here to Skip to main content
15,920,468 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow do i run an app. like paint from a macro button in excel? Pin
Anthony Mushrow21-Jun-05 4:11
professionalAnthony Mushrow21-Jun-05 4:11 
AnswerRe: How do i run an app. like paint from a macro button in excel? Pin
Dave Kreskowiak21-Jun-05 5:42
mveDave Kreskowiak21-Jun-05 5:42 
GeneralSelf-Uninstalling ActiveX Component Pin
Michel Robert 200421-Jun-05 3:23
Michel Robert 200421-Jun-05 3:23 
GeneralRe: Self-Uninstalling ActiveX Component Pin
Dave Kreskowiak21-Jun-05 5:34
mveDave Kreskowiak21-Jun-05 5:34 
GeneralRe: Self-Uninstalling ActiveX Component Pin
Michel Robert 200421-Jun-05 15:37
Michel Robert 200421-Jun-05 15:37 
GeneralRe: Self-Uninstalling ActiveX Component Pin
Dave Kreskowiak22-Jun-05 1:03
mveDave Kreskowiak22-Jun-05 1:03 
GeneralRe: Self-Uninstalling ActiveX Component Pin
Michel Robert 200422-Jun-05 3:35
Michel Robert 200422-Jun-05 3:35 
QuestionHow to send mail only to matched id in vb.net through smtp Pin
manojmmj21-Jun-05 0:41
manojmmj21-Jun-05 0:41 
Hello,
Last time i had posted a query & now i'm answering it. We dont need to specify smtp server name if our Outlook is already configured. But i am getting a problem. How should we access the email id of perticular person from database & send mail only to that email id with which our query matches,
Example : "Select emailid from emptable where empid = '1' "
The below code is running fine when i give fixed address for m.To=manoj.jahagirdhar@hp.com

But i'm unable to access email id from database. Kindly help me!!

Below is the code which is working fine for fixed email id

Dim m As New MailMessage

m.To = "manoj.jahagirdhar@hp.com"

m.From = "manoj.jahagirdhar@hp.com"

m.Subject = "Congrats!!Your Account Is Created. Collect Password from your mail"

m.BodyFormat = MailFormat.Html

m.Priority = MailPriority.High

m.Body = "Your Login ID is '" & TextBox1.Text & "' & Your Account Password Is '" & Password & "'"

SmtpMail.Send(m)

AnswerRe: How to send mail only to matched id in vb.net through smtp Pin
Het210921-Jun-05 1:56
Het210921-Jun-05 1:56 
GeneralCrystal Report Section - Flexibility Position Pin
LordLothar21-Jun-05 0:36
LordLothar21-Jun-05 0:36 
GeneralDataGrid Queries Pin
directred21-Jun-05 0:32
directred21-Jun-05 0:32 
GeneralMasked Boxes Pin
icowa20-Jun-05 22:48
icowa20-Jun-05 22:48 
GeneralRe: Masked Boxes Pin
jonathan1520-Jun-05 23:02
jonathan1520-Jun-05 23:02 
GeneralRe: Masked Boxes Pin
icowa20-Jun-05 23:04
icowa20-Jun-05 23:04 
GeneralRe: Masked Boxes Pin
jonathan1520-Jun-05 23:22
jonathan1520-Jun-05 23:22 
GeneralRe: Masked Boxes Pin
icowa21-Jun-05 0:32
icowa21-Jun-05 0:32 
GeneralRe: Masked Boxes Pin
jonathan1521-Jun-05 0:38
jonathan1521-Jun-05 0:38 
GeneralRe: Masked Boxes Pin
Robert Rohde21-Jun-05 0:40
Robert Rohde21-Jun-05 0:40 
GeneralRe: Masked Boxes Pin
icowa21-Jun-05 0:43
icowa21-Jun-05 0:43 
GeneralRe: Masked Boxes Pin
icowa21-Jun-05 1:03
icowa21-Jun-05 1:03 
GeneralRe: Masked Boxes Pin
J4amieC21-Jun-05 4:41
J4amieC21-Jun-05 4:41 
GeneralRe: Masked Boxes Pin
lespaul3621-Jun-05 11:11
lespaul3621-Jun-05 11:11 
GeneralRe: Masked Boxes Pin
icowa21-Jun-05 15:20
icowa21-Jun-05 15:20 
Generalcontorl on word save message prompt Pin
paykani20-Jun-05 21:53
paykani20-Jun-05 21:53 
GeneralRe: contorl on word save message prompt Pin
jonathan1521-Jun-05 3:31
jonathan1521-Jun-05 3:31 

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.