Author |
Message |
ozbutcher
Worker
Joined: Jan 17, 2007
Posts: 170
|
Posted:
Fri Mar 30, 2007 8:38 am |
|
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 |
|
|
|
montego
Site Admin
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sat Mar 31, 2007 8:30 am |
|
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! |
|
|
|
ozbutcher
|
Posted:
Sat Mar 31, 2007 8:49 pm |
|
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
|
Posted:
Sun Apr 01, 2007 7:32 am |
|
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. |
|
|
|
|
ozbutcher
|
Posted:
Sun Apr 01, 2007 10:47 pm |
|
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
|
Posted:
Sun Apr 01, 2007 11:31 pm |
|
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
|
Posted:
Sun Apr 01, 2007 11:54 pm |
|
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 |
|
|
|
|
montego
|
Posted:
Mon Apr 02, 2007 6:56 am |
|
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
|
Posted:
Mon Apr 02, 2007 5:51 pm |
|
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!! |
|
|
|
ozbutcher
|
Posted:
Mon Apr 02, 2007 7:48 pm |
|
Thanks montego!! That fixed it
Another bug gone! |
|
|
|
|
montego
|
Posted:
Tue Apr 03, 2007 6:00 am |
|
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
|
Posted:
Tue Apr 03, 2007 6:03 am |
|
I used only your code Montego and the email address is now displaying as I have set it in my admin panel!!
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
|
Posted:
Tue Apr 03, 2007 6:11 am |
|
|
|
|
gregexp
|
Posted:
Tue Apr 03, 2007 3:56 pm |
|
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
|
Posted:
Wed Apr 04, 2007 6:51 am |
|
No worries m8. Either way works (should). |
|
|
|
|
|