Last post Nov 24, 2009 01:41 AM by qwe123kids
Nov 23, 2009 06:23 AMfirstname.lastname@example.org|LINK
I'm trying to send mail through Exchange 2007 but error comes saying " Syntax error, command unrecognized. The server response was: 5.7.3 Authentication unsuccessful. "
The code is as follows:
Partial Class _Default
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Mail As New MailMessage(New MailAddress("from_email_id", ""), New MailAddress("to_email_id"))
Mail.IsBodyHtml = True
Mail.Subject = "Test Mail"
Mail.Body = "Dear Sir, <br><br>eMail Request is made for Creation <BR><BR>List of Officers who have applied for email creation at BR <br/><br><br> <BR> <BR> <BR> <font color = blue> <b>Please do not reply to this email. <BR>"
Dim smtp As New SmtpClient("IP_OF_SERVER")
Dim credentials As New System.Net.NetworkCredential("USERNAME", "PASSWORD", "DOMAIN")
smtp.UseDefaultCredentials = False
smtp.Port = 587
smtp.Credentials = credentials
Button1.Text = "OK"
Catch ex As Exception
Email Attachment Extraction
Exchange server 2003
Nov 24, 2009 01:41 AM|qwe123kids|LINK
error means "During the AUTH phase of the SMTP protocol conversation, the provided credentials were incorrect or the authenticated user doesn't have permission to submit to this server. "
//what R U trying is SMTP WAY OF SENDING Mail..