Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Creative Discussion > Programming and Game Development

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-28-2011, 07:41 PM
ruletka ruletka is offline
Member
 
Join Date: Aug 2010
Location: WA
Posts: 13
Gender: Female
Credits: 1,865
ruletka
Wink

Code:
<?php 
 $theiremail = $_REQUEST['email']; 
 $to = 'youremail@live.com';
 $fields = array(); 
 $fields{"email"} = "Email"; 
 $body = "\n\n"; foreach($fields as $a => $b){ 	$body .= sprintf("%20s: %

s\n",$b,$_REQUEST[$a]); } 
 
 $headers2 = "From: $theiremail"; 
 $subject2 = "Someone contacted you"; 
 $autoreply = "".$theiremail."";
 
 if($theiremail == '') {print "You have not entered an email, please go 

back and try again";} 
 else { 
 
 $send = mail($to, $subject2, $autoreply, $headers2); 
 if($send) 
 {header( "Location: http://www.site.com/thanks" );} 
 else 
 {print "We encountered an error, please notify 

webmaster@YourCompany.com"; } 
 }
?>
I got the code from http://php.about.com/od/phpapplicati...orm_mail_3.htm and I altered it.

Last edited by ruletka; 06-28-2011 at 07:52 PM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:07 AM.

Currently Active Users: 2179 (0 members and 2179 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636