hello melzjm, and welcome to SiT! and the forums.
The issue you are presenting is a very common one, there can be 2 common problems here.
1) Since SiT only sends mail through php.ini's setup, it doesn't do smtp auth.
2) you are trying to send a message using smtp.gmail.com this only works when the receipient is a gmail user, otherwise it blocks for mail relaying.
for your test it's ok, but not for a permanent setup (I think you already know this but I add it for the forum archive
what it looks like to me is that you have a firewall on your laptop that blocks outgoing smtp traffic from PHP. try disabling the firewall.
if that doesn't work try typing the following from a command prompt
- Code: Select all
telnet smtp.gmail.com 25
if you are running Vista or Win7 you might need to install telnet client from add/remove programs as it's not enabled pr default.
you should see something like this:
- Code: Select all
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
if you do, your computer can connect to the smtp server and nothing past your computers netcard blocks the port, this could be if there's a hardware firewall between your computer and the smtp server at gmail.
which means you might want to look at an application protection on your local computer.
(this is the end of issue 2)
There might be more issues, but these are the most common ones I can think of based on your problem.
In the long run, if and when your boss approves.
depending on your server setup, you might have an internal smtp/mail server that can act as a mail relay (this might need a rule of allowance from the server SiT will be running from), if you don't this might be on the other side of your internet firewall, so you might need to setup a rule in your firewall (depending on how strict it is).
These are some things we need more info about if more help is required.
But lets first try and solve your testing issues