Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Bug Reports - Other Issues
Author Message
ozbutcher
Worker
Worker



Joined: Jan 17, 2007
Posts: 170

PostPosted: Fri Mar 30, 2007 8:38 am Reply with quote

Hi Guys,

I've set the email "noreply@burnt-guild.com" to show when nuke sends out emails to users. It works fine for PM Notifications and new user registrations.

But when notifying users that their submitted content has been approved the email FROM is not what I entered in the admin center under config, instead it is (Guild@node3.c26)??


Last edited by ozbutcher on Wed Apr 04, 2007 7:17 pm; edited 1 time in total 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Mar 31, 2007 8:30 am Reply with quote

Under Preferences, there are several email addresses that you might want to "adjust" and they are:

Administrator Email:
Email to send the message:

Are these set properly?

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
ozbutcher







PostPosted: Sat Mar 31, 2007 8:49 pm Reply with quote

yes I've checked them all... including the forums and sentinel ACP.

The only email which does not show proper return address is new content notifications to the user who submitted it.
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sun Apr 01, 2007 7:32 am Reply with quote

What 'new content notifications' are we discussing here?
My initial thoughts if you are referring to news module or some other core module that is using the php mail function is that it is a host issue to do not having a vlaid return address. You can test that easily enough by creating a pop3 account for your 'noreply@' email address.
If that cures the problem, go back to your hosts control panel and set that pop3 account to redirect to ':blackhole:' (without the single quotes) and that will delete any mail sent to that adress.
 
View user's profile Send private message Send e-mail
ozbutcher







PostPosted: Sun Apr 01, 2007 10:47 pm Reply with quote

By content notification emails I'm referring to are the emails that gets sent to users after they have successfully submitted new weblinks or downloads. I haven't tested the news with this.

Guardian: I did what you suggested, created a pop3 account for that email but I still have the same issues. The forums do send out to noreply@ when notifying of new posts etc. I thought there may have been a bug in the module that sends out the content approval emails

Just then I submitted a new link to my site. I then approved it as super admin. And my user account then received a email from: burnt@node4.c26 instead of my default selected: noreply@burnt-clan.com
 
Guardian2003







PostPosted: Sun Apr 01, 2007 11:31 pm Reply with quote

I cannot believe how many typo's I made in that last post...
I'm not sure why you are having this issue to be perfectly honest. The only time I have seen similar problems is either when the host has done something weird with the php mail() function or or the server is Windows based.

I am assuming that user registrations are getting the 'from' email address ok?
Which of the two settings that Montego mentioned is the one our have set to noreply@ ?
 
ozbutcher







PostPosted: Sun Apr 01, 2007 11:54 pm Reply with quote

yeah user registrations seem to be going through okay as with every other email sent from nuke such as forum post notifications, nuke sentinel notifications, new pm notifications.

the only one that reports wrong from address is the content emails Sad
 
montego







PostPosted: Mon Apr 02, 2007 6:56 am Reply with quote

Ok, I have checked the RN2.10 downloads and web links module and only web links is supposed to submit an email back upon approval. I could also not find any mailing of news acceptance articles or comments. To have these notifications, one would have to hack the code to do so... so, on to Web Links...

Try this and see if this works:

=== OPEN ===

modules/Web_Links/admin/index.php

=== FIND ===

Towards the very bottom of the file, find this code:

Code:


        $from = "$sitename";


=== CHANGE TO ===

Code:


        $from = "$sitename<$adminmail>";


=== FIND ===

Up above the line you just altered, find this:

Code:


function LinksAddLink($new, $lid, $title, $url, $cat, $description, $name, $email, $submitter) {
    global $prefix, $db, $sitename, $nukeurl, $admin_file;


=== ADD ===

Make that global line look like this:

Code:


    global $prefix, $db, $sitename, $nukeurl, $admin_file, $adminmail;


=== DONE ===

Let us know if that fixes it.
 
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Mon Apr 02, 2007 5:51 pm Reply with quote

Montego, I think your on the money, except one thing,

$from = "$sitename<$adminmail>";


Shouldnt that be :
$from = "$adminmail";

Now the reason I ask,

This is your_account module snipet:
$subject = _ACTIVATIONSUB;
$from = "$adminmail";
mail($user_email, $subject, $message, 'From: '."$from\n".'X-Mailer: PHP/' . phpversion());

From my version and as they stated, it works.

Excellent call, I was able to duplicate it and montego was dead on track.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
ozbutcher







PostPosted: Mon Apr 02, 2007 7:48 pm Reply with quote

Thanks montego!! That fixed it Smile

Another bug gone!
 
montego







PostPosted: Tue Apr 03, 2007 6:00 am Reply with quote

ozbutcher, had you tried it exactly as I had presented it, or as Darklord suggested? I did it the way I did it as I think having the sitename show up in the From is a "nice touch" for "end consumer" of the email.

I need to know so that I know exactly which change to make to RN. Thanks.
 
ozbutcher







PostPosted: Tue Apr 03, 2007 6:03 am Reply with quote

I used only your code Montego and the email address is now displaying as I have set it in my admin panel!! :clap: Smile

I didn't test darklord's code because ur's seemed to have fixed it.


Last edited by ozbutcher on Tue Apr 03, 2007 6:12 am; edited 1 time in total 
montego







PostPosted: Tue Apr 03, 2007 6:11 am Reply with quote

Ok. Thank you!
 
gregexp







PostPosted: Tue Apr 03, 2007 3:56 pm Reply with quote

My apologies montego, what was I thinking? lol

I was thinking the from e-mail had to be a legitimate e-mail to be processed properly, I guess I spent too long away from nuke, sorry.
 
montego







PostPosted: Wed Apr 04, 2007 6:51 am Reply with quote

No worries m8. Either way works (should).
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Bug Reports - Other Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©