Posts: 9,866
Threads: 594
Joined: Jan 2006
Quote:You will need a email server to send/recieve SMTP emails inside a windows OS runing apache.
No you don't.
Edit your php.ini to use SMTP of your ISP. That should be all you need. That's the entire purpose of SMTP connections.
I could setup a server without any MTA at all and have it connect to an SMTP to send the mail. What do you think the point is using Gmail SMTP? Gmail is the MTA.
Basically your instructions appear fine except you do not need MS Office installed. If you did install it and think that was helped it work you're wrong.
Posts: 1,052
Threads: 108
Joined: Jun 2008
2010-03-10, 09:01 AM
(This post was last modified: 2010-03-10, 09:24 AM by Technoman.)
I know what you're saying though.
Gmail ain't good for this, because it's smtp configuration does not use classic http protocol and port 25, it needs SSL plus REQUIRES AUTHORIZATION and it needs username and password, so it won't work without a SMTP mail server.
In windows you need to find your way to make PHP able to send out mail, which can be very difficult at times for even the average user. The method that I show is the easier way around it all.
Posts: 9,866
Threads: 594
Joined: Jan 2006
What? How would you not have permission? If you don't have perms to edit the php.ini you certainly don't have the perms to install MS Office which btw is a very expensive product you're telling people they need when in fact they don't.
Posts: 1,052
Threads: 108
Joined: Jun 2008
2010-03-10, 10:11 AM
(This post was last modified: 2010-03-10, 10:40 AM by Technoman.)
for those who can not afford microsoft office 2007
If you open the php.ini file you will find ONLY two lines:
[mail function]
{windows}
SMTP_SERVER =
SMTP_PORT =
The following two lines don't exist:
auth_username =
auth_password =
So you will need to add them to be able to send mail from gmail since it requires authentication.
So here is what you can do:
smtp_server =
smtp_port =
auth_username =
auth_password =
PS: Please make sure to uncomment the
;extension=php_openssl.dll.
extension=php_openssl.dll
in php.ini
If you have OUTLOOK EXPRESS (free with Windows XP / 2003 ) I can show you for this to if anyone needs help setting up your email server instead of edting the php ini to also work with MYBB with gmail email..