Re: Problem with Mailing

From: Date: Tue, 16 Apr 2002 20:09:55 +0000
Subject: Re: Problem with Mailing
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-9638@lists.php.net to get a copy of this message
This address is not for submitting support questions. Please ask support questions on our mailing lists, or other support channels. A list can be found at http://php.net/support Goba [one webmaster@php.net] ----- Original Message ----- From: Thomas@ditadres.nl To: webmaster@php.net Sent: Tuesday, April 16, 2002 9:50 PM Subject: Problem with Mailing Hello, I'm using an Apache Webserver on Windows XP I have downloaded the right PHP files and used a manual in the book PHP FOR FLASH for making sure That the apache webserver detects the php. But the problem is that when I want to send something with php to an email adres (using Flash) I get the following WARNING: Warning: Server Error in c:\program files\apache group\apache\htdocs\contact.php on line 88 Warning: Bad Message destination in c:\program files\apache group\apache\htdocs\contact.php on line 89 I have checked the line numbers but I don't see any faults. Here is the code that I put in the php <? $siteName = "Sinterklaas Verhalen"; $siteURL = "http://www.sinterklaasverhalen.tk"; $siteContact = "Admin@perfectdarkforever.com"; $siteName 2 = "Sinterklaas Verhalen"; $siteContact 2 = "Script@perfectdarkforever.com"; $Subject = "WWW Sinterklaas Verhalen Formulier"; $SubjectSender = "Dank je wel $Naam"; $FlashHelp = "Flashhelp@perfectdarkforever.com"; $Sendermail = "noreply@perfectdarkforever.com"; $mailMessage = " Onderwerp = $Onderwerp ---------------------- Naam = $Naam ------------- E-mail = $Email --------------- Opmerkingen = $Opmerkingen IP Adres = $REMOTE_ADDR ---------------------------------------------------------------------- Deze feedback is verstuurd via $siteName $siteURL ---------------------------------------------------------------------- ---------------------------------------------------------------------- This script is provided to you by Sinterklaas Verhalen.tk and Perfect Dark Forever.com ©Thomas Klein Middelink For contact please mail to $siteContact For help with programming your Flash movie please contact $FlashHelp ----------------------------------------------------------------------"; $mailMessageSender = " Hallo $Naam, Dank je wel voor het sturen van je e-mail. Je hebt de volgende gegevens ingevuld: Onderwerp = $Onderwerp ----------- Naam = $Naam ----------- Email = $Email ----------- Je opmerkingen = $Opmerkingen ------------- ----------------- Wij proberen zo snel mogelijk contact met je op te nemen Groetjes Thomas Klein Middelink $siteName ------------------------------------------ Als je denkt dat dit mailtje onterecht bij jou is aangekomen stuur dan een email naar: $siteContact ------------------------------------------"; // Build up email header fields $mailFrom = "From: $siteName 2 <$siteContact 2>"; $mailTo = "$siteName <$siteContact>"; $mailSubject = "$Subject"; $mailFromSender = "From: $siteName2 <$Sendermail>"; $mailToSender = "$Naam <$Email"; $mailSubjectSender = "$SubjectSender"; // Send email mail($mailTo, $mailSubject, $mailMessage, $mailFrom); mail($mailToSender, $mailSubjectSender, $mailMessageSender, $mailFromSender); $response = "Dank je wel $Naam,\n\nJe krijgt zo spoedig mogelijk antwoord."; // Respond to Flash movie! print "&result=Okay&response=$response&"; ?> I really hope that you can help me cause this is a really big problem Thanks in advance Thomas Klein Middelink Thomas Klein Middelink Thomas@ditadres.nl

« previous php.mirrors (#9638) next »