just looking @ using swift mailer send emails windows server. have short form input field allows web user add in email address (id email), need able inject email php variable setto swiftmailer code allow mail sent designated email address... know how this?
basic code is
// set addresses associative array ->setto(array('receiver@domain.org', 'other@domain.org' => 'a name')) i need use $email rather receiver@domain.org
any ideas?
you need capture posted value.
// set addresses associative array $email = $_post['email']; ->setto(array($email)); assuming html similar to
<form method="post"> email: <input type="text" name="email" id="email_id" /> </form> keep in mind name input attribute want capture php. id not passed php script.
Comments
Post a Comment