You are here: Re: Disabled mail function workaround? « PHP Programming Language « IT news, forums, messages
Re: Disabled mail function workaround?

Posted by Andy Hassall on 08/08/06 20:23

On Tue, 8 Aug 2006 15:27:30 +0000 (UTC), sae@worf.netins.net (Scott Evans)
wrote:

>Hi! I have been asked to add some functionality to an existing web
>site. The user would like to have a form that would email them the
>results of the form. Really easy stuff to do, usually. I tried to
>run the enhancements, and did not get the results I wanted, either
>with writing the results to a log file on the server, nor in sending
>the email.
>
>In doing further research, I see that the site is being hosted on a
>windows server, and that the php appears to have a bunch of functions
>disabled, when I run phpinfo. One of the many that are disabled is
>mail, so I'm kind of stuck. Is there any sort of workaround to this,
>where the mail function is disabled, but I'd still be able to send
>email from a form?

Well, the proper answer is to ask the admin to re-enable mail, or switch
hosts. If they've disabled the mail functions, and you do some hacky workaround
to send mail anyway without asking the admins, it wouldn't be that surprising
if the admin of the server got somewhat annoyed...

>getmyinode, getopt, getrusage, extension_loaded, dl, mysql_pconnect,
>crack_check, crack_closedict, crack_getlastmessage, crack_opendict,
>fsockopen, pfsockopen, mysql_list_dbs, mysql_stat, ini_get, ini_get_all,
>ini_alter, ini_set, get_current_user, get_defined_constants,
>get_include_path, php_ini_scanned_files, php_uname, phpcredits,
>restore_include_path, set_include_path, set_time_limit, version_compare,
>zend_version, getmypid, getmyuid, getmygid, assert_options, assert, fopen,
>fwrite, fread, file, fpassthru, file, mail, opendir, readdir, closedir

If they're locking down things as basic as fopen then you'll have difficulty
communicating with the outside world in any way; you're not likely to be able
to open any sockets to even do SMTP mailing yourself.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация