PDA

View Full Version : Bugfix: Submission notification email


yktan
07-14-2005, 09:58 AM
Hi, here's a mod to fix the submission notification email for both the user and administrator (there are 2 emails that are being sent out when a submission is entered).

Open include\functions.php
(1) Find:
Content visible to registered users only.
Add below:
Content visible to registered users only.

(2) Find:
Content visible to registered users only.
Replace with:
Content visible to registered users only.

The reasons for the above changes:
Since during the submission process, no admin user is logged in, the function will not be able to get the admin user's email and name. A new function is made so that it will take the first admin user's email and name to be used during sending of emails.
Note: This is a temporary fix. I am not sure if dcb will implement new parameters to let you specify what is the default email address and name to be used for sending emails.

richm
12-05-2005, 11:02 AM
I am running the current version, and I noticed that this new function is already in the function.php file. However, I am still sending out emails with blank FROM addresses. Any ideas what might be going on?

***EDITED*** Let me be more specific. I am receiving notification emails with a FROM address when a user registers their new link. However, when I use the admin "Send Email and Add Link" function, the user gets an email without a FROM address. This is probably a problem with this feature. Has anybody else had problems with this feature? If you use SMTP, could you test this feature by adding a link using your own email address?

yktan
12-08-2005, 07:33 AM
Hi richm, try to apply the fix highlighted at:
{topic no longer available}

Tell me how it goes.

Regards,
York Kie

Interlogic
12-08-2005, 01:17 PM
My version already seems to have this fix in place but I am still getting two e-mails sent when a link is submited.. One is the submission received e-mail that I wrote and the other seems to be a default email like this:

Title: Test 3
URL: {url not available}
PageRank: 0
Description:

Owner Name: Michael Gargan
Owner Email: {email not available}
Reciprocal URL:
Reciprocal PageRank: {LINK_RECPR_PAGERANK}

Any ideas?

Mike

yktan
12-08-2005, 03:53 PM
Hi Mike, I haven't heard of this problem before. I suspect there is a rogue record in the database. Would you be able to give me cpanel and phpmyadmin access?

iqra_psh
02-18-2006, 05:54 PM
Content visible to registered users only.
Hi yktan,
ive done both changes you said but i still am unable to recieve any messages.
one on this page was already done but i replace and {topic not available}
this one as well but still not getting email can u help ?
Thanks