T
tma
Is there a way to send username and passwords to a mail server using code
similar to below? My email server requires a username and password to send
mail.
Private Sub MailError(ByVal ErrorMessage As String)
Try
Dim _mm As New MailMessage
SmtpMail.SmtpServer = "smtp.server.com"
_mm.
_mm.BodyFormat = Mail.MailFormat.Html
_mm.From = (e-mail address removed)
_mm.Subject = "IPN Error"
_mm.Body = "IPN Error " & "<br />" & vbCrLf & "<br />" & vbCrLf
_mm.To = "(e-mail address removed)"
_mm.Body = "Transaction time: " & DateTime.Now & vbCrLf & vbCrLf &
ErrorMessage
SmtpMail.Send(_mm)
Catch ex As Exception
Debug.WriteLine(ex.Message)
End Try
End Sub
similar to below? My email server requires a username and password to send
mail.
Private Sub MailError(ByVal ErrorMessage As String)
Try
Dim _mm As New MailMessage
SmtpMail.SmtpServer = "smtp.server.com"
_mm.
_mm.BodyFormat = Mail.MailFormat.Html
_mm.From = (e-mail address removed)
_mm.Subject = "IPN Error"
_mm.Body = "IPN Error " & "<br />" & vbCrLf & "<br />" & vbCrLf
_mm.To = "(e-mail address removed)"
_mm.Body = "Transaction time: " & DateTime.Now & vbCrLf & vbCrLf &
ErrorMessage
SmtpMail.Send(_mm)
Catch ex As Exception
Debug.WriteLine(ex.Message)
End Try
End Sub