Click here to Skip to main content
15,926,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMoving ListViewItem [modified] Pin
MAP Tiger10-Jul-06 9:53
MAP Tiger10-Jul-06 9:53 
AnswerRe: Moving ListViewItem Pin
kumarprabhakar7410-Jul-06 20:18
kumarprabhakar7410-Jul-06 20:18 
GeneralRe: Moving ListViewItem Pin
MAP Tiger10-Jul-06 21:15
MAP Tiger10-Jul-06 21:15 
GeneralRe: Moving ListViewItem Pin
MAP Tiger10-Jul-06 22:10
MAP Tiger10-Jul-06 22:10 
Question.net 1.1 Vs 2.0 Pin
huckeuri10-Jul-06 8:41
huckeuri10-Jul-06 8:41 
QuestionSmtpMail Pin
lula12310-Jul-06 8:02
lula12310-Jul-06 8:02 
GeneralRe: SmtpMail [modified] Pin
Guffa10-Jul-06 9:42
Guffa10-Jul-06 9:42 
AnswerRe: SmtpMail Pin
Steven J Jowett10-Jul-06 21:24
Steven J Jowett10-Jul-06 21:24 
Here is some code I used to send an email, which works well for me. It is based on the .NET Framework v2.0

Dim myMessage As New System.Net.Mail.MailMessage()<br />
                With myMessage<br />
                    .To.Add("destination Email Address here")<br />
                    .From = New System.Net.Mail.MailAddress("Your email address here", "your name here")<br />
                    .Subject = "Subject line text here"<br />
                   .Attachments.Add(New System.Net.Mail.Attachment("path of attachment here"))<br />
                    .Body = "Email message here"<br />
                    .IsBodyHtml = False<br />
                End With<br />
<br />
                Dim SmtpMail As New System.Net.Mail.SmtpClient<br />
                With SmtpMail<br />
                    .Host = = "SMTP Server IP address or URL here"<br />
                    .DeliveryMethod = SmtpDeliveryMethod.Network<br />
                    'Credentials only required if your SMTP server requires User Name and Password<br />
                    .Credentials = New System.Net.NetworkCredential("Your STMP Server User Name", "Your STMP Server Password"))<br />
                    .Send(myMessage)<br />
                End With


Also ensure your firewall, Anti-Virus etc allows data to be sent via port 25. I had a problem where my emails where not being sent and on infestigation I found the McAfee AV Enterprise blocked all outgoing traffic on port 25, unless it was listed in the exceptions to that particular rule.



Regards
Steve Jowett
QuestionDeployment project MsiLoadr.bin issue Pin
Mondis10-Jul-06 6:13
Mondis10-Jul-06 6:13 
Questionhow to use intellisence for functions Pin
<b<font color="#6EA3C4">MILAN@Cybage10-Jul-06 3:06
<b<font color="#6EA3C4">MILAN@Cybage10-Jul-06 3:06 
QuestionRestart Thread in 2003 Pin
Rizwan Bashir10-Jul-06 2:09
Rizwan Bashir10-Jul-06 2:09 
AnswerRe: Restart Thread in 2003 Pin
Dave Kreskowiak10-Jul-06 2:22
mveDave Kreskowiak10-Jul-06 2:22 
QuestionHow do I make a form opening only the first time [modified] Pin
Bruno Gonçalves10-Jul-06 1:56
Bruno Gonçalves10-Jul-06 1:56 
AnswerRe: How do I make a form opening only the first time Pin
Dave Sexton10-Jul-06 2:14
Dave Sexton10-Jul-06 2:14 
GeneralRe: How do I make a form opening only the first time Pin
Bruno Gonçalves10-Jul-06 6:25
Bruno Gonçalves10-Jul-06 6:25 
AnswerRe: How do I make a form opening only the first time Pin
Rizwan Bashir10-Jul-06 2:17
Rizwan Bashir10-Jul-06 2:17 
GeneralRe: How do I make a form opening only the first time Pin
Steven J Jowett10-Jul-06 21:33
Steven J Jowett10-Jul-06 21:33 
GeneralRe: How do I make a form opening only the first time Pin
Bruno Gonçalves12-Jul-06 0:21
Bruno Gonçalves12-Jul-06 0:21 
GeneralRe: How do I make a form opening only the first time Pin
Steven J Jowett12-Jul-06 0:30
Steven J Jowett12-Jul-06 0:30 
GeneralRe: How do I make a form opening only the first time Pin
Bruno Gonçalves12-Jul-06 1:15
Bruno Gonçalves12-Jul-06 1:15 
QuestionHow to get the row index of the Datagridview when mouse drag over it? Pin
rushing10-Jul-06 0:43
rushing10-Jul-06 0:43 
AnswerRe: How to get the row index of the Datagridview when mouse drag over it? Pin
<b<font color="#6EA3C4">MILAN@Cybage11-Jul-06 1:14
<b<font color="#6EA3C4">MILAN@Cybage11-Jul-06 1:14 
QuestionDragging a label... Pin
nmpsantos9-Jul-06 23:53
nmpsantos9-Jul-06 23:53 
AnswerRe: Dragging a label... Pin
Rizwan Bashir10-Jul-06 2:40
Rizwan Bashir10-Jul-06 2:40 
AnswerRe: Dragging a label... Pin
Dave Kreskowiak10-Jul-06 5:31
mveDave Kreskowiak10-Jul-06 5: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.