Demonten Posted May 10, 2011 Report Share Posted May 10, 2011 For class I have to make a "newsletter signup form". It didn't actually have to send an e-mail, but the bonus was to make it send an e-mail if the person submitted a form to remove themselves from the database. I am not really sure how to hook it up to the UniServer SMTP or anything, nor do I know how to hook it up to any other mail server. The code I have for now is: $to = $email; $subject = "You left!"; $body = "You have successfully removed yourself from our database, you treacherous scum."; if (mail($to, $subject, $body)) { echo("An e-mail has been sent confirming your removal from our database."); } else { echo("<em>failure sending e-mail</em>"); } The e-mail variable is defined earlier in the script. It is retrieved from the database. Quote Link to comment Share on other sites More sharing options...
Coral Posted May 10, 2011 Report Share Posted May 10, 2011 The following Wiki page will help you:http://wiki.uniformserver.com/index.php/5.3-Nano:_msmtpCovers Uniform Server configuration and example PHP script for sending e-mails. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.