Jump to content

Connecting a contact form


dsi-interactive

Recommended Posts

I'm not a php programmer and need help connecting a contact form on my site to the server. The code in my mailHandler.php file starts with the data below. What do I place in each field. Thanks so much.

 

$owner_email='#'; //SMTP server settings $host = ''; $port = '465';//"587"; $username = ''; $password = '';

 

Do I leave this as is?

$subject='A message from your site visitor '; $user_email=''; $message_body=''; $message_type='html';

Link to comment
Share on other sites

The $owner_email variable is probably the address that receives the email. The next 4 variables are settings for the SMTP server, you'll need to figure out which email server you're using and how to connect to it.

Do I leave this as is?

Those probably get set later in the code.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...