thank you EricB,
I did that, put the code in the php button and added all my fields in the Message variables with </ br> between them but it keep producing this error when trying to send the form…
Fatal error: Uncaught exception 'Swift_RfcComplianceException' with message 'Address in mailbox given [$this->mailto] does not comply with RFC 2822, 3.6.2.' in E:\sc8\project5\_lib\prod hird\swift\classes\Swift\Mime\Headers\MailboxHeader.php:308 Stack trace: #0 E:\sc8\project5\_lib\prod hird\swift\classes\Swift\Mime\Headers\MailboxHeader.php(238): Swift_Mime_Headers_MailboxHeader->_assertValidAddress('$this->mailto') #1 E:\sc8\project5\_lib\prod hird\swift\classes\Swift\Mime\Headers\MailboxHeader.php(96): Swift_Mime_Headers_MailboxHeader->normalizeMailboxes(Array) #2 E:\sc8\project5\_lib\prod hird\swift\classes\Swift\Mime\Headers\MailboxHeader.php(60): Swift_Mime_Headers_MailboxHeader->setNameAddresses(Array) #3 E:\sc8\project5\_lib\prod hird\swift\classes\Swift\Mime\SimpleHeaderFactory.php(60): Swift_Mime_Headers_MailboxHeader->setFieldBodyModel(Array) #4 E:\sc8\project5\_lib\prod hird\swift\classes\Swift\Mime\SimpleHeaderSet.php(75): Swift_Mime_SimpleHeaderFactory->createMailboxHeader('To', Array) #5 E:\sc8\project5\_lib\prod hird\swift\classes\Swift\Mime\SimpleMessage.php(306): Swift_Mime_SimpleHeaderSet->addMailboxHeader('To', Array) #6 E:\sc8\project5\_lib\prod hird\swift\classes\Swift\Mime\SimpleMessage.php(282): Swift_Mime_SimpleMessage->setTo(Array) #7 E:\sc8\project5\form_edit\form_edit_apl.php(1647): Swift_Mime_SimpleMessage->addTo('$this->mailto', '') #8 E:\sc8\project5\form_edit\form_edit_apl.php(1053): epts_email_apl->sc_btn_sc_btn_0() #9 E:\sc8\project5\form__edit\form_edit_apl.php(1144): form_edit_apl->ini_controle() #10
E:\sc8\project5\form_edit\index.php(1556): form_edit_apl->controle() #11 {main} thrown in
E:\sc8\project5\_lib\prod hird\swift\classes\Swift\Mime\Headers\MailboxHeader.php on line 308
i have mail server installed on the same machine, and it is working fine, but i configured the mail values to be sent like “localhost” because i want to use the phpfunction() to send, not the smtp, is there anything else i must do?
one more thing, hence, if used this button, the mailto field can be left without filling! i put it as required, but the button “send” doesn’t force the user to fill the mailto field! also is not practicle what you think?