PDA

View Full Version : Sending Out Welcome Email


Guest
21st April 2004, 07:30 AM
I install the Postaff, it works good, it is not sending out emauls to the clients...
James E

mark
22nd April 2004, 10:57 AM
Hello,

this can be caused by many things, for example your webhosting provider can restrict the function for sending emails.

Are only some specific emails (after signup) emails not sent, or you cannot send any email to your affiliates?

Is it possible that I'll review installation of POST Affiliate Pro on your server?


There was a problem with sending emails using form in Contact page, so if you tried to contact me before this way, I havent received any email. I'm sorry for this, please contact me with all your requests directly by email on info@webradev.com or use this forum.

mark

Guest
23rd April 2004, 02:38 PM
Thank you Mark,,It is working now it was something I did I was trying to add more tables. so I re-install and it works fine...I do have another ??
I was doing some testing before I go live and I notice that it wasn't registering clickthrough from banners. the ?affi(name) is in place..what should I do?
Thanks
James E

bvdugo
26th April 2004, 05:20 PM
It doesn't register my click thrus or sales either whats up with that, anyone else have this problem or already fixed this problem?

Thanks
bvdugo

mark
26th April 2004, 08:51 PM
Hi,

if it doesnt register your sales or clickthroughts, there can be two problems:

1. your database connection setting is incorrect - if you can log in into the control panel, then the settings should be ok.

2. you include affiliate.php, or check1.php in a bad way.
For example, if you placed post affiliate into subdirectory /affiliates of your main site, but you have your other files in main directory, then you should include affiliate.php and check1.php as
include('./affiliates/affiliate.php');
resp.
include('./affiliates/check1.php');

otherwise the scripts will be not found, and no transaction will be registered

3. you are including the files into a HTML file. It must be php file in order PHP to process it.

James E
27th April 2004, 03:48 PM
Hello Mark
You know I am having the same problem, I tried the <?'./affiliates/affiliate.php'; ?> never could get it to work..I haven't tried it the way you have it here ('./affiliates/affiliate.php'); I will try this one..
as of now it's not working...
James E

bvdugo
28th April 2004, 07:43 PM
Click throughs are showing up now after moving files, but the sales are not registering, i'm using it on a phpnuke site,

Question 1
should the check1.php include have to be at the top of the php page before anything else

Question 2
can you have both includes on the same page so as to give the affiliate $ for the visit alone, meaning the index page would be the confirmation page as well


You Have Quick & Excellent Support
Thank You for Your time once again
bvdugo

mark
28th April 2004, 11:14 PM
Just for the others I want to say this applies to free version of POST Affiliate. POST Affiliate Pro (commercial) has registration of clicks and sales solved in different way.


Answer 1
No, check1.php should be included in the end of page, because script will call exit if there is no reference to affiliate found and it will cancel the script.
If you'll replace the exit; command with return; you can put it anywhere on the page.

In contrary, affiliate.php has to be on the top of php page (before any content is sent), because it sets cookie and this can be done only before html content is sent.


Answer 2
It will work also this way, but it is better to replace both scripts with simpler code. In this case you dont need to send cookies, so you can just create another script called for example registrator.php with content:


<?php

if($_GET['ref'])
{
include "affconfig.php";

mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 17)");

// register clickthrough
mysql_db_query($database, "INSERT INTO clickthroughs VALUES ('". $_GET['ref']."', '$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$clienturl', '')");


$payment = 5.0; // example price

// register sale
mysql_db_query($database, "INSERT INTO sales VALUES ('$ref', '$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$payment')");
}

?>

and then include this script instead of affiliate.php and check1.php.

Remember, for security reasons do not call the script registrator.php :D,
otherwise y
our affiliates who will guess it will be able to generate fake sales just by calling http://yoursite.../registrator.php?ref=their_ref