CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 After Insert E-mail Notification Not Working

Print topic Send  topic

Author Message
dandavis1

Posts: 18
Posted: 07/21/2007, 8:43 PM

To Whom It May Concern :
When a user clicks the "submit" button on my code charge web form, I want an e-mail to be sent to a certain address. I've installed aspemail and my code is below. I'm sure the smtp mail host, user name and password are correct because I can send/receive e-mail in Microsoft Outlook successfully. But when a user clicks submit on my code charge form, I get the following error:

Persits.MailSender.4 error '800a000e'

Invalid registration key.

/default_events.asp, line 464

Here is my code in the after insert event of my form:

Dim Mailer
Set Mailer = Server.CreateObject("Persits.MailSender")
Mailer.From = "dan@airweb.com"
Mailer.FromName = "Dan"
Mailer.AddAddress "jane@airweb.com"
Mailer.Host = "mail.airweb.com"
Mailer.IsHTML = True
Mailer.Subject = "TimeSheet Web Update"
Mailer.Body = "test"
mailer.username = "jane@airweb.com"
mailer.password = "jane123"
Mailer.Send
set Mailer = Nothing

Please help me to send a simple e-mail notification!

-Dan
View profile  Send private message
JimmyCrackedCorn

Posts: 583
Posted: 07/21/2007, 9:34 PM

sounds like somethings wrong with the component or its installation on the web server.

try and create the simplest possible ASP page to send an email, put it on your server and call it from your browser to see if it works outside your CCS app. for example, put the following code into a file named testemail.asp,

<%
Set Mailer = Server.CreateObject("Persits.MailSender")
Mailer.Host = "mail.airweb.com"
Mailer.Username = "jane@airweb.com"
Mailer.Password = "jane123"
Mailer.From = "dan@airweb.com"
Mailer.FromName = "Dan"
Mailer.AddAddress "jane@airweb.com"
Mailer.Subject = "TimeSheet Web Update"
Mailer.Body = "test"
Mailer.Send
set Mailer = Nothing
%>

and then run this page from your browser to see if you get the same error message.


BTW, not sure if it matters but you might also want to be consistent with case on the properties settings for username and password. for example,

Mail.Username instead of mail.username
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
dandavis1

Posts: 18
Posted: 07/21/2007, 10:00 PM

Thanks for the suggestion. I did as you said, I made a separate .asp page with just that simple code, and I got the same error. So it appears I've done something wrong during the installation of aspemail. However, I just downloaded the .exe and ran it, followed all the instructions. I've got Microsoft Windows Server 2003 Enterprise Edition Service Pack 1. Do you think that might be causing the problem?
View profile  Send private message
JimmyCrackedCorn

Posts: 583
Posted: 07/22/2007, 11:35 PM

OK. Sounds like you have confirmed this is not a CCS problem. That's progress!

Have you installed and registered the component with your web server? Followed these instructions?

http://www.aspemail.com/manual_01.html

If you are using a shared web hosting account you'll probably need your web host to do this for you.

Also, I went to http://www.aspemail.com/download.html and noticed they consider the use of username and password to be a premium feature. So if you are using the free version instead of the premium (purchased) one that could be your problem.

Finally, since you have confirmed this is a problem with the component or your web hosting, I'd recommend you shoot off an email tosupport@aspemail.com and/or to your web host for further help.

Good Luck!
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
dandavis1

Posts: 18
Posted: 07/23/2007, 3:01 PM

Thanks Jimmy, I contacted aspemail and they're having try some regedit thing. I'll see how it goes.

-Dan
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.