Computers |
|
| | #1 (permalink) |
| Super Techie Join Date: Oct 2003
Posts: 439
| I'm making a form and I don't want to use the mailto command that makes the user open up their local email client. I want to send the email automatically once the user clicks the submit button and then redirect them to a certain page. I'm guessing this is possible using php, but wouldn't know how to. Simpleness is good, because I don't know too much php; thanks.
__________________ \"I have many layer-eight problems in my life, including myself.\" |
| | |
| | #2 (permalink) |
| Super Techie |
__________________ Christopher Ingram Principal Consultant, Souken Group, LLC. C.Ingram@SoukenGroup.com (856) 392 5244 -- (866) Go Souken |
| | |
| | #3 (permalink) |
| Super Techie Join Date: Oct 2003
Posts: 439
| oh crap I didn't think that I might need a mail server running. The one server I am using now doesn't give me access to a mail server. Any other way to send mail automatically and redirect without having to alter anything server side?
__________________ \"I have many layer-eight problems in my life, including myself.\" |
| | |
| | #4 (permalink) |
| Super Techie | No. What you can do here depends on where you are sending e-mails. If you are sending to just one e-mail address, you can use ini_set to specify SMTP and smtp_port, changing the mail server PHP will use. If its your ISP's, you are set. If you need to send to different addresses, you will need to look up the MX record and change the SMTP server settings on the fly before calling mail().
__________________ Christopher Ingram Principal Consultant, Souken Group, LLC. C.Ingram@SoukenGroup.com (856) 392 5244 -- (866) Go Souken |
| | |