On 7/14/07, Luc <luc@xxxxxxxxxxx> wrote:
Hello Tijnema, Friday, July 13, 2007, 10:45:48 PM, you wrote: > You must have some unclosed single quote ( ' ) somewhere, on one of > these lines probably: > $youremail = > $websitetitle = > $thankyoupage = Found the problem :-) in the block: $body =<<<EOB Empresa: $_POST[empresa_name] Contato: $_POST[contato_name] Fone: $_POST[fone] Fax: $_POST[fax] Email: $_POST[email] Produto: $_POST[produto] Origem: $_POST[origem] Destino: $_POST[destino] Quantidade: $_POST[quantidade] Peso: $_POST[peso] Comprimento: $_POST[comprimento] Altura: $_POST[altura] Largura: $_POST[largura] EOB; i had the names between [ ] with a " ' ', so i removed the " ' " and it worked. Now i still have 2 problems: 1) the email of the sender is left blank: Empresa: LUC Contato: LUC Fone: 909 Fax: 90°0 Email: Produto: UIOU Origem: IUIIO Destino: IIOP Quantidade: OIOIOP Peso: IPOIOP Comprimento: OIOI Altura: POIIPO Largura: IPOO 2) the return mail to the sender also leaves his name blank: Obrigado por nos contatar,"here should be the name of the contact" . Recebemos sua mensagem e entraremos em contato em breve -- Best regards, Luc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Isn't the sender's Email $contacto_email ? if($sendnotification == true) { $notification_message = "Obrigado por nos contatar, $contato_name. Recebemos sua mensagem e entraremos em contato em breve"; $notification_subject = "Obrigado por sua mensagem para $websitetitle."; mail($contato_email, $notification_subject, $notification_message, "From: $youremail");4 -- Phoenix Edge Network L.L.C. - Owner PHPLogic Development Services – Co-Owner Anton C. Swartz IV Based in Indianapolis, IN "The Opposite of war is not Peace it is Creation." Don't let sin rule your body. After all, your body is bound to die, so dont obey its desires or let any part of it become slave to evil. Give yourselves to God, as people who have been raised from death to life. Make every part of your body a slavethat pleases God. Don't let sin keep ruling your lives.You are ruled by God's Kindness and not by the law. Romans 6:12-14