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.4Description: 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
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
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.
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.
Here is the new error I got today after updating a problem.
Number: 2 (0x00000002)Source: Persits.MailSender.4Description: Winsock error 11004 (0x2AFC) occurred.
Thanks
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.4Description: 530 5.7.0 Must issue a STARTTLS command first. h7sm348539nfh.12
Allen Kahl
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?
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...
http://www.example-code.com/asp/gmail_smtp_587.asp
It seems that this component is doing it...
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