Now, given I’m being incredibly thick here and you’re welcome to say so, but I looked at and tried the Tell a Friend suggestions and none seems to work for me.
I’m doing the website for a new software, and we want some element of viral marketing in it. (The site is aimed at professionals)
I need to be able to have a button, Tell a Friend, and on click generate an email through the local email client having title, body copy and a url link to the site home page.
I’d be pleased for any suggestions, up a gum tree on this one.
And please do tell me if I’m being thick, it’s good for the ego!
Be aware, though, that this is an extremely fragile way to go, and it won’t necessarily work in all browsers or on all computers. You are always better off using a server-side form for this sort of thing.
Walter
On Nov 9, 2011, at 11:24 AM, Terry wrote:
Now, given I’m being incredibly thick here and you’re welcome to say so, but I looked at and tried the Tell a Friend suggestions and none seems to work for me.
I’m doing the website for a new software, and we want some element of viral marketing in it. (The site is aimed at professionals)
I need to be able to have a button, Tell a Friend, and on click generate an email through the local email client having title, body copy and a url link to the site home page.
I’d be pleased for any suggestions, up a gum tree on this one.
And please do tell me if I’m being thick, it’s good for the ego!
Hello Walt, I sometimes wonder when you get time to sleep! You’re always there when I post up.
OK, I still think I’m being thick, but could you recommend a good server side script please. The server this will reside on is a Windows server - not my choice, the client’s!
Windows PHP is pretty much just like *nix PHP, except for sending mail. Now if your hosting provider has set up mail properly, it should work. Try this little test:
In a plain-text editor, like TextWrangler, create a file called mail_test.php and put the following lines in it (replace placeholder where noted):
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
$to = 'yourEmailAddress';
$from = 'anEmailAddressOnTheServer';
if mail(
$to,
'Test Message',
'This message was sent from the Windows server',
"From: {$from}",
"-f{$from}"
) print 'Mail sent!';
?>
Upload that file to your server, and visit it in a browser. You should see a blank page with the words Mail sent! on it. If you see an error or a blank page, let me know.
It’s 2PM on a lovely fall day here in Philadelphia. No surprise I’m awake and coding furiously.
Walter
On Nov 9, 2011, at 12:10 PM, Terry wrote:
Hello Walt, I sometimes wonder when you get time to sleep! You’re always there when I post up.
OK, I still think I’m being thick, but could you recommend a good server side script please. The server this will reside on is a Windows server - not my choice, the client’s!
Love the dog, Walt. I’ve got three Border Collies here in the east of the UK. They all family, mum, dad and eldest son. A complete pain, but completely loveable
Thanks for that Walt, I’ll do it this evening, well, it’s 1900 hours here in the UK.
The lady who trained Rosie (our poodle) had two border collies. Those dogs were so smart they could play Frisbee with one another. Seriously – one would throw it and the other would catch. I wouldn’t have believed it if I hadn’t seen it.
Walter
On Nov 9, 2011, at 2:05 PM, Terry wrote:
Love the dog, Walt. I’ve got three Border Collies here in the east of the UK. They all family, mum, dad and eldest son. A complete pain, but completely loveable
Thanks for that Walt, I’ll do it this evening, well, it’s 1900 hours here in the UK.
<script language="Javascript1.2">
document.write('<a href="javascript:void(0)" onclick=window.open("recommend.php?loc='+window.location.href+'","","height=300,width=300,top=150,left=200,toolbar=no,menubar=no,location=no,status=no,resizable=1"); title="Recommend this to a friend">Share us with a friend</a>');
</script>
and the recommend.php file which is uploaded to your server
But of course you will need to do Walter’s PHP check on your server first.
OK, I’m not at all sure this is germane to the thread I began earlier, and it will probably be moderated out, and maybe righty so, but here goes.
We took our three Border Collies (a cut bitch and two uncut dogs) to Sandringham House, the Queens Norfolk Home (we live nearby, well sixty miles). They had a frisbee to play with. Like Walt’s dog, they throw it and catch it between them. Nice and easy for us. Drink tea and shout encouraging words. That’s us.
Of a sudden, my lead dog, a Blue Merle Border dog called George, decides to eat the frisbee, and does so. Never saw it again or any evidence of it.
And we think our guts are good!
Now the bit that won’t be moderated out. Walt, we’re t least six hours ahead of you, it’s passed bed time and
I’ll implement your advice tomorrow and report back.
Again, my thanks, sincerely, my thanks.
Sort of a PS; George is well known locally and is on my personal website. His image there belies his ferocious, near wolf, personality.