Hosting company does not support mail() function

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
jpprice47
Posts: 5
Joined: Thu Sep 02, 2010 6:01 pm

Hosting company does not support mail() function

Post 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?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Hosting company does not support mail() function

Post 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
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Hosting company does not support mail() function

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
jpprice47
Posts: 5
Joined: Thu Sep 02, 2010 6:01 pm

Re: Hosting company does not support mail() function

Post by jpprice47 »

Thank you,

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