I realize that I need to use a mailserver so people can contact me, my question is, how can I set one up on my local machine so I can test it?
I have XAMPP installed with PHPMyAdmin and I'm just toying and learning with it.
Now, in my PRODUCTION server, what email should I use to send users comments to me? I'm really new and need some guidance.
Generally I don't recommend you setting up a mailserver on your local machine just for testing.
Check out the PHP function mail(), it should be already configured and ready to run on the production server.
If you want to test if your script works, simply print out the arguments you would pass to mail().
Assuming your production server is running linux, you can use the sendmail binary or local smtp.
Related
Is it possible to send mail to an exchange server that is running locally on our network using php-apache that is also running in a localhost? If its possible, can anyone point me to the right direction?
Thank You Guys in Advance
The easiest way is to just to install a local MTA like blatmail (assuming you're on Windows; if you're on Linux you have sendmail or an equivalent already and mail() should just work).
That said, assuming your Exchange server will forward without authentication from the local network, set SMTP to the address or hostname of your Exchange server in .ini (or ini_set "SMTP" to that in the script itself).
Note that the vanilla mail() doesn't support authentication, and I'm pretty sure doesn't support TLS.
So you should definitely only use it on a completely trusted network.
I'm using mac OS snow leopard, and i have probs with mail, i'm not sure is it something about gmail, or php mail() func.
It's not working. I wrote it this way (just for testing ).
mail('something#example.com', 'My Subject', 'My Message');
I done * i need with postfix configuration, but it's not working (can't get the mail).
Any help, just need explanation on how things work. I'm googling last 3-4 hours, but nothing (didn't find the right answer). And yes, i'm using local server.
Thanks!
If your application is hosted in local host the mails will not be able to send. Upload to a live server and check it. (You need a mail server to send the mails)
Just a tip - if something isn't working, try and find the problem withing your code before blaming gmail or php functions. These have been tested and re-tested in live environments by literally millions of people.
Do you have a mail server installed and configured? Do you have Apache sendmail enabled?
I'm developing an application that requires testing email.
I'm currently using wampserver, but it doesn't come with a mail server and setting one up has been a pain.
Also if I use an external mail server like yahoo, I run into issues because wamp doesn't come with SSL which yahoo's mail server requires.
So I'm trying to save myself from all this headache. I'm looking for a new development environment that comes "out of the box" with a mailserver and open SSL. Clearly that's not wampserver2. What does?
As already said in your other question, XAMPP does.
Pretty much any reasonably popular Linux distro has these built-in.
As i said in another question - settle fake GMail account and use PHPMailer.
http://phpmailer.worxware.com/index.php?pg=exampleagmail
I am using php's mail() function to send an email from a php scrpit, however, this is not working. I believe the problem is with my php setup and the lack of an smtp server. Does anyone have experience with setting something like this up on a local machine and what can be done to fix this? Thank you
Yes I have on Windows machine. You should install local mail server, for example ArGoSoft Mail Server (www.argosoft.com). It's free, small and simple. Then setup a local domain in settings (for example weblocal.dom), then add a mail user (for example admin). So your test email will be admin#weblocal.dom. Then you just add this mail account to your email client program and send some mail to it from PHP script.
I'm running my own LAMP server locally.
Something i need to setup?
Should it be able to send email using php-mail,
without havin to configure smtp.
Check your phpinfo() information for STMP and the port. Do a test.php file and try to execute this.
mail('email#example.com', 'My Subject', 'Hello World');
http://drupal.org/node/11570
That thread will help you out.
Drupal basically patches into the php mail function, so as with that you either need a mail server installed locally with your lamp setup, or to point apache towards an external or smtp server in your php.ini file.
Ah fixed it, well i didn't-one of our developers did.
Apparently Drupal only uses 'Send Mail' so you have to have it installed, wont use php-mail.
For future reference/research:
try the Drupal module SMTP Authentication Support. I have yet to test it.