Jump to content

Recommended Posts

Hello there,

 

First time post and absolute newbie to php...

 

I am building a website that will have a mail php form function for a particular field. Is there anyway that I can test the mail-to function locally before I post on webserver? I just want to be sure that the field can actually be sent to the nominated email address.

 

I am using both Windows and Ubuntu OS.

 

Thanks

 

Graham

You could install WAMP http://www.en.wampserver.com/ locally and test it on your local machine, just make sure your web server and local WAMP server are setup correctly.

 

alternatively you could always have to different files on your webserver, and run one as a test.

I'd upload it to a folder with an obscure name, htaccess it so only you can access it (user/pass) and then test it there.

I think it's better doing that rather than testing it locally because this way you are testing it with all of your server's settings, so there will be no surprises when you move it for live use.

 

Orio.

You could install WAMP http://www.en.wampserver.com/ locally and test it on your local machine, just make sure your web server and local WAMP server are setup correctly.

 

alternatively you could always have to different files on your webserver, and run one as a test.

but I have one question. WAMP is a composite package with Apache,Mysql,PHP on it. Is it possible to use php mail function with this three without any POP/SMTP server?

Hello all - thank you for your assistance.

 

Orio, what you say makes plenty of sense. I may try that. Like I say, I am not that knowledgeable about php so I may have to hit you up for some help again.

 

BTW, I am using phpFormGenerator to generate my form and php code, but need to alter the php code somewhat before use. Perhaps best to post the code before hand for review?

 

Thanks

 

Graham

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.