Page 1 of 1

Hosting company does not support mail() function

Posted: Mon Feb 14, 2011 6:33 pm
by jpprice47
Script URL: http://www.matcu-60.org/gbook/gbook.php
Version of script: 1.7
Hosting company: arvixe.com
URL of phpinfo.php: ?
URL of session_test.php: ?
What terms did you try when SEARCHING for a solution: mail function

Write your message below:

I moved all my domains to a new hosting company: arvixe.com.

They do not support the mail() function - their quote:
"Unfortunately, you can not use the mail() function on Windows however you can use PHP's SMTP Class to send mail out by authenticating against the local SMTP server."

How do I modify gbook.php to accomplish this?

Re: Hosting company does not support mail() function

Posted: Mon Feb 14, 2011 9:57 pm
by Henrie
To be honest, I do not know.
I use a windows XP computer to test and I use the mail function. I configured PHP to using the php.ini file

Code: Select all

[mail function]
; For Win32 only.
;SMTP = localhost ;default value
;smtp_port = 25 ;default value
SMTP = mail.home.nl
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com
sendmail_from = myname@home.nl
In which mail.home.nl is the smtp mail server of my hosting provider.

Greetings,
Henrie

Re: Hosting company does not support mail() function

Posted: Wed Feb 16, 2011 12:32 pm
by Klemen
Send out mail using authenticated smtp is currently not supported in GBook, it relies on the mail() function. SMTP support may be added in the future, but modifying it to do it with the current version is unfortunately out of the scope of my free support.

Re: Hosting company does not support mail() function

Posted: Wed Feb 23, 2011 4:51 pm
by jpprice47
Thank you,

I moved my hosting from an ASP to a Linux plan at my hosting company and everything works OK now.