Sunday, 29 September 2013

PHP Pear Mail not working

PHP Pear Mail not working

I have been able to use the PEAR package code on a godaddy server that has
PEAR installed and everything works as intended, however when I try to
execute the code on my local machine I receive no emails and no error
messages that gives me any indication of what is going wrong.
From what I have gathered from numerous sources on the web is that once I
have installed PEAR I need to setup the include_path in the "php.ini"
Also in the php.ini file I have added
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = myemail@gmail.com ****[Hidding real email address]****
PHP installation as followed:
php installation path c:\php
pear installation path c:\php\pear
php.ini include_path = ".;c:\php\pear"
Pear packages c:\php\pear - gathered from pear list
mail
mail_Mime
Net_SMTP
Net_Socket
PEAR
Any help on this matter will be greatly appreciated.

No comments:

Post a Comment