Web Form .asp requires authentication.?

Legacy

New member
here is the code I have implemented but I get an error when the form is submited and tries to send the email I get the error that says authentication required... What code do I add to authenticate my username and password?
Error I get is... Mail send failure. Error was 530 Authentication is required before sending [R0107005]


Code I am using is..

<%
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = "C-S Website"
Mailer.FromAddress= "email"
Mailer.RemoteHost = "smtp.biz.rr.com"
Mailer.AddRecipient "name", "email"
Mailer.AddExtraHeader "X-MimeOLE:Produced yourdomain.com"
Mailer.Subject = "Form Submission"

strMsgHeader = "Form information follows" & vbCrLf
for each qryItem in Request.Form
strMsgInfo = strMsgInfo & qryItem & " - " & request.Form(qryItem) & vbCrLf
next
strMsgFooter = vbCrLf & "End of form information"

Mailer.BodyText = strMsgHeader & strMsgInfo & strMsgFooter
if Mailer.SendMail then
Response.Write "Form information submitted..."
else
Response.Write "Mail send failure. Error was " & Mailer.Response
end if
set Mailer = Nothing
%>

Really appreciate any help I can get.
 
Back
Top