I have been trying to use Dundas Mailer component to validate email address on a form. But each time the code is run the login box always pops up requesting username and password.
When I run on my machine it works find.
Here is my code:
objMailer = Server.CreateObject(“Dundas.Mailer”)
errNum = objMailer.ValidateAddress(txtEmail.Value)
If errNum = 0 Then
lblValidEmail.Text = "Valid"
Else
lblValidEmail.Text = "InValid"
End If
objMailer = Nothing
registered especially to answer your question… I was looking for the answer myself, could not find it anywhere, so after a bit of playing and reading the error messages I discovered the right syntax.
don’t mind the rest, added for my own use:
<%
dim objMailer
dim errNum
Set objMailer = Server.CreateObject(“Dundas.Mailer”) 'Mailer object