Print Page | Close Window

Help needed regarding Email Notification

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=6850
Printed Date: 03 April 2026 at 9:55pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Help needed regarding Email Notification
Posted By: themayor
Subject: Help needed regarding Email Notification
Date Posted: 30 October 2003 at 12:02pm

Forum Version 7.01

I'm having some problems sending email using Persits AspEmail for notifications. Many times users are getting an error that basically says Persits is breaking when executing Send.

I have narrowed it down to a problem with the "strRecipientEmailAddress". Persits needs an address and a name, and I believe if someone has not put in a real name then that string is only the address which breaks Persits.

So, basically what I need to know is where "strRecipientEmailAddress" is set. I simply can't find. Once I know where it's set I should be able to write in a workaround if the Name is missing.

thanks for any help

Tim




Replies:
Posted By: WebWiz-Bruce
Date Posted: 30 October 2003 at 2:40pm
The forum has been fully tested in Persits AspEmail and so should work, I would guess that you may have a corrupted file somewhere, try reuploading all the files again.

The varaible strRecipientEmailAddress is initilised in the function itself and is given a value from lines in other files that pass across values to the function when it is called.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: themayor
Date Posted: 30 October 2003 at 2:47pm

Hmmm,

But, when I response.write strRecipientEmailAddress in testing it only showed me an email address. And I know Persits also needs a name (e.g. .AddAddress " mailto:Add.Recipientbob@bob.com - bob@bob.com ", "bob")

Does it pull the name from "Real Name" in the profile?



Posted By: kmacy
Date Posted: 30 October 2003 at 10:57pm

strRecipientEmailAddress is just one of the values that get passed to the sendmail function:

Function SendMail(ByVal strEmailBodyMessage, ByVal strRecipientName, ByVal strRecipientEmailAddress, ByVal strFromEmailName, ByVal strFromEmailAddress, ByVal strSubject, strMailComponent, blnHTML)

Find the line that is calling the sendmail function for whatever it is you are doing and then make sure all the values are being passed.  If you have a debugger, just put a breakpoint on the sendmail function and you should be able to solve your problem fast.  If not, get your response.write's going.  Good luck.  FYI - I personally have no problem with aspEmail working.

I just reread my post and I guess your problem is that you can't find where in wwf the sendmail function is being called.  So, what I would do is look at the url right before the email gets sent.  Open up that page in your editor and look for the sendmail function call.



-------------
Ken Macy


Posted By: WebWiz-Bruce
Date Posted: 31 October 2003 at 4:52am
Persits dosn't need a name, the email address is enough, have a look at the documentation on the Persits web site.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: themayor
Date Posted: 31 October 2003 at 8:34am

OK, it has been resolved. First of all, sorry I acted as if I knew what I was talking about. I should know better than that.

What was happening was a user had marked to be notified via email for post in the forum, BUT didn't supply an email address. So Persits was trying to execute without an email address. So, I just added an "If the email exists, then send the mail".

Thanks for your help!

Tim




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net