Click here to Skip to main content
15,893,486 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Export problem to Excel Pin
EliottA5-Feb-09 11:02
EliottA5-Feb-09 11:02 
GeneralRe: Export problem to Excel Pin
ivo755-Feb-09 11:10
ivo755-Feb-09 11:10 
GeneralRe: Export problem to Excel Pin
EliottA5-Feb-09 11:20
EliottA5-Feb-09 11:20 
AnswerRe: Export problem to Excel Pin
vaghelabhavesh5-Feb-09 10:44
vaghelabhavesh5-Feb-09 10:44 
GeneralRe: Export problem to Excel Pin
ivo755-Feb-09 10:55
ivo755-Feb-09 10:55 
QuestionDissable security message "" A program is trying to access e-mail addresses" while sending email Pin
Amanjot5-Feb-09 8:07
Amanjot5-Feb-09 8:07 
AnswerRe: Dissable security message "" A program is trying to access e-mail addresses" while sending email Pin
Wendelius5-Feb-09 8:16
mentorWendelius5-Feb-09 8:16 
AnswerRe: Dissable security message "" A program is trying to access e-mail addresses" while sending email Pin
Bharat Jain5-Feb-09 18:36
Bharat Jain5-Feb-09 18:36 
I would suggest to use SMTP Client instead of outlook component to send an email using an application
SmptClient is an inbuilt .net class , following is an example of using smptClient to send a email.


Dim smtpClient As New Net.Mail.SmtpClient()
Dim mail As New Net.Mail.MailMessage()
'create the message to be sent
mail.To.Add("test@test.com") ' Enter the Email of the person you want to send the mail to
mail.From = New Net.Mail.MailAddress("username@gmail.com", "Your Display Name") ' Enter Your email address
mail.Subject = "Test Message"
mail.Body = "This is a test message"
' Prepare the client to send the above message
'Attach the file as attachment
mail.Attachments.Add(new System.Net.Mail.Attachment("yourFileName.xls"))
smtpClient.Host = "smtp.gmail.com"
smtpClient.EnableSsl = True
smtpClient.Port = 587
smtpClient.Credentials = New Net.NetworkCredential("username@gmail.com", "password") 'Enter username and password of the account , you want to use to send mail
smtpClient.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.Network
smtpClient.Send(mail)



There was a similar question posted

http://www.codeproject.com/script/Forums/View.aspx?fid=1646&msg=2899587[^]

Hope the information is helpful

-Regards
Bharat Jain
bharat.jain.nagpur@gmail.com

QuestionBuild a firewall using VB.net and then open traffic after web-based sign-in Pin
GDMFSOB5-Feb-09 7:08
GDMFSOB5-Feb-09 7:08 
AnswerRe: Build a firewall using VB.net and then open traffic after web-based sign-in Pin
EliottA5-Feb-09 7:20
EliottA5-Feb-09 7:20 
AnswerRe: Build a firewall using VB.net and then open traffic after web-based sign-in Pin
Dave Kreskowiak5-Feb-09 9:16
mveDave Kreskowiak5-Feb-09 9:16 
QuestionListbox problem Pin
jaakinye5-Feb-09 6:21
jaakinye5-Feb-09 6:21 
AnswerRe: Listbox problem Pin
EliottA5-Feb-09 6:42
EliottA5-Feb-09 6:42 
AnswerRe: Listbox problem Pin
vaghelabhavesh5-Feb-09 10:01
vaghelabhavesh5-Feb-09 10:01 
GeneralRe: Listbox problem Pin
jaakinye5-Feb-09 16:07
jaakinye5-Feb-09 16:07 
QuestionVBScript to get all users (local and domain) Pin
mixologee5-Feb-09 3:27
mixologee5-Feb-09 3:27 
AnswerRe: VBScript to get all users (local and domain) Pin
Dave Kreskowiak6-Feb-09 3:36
mveDave Kreskowiak6-Feb-09 3:36 
Questionaccess MDB database help Pin
Dave McCool5-Feb-09 3:16
Dave McCool5-Feb-09 3:16 
AnswerRe: access MDB database help Pin
Dominick Marciano5-Feb-09 4:21
professionalDominick Marciano5-Feb-09 4:21 
AnswerRe: access MDB database help Pin
Rupesh Kumar Swami5-Feb-09 4:22
Rupesh Kumar Swami5-Feb-09 4:22 
Questionretrive field value into combobox Pin
vijay24825-Feb-09 2:42
vijay24825-Feb-09 2:42 
AnswerRe: retrive field value into combobox Pin
Rupesh Kumar Swami5-Feb-09 3:11
Rupesh Kumar Swami5-Feb-09 3:11 
Question[Message Deleted] Pin
εїзεїзεїз5-Feb-09 2:07
εїзεїзεїз5-Feb-09 2:07 
AnswerRe: Grid View Control Pin
Henry Minute5-Feb-09 9:16
Henry Minute5-Feb-09 9:16 
QuestionWhere to put try / catch blocks when dealing with classes Pin
maxnuggets5-Feb-09 0:55
maxnuggets5-Feb-09 0:55 

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.