•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 397,847 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,415 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2706 | Replies: 3
![]() |
•
•
Join Date: May 2007
Posts: 19
Reputation:
Rep Power: 2
Solved Threads: 0
I am new on PHP proramming. I want to use mail() function to send mail. In my Pc there is no mail server. I have confiure my php.ini file that is - SMTP = localhost, smtp_port = 25, sendmail_from = null, sendmail_path = null. But I can not send mail. When i am oin to send mail it shows bellow error----
Error:
Error sending e-mail.
function needHelp() { if (confirm('Some data will be submitted to InterAKT. Do you want to continue?')) { var rand = Math.random().toString().substring(3, 10); var wnd = window.open('includes/tng/pub/blank.html', 'KTDebugger_' + rand, ''); try { var doc = wnd.document; } catch(e) { alert("The popup could not be opened. Please configure your pop-up blocker software to allow this."); return; } var frm = utility.dom.createElement( "FORM", { 'action': 'http://www.interaktonline.com/error/', 'method': 'POST', 'style': "display: none" }, wnd ); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'err', 'value': 'Error sending e-mail.'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'devNotes', 'value': 'E-mail couldn\'t be sent. Error returned: mail() returned failure
\nWarning: mail() [function.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 C:\\wamp\\www\\completed_app\\includes\\common\\lib\\email\\Pear\\Mail\\mail.php on line 115
\n. (EMAIL_FAILED)'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'os', 'value': 'WINNT'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'webserver', 'value': 'Apache/2.0.55 (Win32) PHP/5.1.2'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'servermodel', 'value': 'PHP MySQL 5.1.2'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'installation', 'value': 'apache2handler'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'extensions', 'value': 'array (\n 0 => \'bcmath\',\n 1 => \'calendar\',\n 2 => \'com_dotnet\',\n 3 => \'ctype\',\n 4 => \'date\',\n 5 => \'ftp\',\n 6 => \'iconv\',\n 7 => \'odbc\',\n 8 => \'pcre\',\n 9 => \'Reflection\',\n 10 => \'session\',\n 11 => \'libxml\',\n 12 => \'standard\',\n 13 => \'tokenizer\',\n 14 => \'zlib\',\n 15 => \'SimpleXML\',\n 16 => \'dom\',\n 17 => \'SPL\',\n 18 => \'wddx\',\n 19 => \'xml\',\n 20 => \'xmlreader\',\n 21 => \'xmlwriter\',\n 22 => \'apache2handler\',\n 23 => \'mbstring\',\n 24 => \'mysql\',\n 25 => \'mysqli\',\n 26 => \'PDO\',\n 27 => \'pdo_sqlite\',\n 28 => \'SQLite\',\n)'}, wnd)); setTimeout(function() { wnd.document.body.appendChild(frm); frm.submit(); }, 5); } //return false; } Developer Details: E-mail couldn't be sent. Error returned: mail() returned failure
Warning: mail() [function.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 C:\wamp\www\completed_app\includes\common\lib\email\Pear\Mail\mail.php on line 115
. (EMAIL_FAILED)
How can i send mail ?
Error:
Error sending e-mail.
function needHelp() { if (confirm('Some data will be submitted to InterAKT. Do you want to continue?')) { var rand = Math.random().toString().substring(3, 10); var wnd = window.open('includes/tng/pub/blank.html', 'KTDebugger_' + rand, ''); try { var doc = wnd.document; } catch(e) { alert("The popup could not be opened. Please configure your pop-up blocker software to allow this."); return; } var frm = utility.dom.createElement( "FORM", { 'action': 'http://www.interaktonline.com/error/', 'method': 'POST', 'style': "display: none" }, wnd ); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'err', 'value': 'Error sending e-mail.'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'devNotes', 'value': 'E-mail couldn\'t be sent. Error returned: mail() returned failure
\nWarning: mail() [function.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 C:\\wamp\\www\\completed_app\\includes\\common\\lib\\email\\Pear\\Mail\\mail.php on line 115
\n. (EMAIL_FAILED)'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'os', 'value': 'WINNT'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'webserver', 'value': 'Apache/2.0.55 (Win32) PHP/5.1.2'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'servermodel', 'value': 'PHP MySQL 5.1.2'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'installation', 'value': 'apache2handler'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'extensions', 'value': 'array (\n 0 => \'bcmath\',\n 1 => \'calendar\',\n 2 => \'com_dotnet\',\n 3 => \'ctype\',\n 4 => \'date\',\n 5 => \'ftp\',\n 6 => \'iconv\',\n 7 => \'odbc\',\n 8 => \'pcre\',\n 9 => \'Reflection\',\n 10 => \'session\',\n 11 => \'libxml\',\n 12 => \'standard\',\n 13 => \'tokenizer\',\n 14 => \'zlib\',\n 15 => \'SimpleXML\',\n 16 => \'dom\',\n 17 => \'SPL\',\n 18 => \'wddx\',\n 19 => \'xml\',\n 20 => \'xmlreader\',\n 21 => \'xmlwriter\',\n 22 => \'apache2handler\',\n 23 => \'mbstring\',\n 24 => \'mysql\',\n 25 => \'mysqli\',\n 26 => \'PDO\',\n 27 => \'pdo_sqlite\',\n 28 => \'SQLite\',\n)'}, wnd)); setTimeout(function() { wnd.document.body.appendChild(frm); frm.submit(); }, 5); } //return false; } Developer Details: E-mail couldn't be sent. Error returned: mail() returned failure
Warning: mail() [function.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 C:\wamp\www\completed_app\includes\common\lib\email\Pear\Mail\mail.php on line 115
. (EMAIL_FAILED)
How can i send mail ?
•
•
Join Date: Jun 2006
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
I am new on PHP proramming. I want to use mail() function to send mail. In my Pc there is no mail server. I have confiure my php.ini file that is - SMTP = localhost, smtp_port = 25, sendmail_from = null, sendmail_path = null. But I can not send mail. When i am oin to send mail it shows bellow error----
Error:
Error sending e-mail.
function needHelp() { if (confirm('Some data will be submitted to InterAKT. Do you want to continue?')) { var rand = Math.random().toString().substring(3, 10); var wnd = window.open('includes/tng/pub/blank.html', 'KTDebugger_' + rand, ''); try { var doc = wnd.document; } catch(e) { alert("The popup could not be opened. Please configure your pop-up blocker software to allow this."); return; } var frm = utility.dom.createElement( "FORM", { 'action': 'http://www.interaktonline.com/error/', 'method': 'POST', 'style': "display: none" }, wnd frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'err', 'value': 'Error sending e-mail.'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'devNotes', 'value': 'E-mail couldn\'t be sent. Error returned: mail() returned failure
\nWarning: mail() [function.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 C:\\wamp\\www\\completed_app\\includes\\common\\lib\\email\\Pear\\Mail\\mail.php on line 115
\n. (EMAIL_FAILED)'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'os', 'value': 'WINNT'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'webserver', 'value': 'Apache/2.0.55 (Win32) PHP/5.1.2'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'servermodel', 'value': 'PHP MySQL 5.1.2'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'installation', 'value': 'apache2handler'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'extensions', 'value': 'array (\n 0 => \'bcmath\',\n 1 => \'calendar\',\n 2 => \'com_dotnet\',\n 3 => \'ctype\',\n 4 => \'date\',\n 5 => \'ftp\',\n 6 => \'iconv\',\n 7 => \'odbc\',\n 8 => \'pcre\',\n 9 => \'Reflection\',\n 10 => \'session\',\n 11 => \'libxml\',\n 12 => \'standard\',\n 13 => \'tokenizer\',\n 14 => \'zlib\',\n 15 => \'SimpleXML\',\n 16 => \'dom\',\n 17 => \'SPL\',\n 18 => \'wddx\',\n 19 => \'xml\',\n 20 => \'xmlreader\',\n 21 => \'xmlwriter\',\n 22 => \'apache2handler\',\n 23 => \'mbstring\',\n 24 => \'mysql\',\n 25 => \'mysqli\',\n 26 => \'PDO\',\n 27 => \'pdo_sqlite\',\n 28 => \'SQLite\',\n)'}, wnd)); setTimeout(function() { wnd.document.body.appendChild(frm); frm.submit(); }, 5); } //return false; } Developer Details: E-mail couldn't be sent. Error returned: mail() returned failure
Warning: mail() [function.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 C:\wamp\www\completed_app\includes\common\lib\email\Pear\Mail\mail.php on line 115
. (EMAIL_FAILED)
How can i send mail ?
instead of using localhost, use your ISP's smtp adress in php.ini
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- Ezines (E-mail Management System) (eCommerce)
- Can't send email (Windows NT / 2000 / XP / 2003)
- E-mail (Visual Basic 4 / 5 / 6)
- Can not log into yahoo mail using IE 6.0 (Web Browsers)
- Vira e-mail (ASP)
- Not able to send a page or link (Web Browsers)
- RelayHost for mail (Linux Servers and Apache)
- mail I send sometimes takes hours???? (Web Browsers)
Other Threads in the PHP Forum
- Previous Thread: File uploading with PHP on server
- Next Thread: Simple include() problem


; frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'err', 'value': 'Error sending e-mail.'}, wnd)); frm.appendChild(utility.dom.createElement('INPUT', {'type': 'hidden', 'name': 'devNotes', 'value': 'E-mail couldn\'t be sent. Error returned: mail() returned failure
Linear Mode