| Author |
Message |
Stevie Ray Member
|
Posted: 7 May 2006 17:49:45
I have finally figured this out. There are TWO fixes that are needed and they are detailed below. If you do these, the email "from" header will not be right still... it shows as coming from the HOST email rather than the administrator or editor, which is kind-of unfortunate. But at least it works !
PS If anyone knows how to change the FROM sender to ADMIN or even better EDITOR name that would be really great... please add the fix to this post.
Of course the best way to test this in your environment is to comment out the code you will be changing with /* to start and */ to end the comment area - put those in front and behind the code you will replace along with some comments so you can go back if you have to.
Here is the combined fix for email:
/* The entire email fix has two parts
*
* This first part courtesy of
* SKALINKS ADMIN to deal with
* SAFE MODE server setting
*/
-----OPEN------
skalinks_1_5/ SkaLinks_include / SkaLinks.class.php file
----FIND ------
mail( $to, $subj, $body, $from, "-f".$sender_email );
-----REPLACE WITH -----
mail( $to, $subj, $body, $from );
/* Part two is this next fix courtesy of Weezer in Nov2005
* posting http://www.skalinks.com/forums/1_167_0.html * we don't know why you need to do it but it works.
*/
-----FIND------------------
$from = "From: \"".$from."\" <".$sender_email.">\r\n"."Reply-To: <".$sender_email.">\r\n Return-path: <".$sender_email."> \n ";
----REPLACE WITH-----------
"From: \"$from\" <$sender_email>\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
-----SAVE AND CLOSE FILES---------
Hope this saves someone some time -- including you dear SKALINKS ADMIN!
SRVII
|
marzdy Member
|
Posted: 8 May 2006 14:53:03
Hello,
It didn't fix email problem in my site http://ebiznes24.ovh.org/links/
If anyone wanna try help me, i'll give ftp login data.
Best regards
|
Stevie Ray Member
|
Posted: 9 May 2006 12:02:34
Maybe try turning off the linkback to see if you can just do a vanilla add ?
SRV II
|
Anonymous
|
Posted: 9 May 2006 17:33:29
It not working too :(
|
marzdy Member
|
Posted: 9 May 2006 17:34:30
i forgot login, sorry
|
Justin Member
|
Posted: 25 Sep 2008 18:37:35 ° Edited by: Justin
That didn't seem to fix it for us either.
http://reciprocal-links.netvantage.net.au/resources/
|
|