Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Help needed regarding Email Notification
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help needed regarding Email Notification

 Post Reply Post Reply
Author
themayor View Drop Down
Newbie
Newbie


Joined: 30 October 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote themayor Quote  Post ReplyReply Direct Link To This Post Topic: Help needed regarding Email Notification
    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

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
themayor View Drop Down
Newbie
Newbie


Joined: 30 October 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote themayor Quote  Post ReplyReply Direct Link To This Post 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 "bob@bob.com", "bob")

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

Back to Top
kmacy View Drop Down
Groupie
Groupie
Avatar

Joined: 15 March 2002
Location: United States
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote kmacy Quote  Post ReplyReply Direct Link To This Post 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.



Edited by kmacy
Ken Macy
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
themayor View Drop Down
Newbie
Newbie


Joined: 30 October 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote themayor Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.