HOME | DOWNLOAD | SUPPORT | INSTALLATION | FAQ | SUPPORT FORUM | DEMO
 ° Forums ° Statistics ° Registration ° Search ° Manual °
SkaLinks Forum / Technical Support / Emails not being sent
Author Message
Justin
Member

Posted: 8 Aug 2005 22:05:43


I just installed and have most things working except that no emails are being sent to us or to the linkers. Where should I look to see what is going on in the back end? What settings might need changing? I am not given any error messages thatI can find.

Thanks

skalinks
Admin

Posted: 9 Aug 2005 04:09:36


Hi Justin. The mails are being sent in next events:
1. Approve links
2. Disapprove links
3. Submit links
4. Delete links
Make shure that the e-mail address is real. Submit link, specify your e-mail and check if the message come. If the mail didn't sent, then you have problems with your hosting provider. Ask your hosting administrator about this problem. SkaLinks uses php fuction mail() , maybe there are some problems with this functions on server.
Thank you.

Justin
Member

Posted: 9 Aug 2005 06:49:49


Thanks,
I tried 1-4 with no luck. Will try testing the php mail() function.

Justin
Member

Posted: 9 Aug 2005 08:21:52


Ok did some testing and the following script succesfully send out an email;

<?
$Address = "phptest@mydomain.com.au";
$Subject = "Test PHP Mail Function";
$Message = "PHP Test";
$From = "phptest@mydomain.com.au";

mail($Address,"$Message","From : $From");
echo "Send Mail SuccessFully";
?>

But its still no working in skalinks. Do you know what may be different, or causng the problem? Are there any PHP settings that may be an issue maybe.

Justin
Member

Posted: 9 Aug 2005 09:09:53


Further progress.

I removed $from, from the following line in SkaLinks.class.php and got an email to send (without the correct from details naturaly)

mail( $to, $subj, $body, $from, "-f".$sender_email);

So maybe the $from variable is not correct. The code shows;

$from = "From: \"".$from."\" <".$sender_email.">\r\n"."Reply-To: <".$sender_email.">\r\n Return-path: <".$sender_email."> \n ";

Also at the top of all the sent email messages it now says

-flinks@ourdomain.com

which is a bit strange.

skalinks
Admin

Posted: 11 Aug 2005 03:32:09


Hello Justin
Some questions please:
1. What operation system does your hosting server use( if you don't know, please, ask your hosting administrator )?
2. What version of PHP does your hosting server use?

Please, try to remove the string ", "-f".$sender_email " in code
mail( $to, $subj, $body, $from, "-f".$sender_email); in SkaLinks.class.php file, because the syntax of mail() function is very specific, and the old version of PHP and Windows OS does not support some arguments of this function.

Thank you very much!

Justin
Member

Posted: 11 Aug 2005 06:46:32


Red Hat 9 with PHP 4.3.4. I tried taking out the "-f".$sender_email " but pretty sure it still didn't send the email. I'll try it again and if the result is different I'll let you know.

skalinks
Admin

Posted: 11 Aug 2005 07:03:04


Hi Justin
Replace string: mail( $to, $subj, $body, $from, "-f".$sender_email); to mail( $to, $subj, $body);
and try to send email, and one notice yet, please, insert the echo function before mail( $to, $subj, $body, $from, "-f".$sender_email);, then replace it with mail( $to, $subj, $body); and insert before it echo , I just want to know what return main function in this two ways.
Thank you!

Justin
Member

Posted: 11 Aug 2005 19:52:28


ok. Having
mail( $to, $subj, $body);
removes
-flinks@ourdomain.com

from the first line of the body of outgoing emails.

When we do a disapprove and echo $to, $subj, $body, $from, "-f".$sender_email;
we get;

joe@oursite.comMessageDear Sir/Madam, Link to http://www.theirsite.com in our directory has been disapproved. If you have questions, please feel free to ask our administration team links@oursite.comFrom: "Justin" Reply-To: Return-path: -flinks@oursite.com

when we disaprove a link and echo $to, $subj, $body
we get

joe@theirsite.comMessageDear Sir/Madam, Link to http://www.theirsite.com in our directory has been disapproved. If you have questions, please feel free to ask Netvantage administration team links@oursite.com

skalinks
Admin

Posted: 11 Aug 2005 22:20:49


Hi Justin
You didn't understand me, I wanted, that you tell me what return mail function mail(), t.e. echo mail( $to, $subj, $body); and echo mail( $to, $subj, $body, $from, "-f".$sender_email );
Please just insert echo before mail function in this two ways, and tell me what mail() func return, and check the email, where your send messages, may be it came,
Thank you!

Justin
Member

Posted: 12 Aug 2005 18:23:32


with echo mail( $to, $subj, $body); a message is sent with 1 being displayed for success

with echo mail( $to, $subj, $body, $from, "-f".$sender_email ); still no messages sent.

skalinks
Admin

Posted: 12 Aug 2005 21:51:43


ok, replace mail( $to, $subj, $body, $from, "-f".$sender_email ); with mail( $to, $subj, $body);
It is not so bad. The messages will be sent, without special headers in email letter. I think, that this problem is, because your hosting use another program for sending email ( not send mail ).
Thank you!

Justin
Member

Posted: 14 Aug 2005 19:30:24


We are using qmail.

Anonymous


Posted: 14 Aug 2005 23:08:41


this doesnt seem to work with GMAIL?

skalinks
Admin

Posted: 14 Aug 2005 23:15:27


Hi Justin
Ok, no problem, just delete last two arguments from mail() function, how I describe higher. I think, that qmail don't support this argument ( the most hosting very often use sendmail, and SkaLinks was written for most hosting ), I really sorry, that you have so problems, but all not is so bad, removed two arguments, messages wiil be send, but without headers.
Thank you!

Anonymous


Posted: 14 Aug 2005 23:24:04


hi
is this system supposed to tell me (the email address specified under settings as the main editor email) when someone add a link?
because i dont get notifiaction of somoene adding a link - but i made a test and it does send the email to the person who input the link.
I use gmail,

skalinks
Admin

Posted: 15 Aug 2005 00:41:04


Hello Anonymous
SkaLinks works with all email addresses, I discussed with Justin about qmail ( this is the the email programm on unix ), and there are some problem with this programm, which we try to corrected in new version.
We include this new option ( send the email to admin, when some one add new link for approve ) in next version. ( This task is already included in our TODO list )
Thank you!

Anonymous


Posted: 15 Aug 2005 08:53:31


ok now i understand.
Pleasse could you tell me if the upgrade will be easy - will the same mysql database still work?
By the way, is it possible to back up a mysql database and move it to a new hosting comany with my website?
Thanks

skalinks
Admin

Posted: 16 Aug 2005 00:38:17


Hi Anonymous.
No problem. It is very easy to upgrade Skalinks to new version. The same database remains with your links and categories plus new base elements add. You can upgrade your version to any other without any problems.
To move your directory to other hosting you should back up database and upload the dump of back up to new hosting and copy all files of SkaLinks. Don't forget to set chmod 777 for appropriate folders.
Thank you.