| | |
SMTP mail settings with PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2006
Posts: 15
Reputation:
Solved Threads: 0
I installed a help desk software that is coded in PHP. It has a feature that enables it to send out email when someone submits a troubleshooting ticket. I am unable to get the email function to work. The software is running on a remote server at a hosting company. How would I be able to get this feature to work without editing the php.ini file. (the hosting company doesnt allow modifications to the php.ini file since its in a shared environment) Thank you.
I am getting this error:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in d:\inetpub\redpaladin\support\admin\includes\mailtest.php on line 67
I am getting this error:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in d:\inetpub\redpaladin\support\admin\includes\mailtest.php on line 67
•
•
Join Date: Dec 2006
Posts: 10
Reputation:
Solved Threads: 0
hi,
now for that mail funcrion is working in your local host .if u work that paGE IN SERVER MEANS U CAN AVOID THAT ERRORS and functions will work properly u can also send mails also.if u want to avoid that errors in your localhost means put an @ symbol before that mail function like this for eg;
@mail($to,$subject,$message,$headers);
now for that mail funcrion is working in your local host .if u work that paGE IN SERVER MEANS U CAN AVOID THAT ERRORS and functions will work properly u can also send mails also.if u want to avoid that errors in your localhost means put an @ symbol before that mail function like this for eg;
@mail($to,$subject,$message,$headers);
•
•
Join Date: Jan 2007
Posts: 19
Reputation:
Solved Threads: 0
•
•
•
•
i searched the source code of all the pages and couldn't find ini_set
See: http://ca.php.net/ini_set
You should check the 'SMTP' and 'smtp_port' directives because you seem to be unable to connect to your server using "localhost" on port 25. Contact your webhoster to find out the correct SMTP host & port.
See: http://ca.php.net/manual/en/ini.php#ini.list
Thanks, Mike
Last edited by mbacon; Jan 18th, 2007 at 4:25 pm. Reason: Sentance corrections
![]() |
Similar Threads
- mail function issue in php (PHP)
- PHP E-mail setting ??? (PHP)
- Installing a SMTP for mail() (PHP)
Other Threads in the PHP Forum
- Previous Thread: web design
- Next Thread: impose a limitation on form of time duration
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql navigation number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white xml youtube





