How to send emails for my wamp 2.2 LOCALHOST?
Posted by: slice1pod (---.hsd1.fl.comcast.net)
Date: October 07, 2013 03:43PM

I configure everything in the PHP.ini and SENDMAIL.ini file
-------------------------------this is what i have------------------
sendmail.ini.
smtp_server=smtp.gmail.com
smtp_port=465
smtp_ssl=ssl
default_domain=gmail.com
auth_username=*************@gmail.com
auth_password=***
force_sender=**************@gmail.com
hostname=localhost

----------------------and--------------...
php.ini

; For Win32 only.
; [php.net]
;SMTP = smtp.gmail.com
; [php.net]
smtp_port = 465

; For Win32 only.
; [php.net]
sendmail_from = ****************r@gmail.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i"winking smiley.
; [php.net]
sendmail_path = "C:\Wamp\bin\sendmail\sendmail.exe -t -i"

--------------------but i get this error---------------------
( ! ) Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set() in C:\wamp\www\projects\email\sendmail.php on line 10
Call Stack
# Time Memory Function Location
1 0.0017 671488 {main}( ) ..\sendmail.php:0
2 0.0018 672376 mail ( ) ..\sendmail.php:10
Email sending failed
---------------------------------------...
I even downloaded and installed the php_smtp.dll file in the extension folder.
My wamp used to work awesome, but since i updated to wamp 2. ITS ALL F**D UP..

HELP!

Options: ReplyQuote
Re: How to send emails for my wamp 2.2 LOCALHOST?
Posted by: RiggsFolly (---.as13285.net)
Date: October 07, 2013 04:57PM

I have never used this but I can follow these setup instructions

[digiex.net]



Try commenting out this line from php.ini

smtp_port = 465

the fake sendmail is doing the smtp work not PHP. This could be confusing it.


Also

sendmail_path = "C:\Wamp\bin\sendmail\sendmail.exe -t -i"

I think should be

sendmail_path = "C:\Wamp\bin\sendmail\sendmail.exe -t"

Options: ReplyQuote


Sorry, only registered users may post in this forum.