Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-28-2011, 07:41 PM
ruletka ruletka is offline
Member
 
Join Date: Aug 2010
Location: WA
Posts: 13
Gender: Female
Credits: 1,977
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
  #2  
Old 06-29-2011, 06:24 AM
maximillion maximillion is offline
Member
 
Join Date: Jun 2011
Location: Rhode Island
Posts: 67
Gender: Male
Credits: 13,288
maximillion is on a distinguished road
Default

cool, i'll have to test it out.. ty :)
__________________
Former owner/designer of a mafia game that i closed down after 7 years. i also do the following:

can fix most photos (wallets, 8x10, etc..)...
can code in vb 6.0...
html and some css...

made a couple of Nintendo DS games and working on more...

i want to learn php eventually...
Reply With Quote
  #3  
Old 06-29-2011, 11:01 AM
maximillion maximillion is offline
Member
 
Join Date: Jun 2011
Location: Rhode Island
Posts: 67
Gender: Male
Credits: 13,288
maximillion is on a distinguished road
Default

didn't work on zymic hosting.. i'll have to try it on another host later today.
__________________
Former owner/designer of a mafia game that i closed down after 7 years. i also do the following:

can fix most photos (wallets, 8x10, etc..)...
can code in vb 6.0...
html and some css...

made a couple of Nintendo DS games and working on more...

i want to learn php eventually...
Reply With Quote
  #4  
Old 06-29-2011, 02:40 PM
Nemesis's Avatar
Nemesis Nemesis is offline
Member
 
Join Date: Mar 2011
Location: Ohio, United States
Posts: 641
Gender: Male
Credits: 68,416
Nemesis is on a distinguished road
Default

Quote:
Originally Posted by maximillion View Post
didn't work on zymic hosting.. i'll have to try it on another host later today.
__________________
https://gemnode.com
Free Hosting for Mysidia Adopt Sites
Just join our forum and request your free hosting account
Reply With Quote
Reply

Thread Tools
Display Modes

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 10:30 AM.

Currently Active Users: 3313 (0 members and 3313 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