Parin Posted September 14, 2009 Posted September 14, 2009 Hello everybody i m creating a website now i need a tell a friend script code: which send an email from some one to another guy tell that guy about my website! please help me...
Byron Posted September 14, 2009 Posted September 14, 2009 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
Mokothemonkey Posted September 14, 2009 Posted September 14, 2009 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
MrFish Posted October 5, 2009 Posted October 5, 2009 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
sauravrawal Posted October 24, 2009 Posted October 24, 2009 <?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!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now