Results 1 to 2 of 2

Thread: [RESOLVED] Sending and email from a form.

  1. #1

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Resolved [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.

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width