Jump to content

Mail Form


anton_1

Recommended Posts

Hey guys, Do you have any good articles that I could read to setup my own mail server how to connect to one to allow people to contact me through my web form on my website.

 

 

Any Help would be greatly appreciated!

 

 

Thank You!

 

 

Link to comment
Share on other sites

Hey guys, Do you have any good articles that I could read to setup my own mail server how to connect to one to allow people to contact me through my web form on my website.

 

you don't need to set up a mail server to let people send you messages through a form. All you need is and smtp server (which your ISP probably provides for you) and an email address.

Link to comment
Share on other sites

Hey guys, Do you have any good articles that I could read to setup my own mail server how to connect to one to allow people to contact me through my web form on my website.

 

you don't need to set up a mail server to let people send you messages through a form. All you need is and smtp server (which your ISP probably provides for you) and an email address.

 

:shrug:...i thought he actually wanted to make one himself

Link to comment
Share on other sites

your error said:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\mail\mail.php on line 9

 

c:\xamp means you're testing things on your local computer... not your webhost service. Chances are you will not need to modify anything. have you tried sending the email from your hosting account? (i.e. upload the script to your hosting account and run from there. What hosting do you have? linux, windows? - I'm guessing linux since you're programming in php)

Link to comment
Share on other sites

@ AyKay47, he seems to be testing locally with xampp, when he uploads to his hosting account it will probably work perfectly. (even if he gets the smtp address from the host, he will put it into his local php.ini and it won't work anyway).

 

@anton_1: You need to get the smtp from your ISP for your local host (i.e. the computer you have xampp installed on and are using to test stuff)

and you need to try the mail() function on your hosting account. if it does not work, then you need to get the smtp address for your hosting account (this should work without modifications though). I think the problem here is that you're trying to test on your local machine without uploading to you hosting account.

Link to comment
Share on other sites

@ AyKay47, he seems to be testing locally with xampp, when he uploads to his hosting account it will probably work perfectly. (even if he gets the smtp address from the host, he will put it into his local php.ini and it won't work anyway).

 

@anton_1: You need to get the smtp from your ISP for your local host (i.e. the computer you have xampp installed on and are using to test stuff)

and you need to try the mail() function on your hosting account. if it does not work, then you need to get the smtp address for your hosting account (this should work without modifications though). I think the problem here is that you're trying to test on your local machine without uploading to you hosting account.

in my opinon, trying to setup a mail server on localhost is not worth the trouble, I would wait to tamper with the mail() function until the OP has put his script on a server

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.