Link to home
Start Free TrialLog in
Avatar of jlmoyni
jlmoyni

asked on

getting "could not instantiate mail function" error from site residing on apache/php site on windows xp machine

I recently loaded the latest version of apache2, php, and mysql onto a windows XP machine for the purposes of hosting a social networking site using Elgg.  For some reason I cannot get the email to work properly.  I keep getting the error "could not instantiate mail function" whenever the app ties to send out an email.  I have a feeling it has something to do with user authentication on th SMTP site I am trying to use.  I was originally using the network solutions smtp but I am now trying to use the gmail smtp bu I keep getting the same error.

In my php.ini file I have the following

[mail function]
; For Win32 only.
; SMTP = locahost
SMTP = mail.gmail.com
smtp_port = 465

I Also tried setting up indigomail to do the authentication but I couldn't get that to work either.

Any help on getting the email function to work would be aprreciated.

Thanks
Avatar of hernst42
hernst42
Flag of Germany image

YOu can't use the gmail-server with the php-mail command. You need
http://swiftmailer.sf.net to send mails via the gmai-server.
ASKER CERTIFIED SOLUTION
Avatar of Matthew Kelly
Matthew Kelly
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial