Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.
'Sending module sender = Form1.TextBox42.Text recipient = Form1.TextBox50.Text Subject = "Todays File " & Fdate & ".csv" attachmentString = ArchiveLocation & "\Archives\" & AnyDate.Year.ToString("0000") & "\" & AnyDate.Month.ToString("00") & "\" & Fdate & ".csv" Dim fromAddress As New Net.Mail.MailAddress(sender) Dim toAddress As New Net.Mail.MailAddress(recipient) Dim message As New Net.Mail.MailMessage(fromAddress, toAddress) Dim mailSender As Net.Mail.SmtpClient ' Change the Smtp server name on the next line mailSender = New Net.Mail.SmtpClient(Form1.TextBox41.Text, Form1.TextBox55.Text) ' message.Bcc.Add(fromAddress) message.Subject = Subject message.IsBodyHtml = True message.Body = "Todays CSV File " If Not attachmentString = "" Then Dim msgAttach As New Net.Mail.Attachment(attachmentString) message.Attachments.Add(msgAttach) End If Try mailSender.Send(message) MsgBox("File Sent") Catch ex As Exception MessageBox.Show(ex.Message, "Error Mail Not Sent") End Try 101: End Sub
|Prevent call a sub/function several times when data bind to gridview||21||33|
|HTML - Color not displaying correctly in EMAIL.||6||49|
|get row value in vb.net||4||17|
|Need syntax help building hyperlink||2||27|