Liberum Help Desk
The free, open source solution for the web-based help desk.

ASPEmail Auth please help...

rated by 0 users
Not Answered This post has 0 verified answers | 8 Replies | 3 Followers

Top 50 Contributor
5 Posts
alkahl posted on 02-11-2009 3:31 PM

Hi,

I am having a problem setting up email auth and I have gone through the forums and I just can't seem to get it right. Below is my setting in public.asp for ASPEmail. Could one of you folks help me out. I have set the helpdesk up to help out our internal staff and I really need to use the email to do notifications.

This is the error I get.

Number: 6 (0x00000006)
Source: Persits.MailSender.4
Description: 530 5.7.0 No AUTH command has been given.

  Set Mail = Server.CreateObject("Persits.MailSender")
  Mail.Host = Cfg(cnnDB, "SMTPServer")
  Mail.From = Cfg(cnnDB, "HDReply")
  Mail.FromName = Cfg(cnnDB, "HDName")
  Mail.AddAddress strToAddr
  Mail.Subject = strSubject
  Mail.Body = strBody
  Mail.Send
  Set Mail = Nothing

Thanks,

Allen

All Replies

Top 25 Contributor
12 Posts

You may need to add the following lines before Mail.Send:

Mail.Username = "smtp_username"
Mail.Password = "your_password"

You can find more information about configuring ASPEmail here-
http://www.aspemail.com/manual_05.html 

Top 50 Contributor
5 Posts

Hi Doug,

Thanks for getting back to me I have it added and it did not work for me. I am not sure what I am doing wrong. Here is the error message I got. oh yes and it is a access data base.

Number: 6 (0x00000006)
Source: Persits.MailSender.4
Description: 530 5.7.0 No AUTH command has been given.

 

Here is the code with the info again.

 Case 3 'ASPEmail
  Set Mail = Server.CreateObject("Persits.MailSender")
  Mail.Host = Cfg(cnnDB, "SMTPServer")
  Mail.Username = "alkahl@wisc.edu"
  Mail.Password = "mypassword is here"
  Mail.From = Cfg(cnnDB, "HDReply")
  Mail.FromName = Cfg(cnnDB, "HDName")
  Mail.AddAddress strToAddr
  Mail.Subject = strSubject
  Mail.Body = strBody
  Mail.Send
  Set Mail = Nothing

I have even done it this way.

 Case 3 'ASPEmail
  Set Mail = Server.CreateObject("Persits.MailSender")
  Mail.Host = Cfg(cnnDB, "SMTPServer")
  Mail.From = Cfg(cnnDB, "HDReply")
  Mail.FromName = Cfg(cnnDB, "HDName")
  Mail.AddAddress strToAddr
  Mail.Subject = strSubject
  Mail.Body = strBody
  Mail.Username = "alkahl@wisc.edu"
  Mail.Password = "mypassword"
  Mail.Send
  Set Mail = Nothing

I have read the ASPEmail manual many times and I am still lost.

I have another question, where is the website logon time out setting kept? I need to make the time longer.

Thanks for your help Doug.

 

Top 50 Contributor
5 Posts

Here is the new error I got today after updating a problem.

Number: 2 (0x00000002)
Source: Persits.MailSender.4
Description: Winsock error 11004 (0x2AFC) occurred.

Thanks

Top 50 Contributor
5 Posts

Here is the new message I have. Please let me know if you know how to trun this on. I am putting the system through my GMail account.

Number: 6 (0x00000006)
Source: Persits.MailSender.4
Description: 530 5.7.0 Must issue a STARTTLS command first. h7sm348539nfh.12

Thanks,

Allen Kahl

Top 25 Contributor
9 Posts

From the page suggested above:

"When used in the standard mode (message queuing is not used), AspEmail supports the AUTH=LOGIN method only. When sending queued mail, AspEmail, in conjunction with EmailAgent, supports all three protocols described above. When attempting to negotiate an authentication protocol with the SMTP server, AspEmail tries the authentication methods in the following order: CRAM-MD5, NTLM, AUTH=LOGIN."

Maybe you aren't connecting to a server that supports what you are trying to do?

Top 150 Contributor
2 Posts

Perhaps you have to pass throught the virtual SMTP of IIS who allow the TLS cryptage.

There's a sample of sending mail with certificate in the ASPEmail's manual.

I'm searching a solution using this both methods. If anybody have an idea...

Top 150 Contributor
2 Posts

http://www.example-code.com/asp/gmail_smtp_587.asp

It seems that this component is doing it...

Top 500 Contributor
1 Posts

Older versions of AspEmail did not support TLS and therefor could not be used with the Gmail SMTP server. However, the current version (5.1 I believe) does support TLS and therefor can be used with smtp.gmail.com.

www.aspemail.com/download.html

- D.C. Dweller

Page 1 of 1 (9 items) | RSS
Copyright © Doug Luxem 2000-2010
Powered by Community Server (Non-Commercial Edition), by Telligent Systems