[RESOLVED] Sending and email from a form.
Hi,
I have created a customer website which has a contact us form on which on submit populates a database. I would also like to send to myself the contents of the form in an email when the form is submit.
All the examples I have seen seem to require the customer to have an email client and know their email settings to send from, since this can not be known how do I send an email. The website is hosted externally.
Re: Sending and email from a form.
Hey,
Bottom line, you as the creator of the site, need to know the SMTP details of an SMTP Server that you want to use to send the email. You will likely already have this service from your web host, so they should be able to tell you the details.
Then, on the server side, you take all the information from the form, place it into an email, and then send it. The client, i.e. the user of your application, doesn't need to provide any email details, as they are already known.
Have a look here:
http://www.4guysfromrolla.com/articles/072606-1.aspx
For more information.
Gary