Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Post Form email

  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Form email

    Hi i am using dreamweaver 4 and i have made a form now wish to post it to and email account, but i was wondering how to set a post button without the post trying to come from the users email, as whenever you press the button it wishes to bring up their email account to send message.

  • #2
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,044
    Thanks
    2
    Thanked 316 Times in 308 Posts
    To send form data through email, without relying on the visitor's email client, you must use a server side scripting language and have a mail server you can send through.

    The form submits to the server side form processing code and that code formats and sends the email.
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #3
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, are we talking a special kind of email account or can we say set up a hotmail account and send it server side from that. I dont wish to use a hotmail account but as an example. If so what code do i need and what info.

  • #4
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,044
    Thanks
    2
    Thanked 316 Times in 308 Posts
    Your web host usually provides a mail server for this purpose.

    You can send through your mail box on hotmail/yahoo/gmail..., but you must use SMTP authentication to get them to accept mail from a remote server side scripting language.

    The bigger question is what server side scripting language do you have available on your web server?

    If you just want to test your code locally and send through a public mail server, here are some links with additional information -
    mail() - not sending on local server
    Email not delivering.... (hotmail would have a similar setup.)
    Warning: Failed to connect to mailserver, verify your "SMTP" setting in php.ini
    making a contact page...
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.


  •  

    Posting Permissions

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