Duofilm Posted March 6, 2012 Share Posted March 6, 2012 $IP = $_SERVER['REMOTE_ADDR']; $DATE = date("Y-m-d"); $TIME = date("H:i:s"); $NameOfSender = "BLABLABLABALLA"; $email = $fieldnm_3; // use their addy instead of yours $subject = 'ikwerkthuis.be inloggegevens introductie film'; // change subject $text = 'Beste $NameOfSender, Welkom bij ikwerkthuis.be. Hieronder vind U de logingevens voor het bekijken van de introductiefilm: Adres: http://ikwerkthuis.be/index.php/introductie Gebruikersnaam: introductie Paswoord: film2012 %DataOfForm% Wij nemen spoedig contact met u op. Met vriendelijke groeten, Het ikwerkthuis.be team IP: $IP Date: $Date Time: $Time'; // change text mail($email, $subject, $text, 'From: '.$emailadd.''); // send another one out header("Location:$success_page_name"); } ?> Link to comment https://forums.phpfreaks.com/topic/258389-how-do-i-get-my-variables-in-my-auto-reply-email-text/ Share on other sites More sharing options...
smerny Posted March 6, 2012 Share Posted March 6, 2012 use double quotes around your text content ($text = "Beste $NameOfSender ...") and it will evaluate your variables within otherwise you can concatenate... $text = 'Beste '. $NameOfSender .', ...' Link to comment https://forums.phpfreaks.com/topic/258389-how-do-i-get-my-variables-in-my-auto-reply-email-text/#findComment-1324487 Share on other sites More sharing options...
Duofilm Posted March 6, 2012 Author Share Posted March 6, 2012 That seemed to work thanks alot ! Do you happen to know why my date & Time are not showing ? $DATE = date("Y-m-d"); $TIME = date("H:i:s"); this is correct no ? Link to comment https://forums.phpfreaks.com/topic/258389-how-do-i-get-my-variables-in-my-auto-reply-email-text/#findComment-1324492 Share on other sites More sharing options...
Duofilm Posted March 6, 2012 Author Share Posted March 6, 2012 nvm I found the problem,... was a CAPSLOCK problem Link to comment https://forums.phpfreaks.com/topic/258389-how-do-i-get-my-variables-in-my-auto-reply-email-text/#findComment-1324496 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.