Jump to content

tell a friend script code


Parin

Recommended Posts

Google's great for finding scripts. Found this one on Google. Just open up the zip file below on your site and follow the install.txt instructions.

 

http://www.php-learn-it.com/php_scripts/de...iend_script.zip

You can always just put a link to email with a message already put in it with the <a href="mailto:"> tag

Then they would just put in what their email address is

<a href="mailto:Your Friends Email Goes Here?subject=Check out this great site?message=Check out www.site.com">Tell A Friend!</a> 

I just thought that up, never tested it though.

 

I agree with byron that The Oracle (aka Google) is very helpfull when trying new scripts

Link to comment
Share on other sites

  • 3 weeks later...

Use php to send mail. You could use the html mailto but that will open the default mailing program on your computer (outlook for most people). Not only do most people use browser-based mail providers but taking extra steps to send mail will cause your users not only to refrain from sending, but perhaps deter them from your crumby site completely. They should be able to send email with as little steps as possible.

 

PHP Mail function:

mail(to,subject,message,headers,parameters)

Note that if you are having trouble sending email then your hosting provider may not support php email. This is because some people attach massive files or send mass emails with the php mail function. This will slow down the hosting servers and eat up bandwidth. If you are using a free hosting provider you probably won't be able to send email, but give it a try.

 

Try searching w3schools first (google is great too).

http://w3schools.com/php/php_mail.asp

Link to comment
Share on other sites

  • 3 weeks later...

<?php
$to="you@email.com";
$subject="Hello,Mr";
$message="Hi,this is my message";
$sent=mail($to,$subject,$message,"From:you@yahoo.com");
if($sent){
echo "Mail Sent!";
}
else{echo"
Failed!";
}


?>

 

 

If it helps reply!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...