Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



How to set php ini_set smtp

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 24-09-2009
Dharmesh Arora's Avatar
Member
 
Join Date: Dec 2008
Posts: 74
How to set php ini_set smtp

I'm not able to send any mails from my system. It shows an error message stating that the Host need to specify the SMTP server for the domain name. I had tied out every thing, but all the PHP documentation only talks about setting the SMTP server in php.ini. So, can any body tell me that how to set php ini_set smtp on my pc? Any one have any idea about it? Kindly help me to get rid of the above issue.
Reply With Quote
  #2  
Old 24-09-2009
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
Re: How to set php ini_set smtp

We have created a special email with sbc for outside internet use only email. Of course, it doesn't work, if we use their smtp settings, they require a username/password to authenticate. I think i have located the right file, at the top it says: [php]
Reply With Quote
  #3  
Old 24-09-2009
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
Re: How to set php ini_set smtp

They require you to specify the SMTP server AND a valid from address for the domain, and the 'From:' setting in the header isn't good enough. Check the include_path in your php.ini. Also see the front page of the phpmailer site, it has the instructions for installation and there is an example there with SMTP authentication as well. You have to use ini_set() for both.
Reply With Quote
  #4  
Old 24-09-2009
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,832
Re: How to set php ini_set smtp

Authentication (sending mail password to smtp server) is not possible under PHP for windows. For that i think you need to contact your network provider in order to add your server's IP address. Of course, it doesn't work, if you use their smtp settings, for that you may require a username/password to authenticate.
Reply With Quote
  #5  
Old 19-08-2010
Member
 
Join Date: Aug 2010
Posts: 1
Re: How to set php ini_set smtp

]I'm not able to send any mails from my system.

It shows an error message stating that the Host need to specify the SMTP server for the domain name.

I had tied out every thing, but all the PHP documentation only talks about setting the SMTP server in php.ini.
So, can any body tell me that [b][i]how to set php ini_set smtp on my pc?

Any one have any idea about it? Kindly help me to get rid of the above issue.
Reply With Quote
  #6  
Old 20-08-2010
Member
 
Join Date: Feb 2010
Posts: 143
Re: How to set php ini_set smtp

For the function of sending e -mail works properly , you must have specified a mail server in the php file .ini. There must exist a section like this :
[ mail function]
SMTP = mail.php.net ; for win32 only
sendmail_from = \ n abc123@abc.net This e - mail address is protected against spam bots, you need Javascript enabled browser to view ; for win32 -only
; sendmail_path =; only for unix

For Microsoft Windows - For a server running Microsoft Windows , SMTP must indicate the address of the SMTP server of your ISP (usually of the form mail. or smtp .). For the same type of server , sendmail_from must indicate the e - mail will be used as default source address of the e - mail.
If you do not use the SMTP from your provider you can install a mail server locally. It is very easy to set ( see help) and you can simply enter " localhost " in your php file .ini.

Under a Unix system - Under a Unix -like system , you must have a mail server like sendmail.The location of the sendmail program ( usually / usr / sbin / sendmail or / usr / lib / sendmail) is performed automatically . The PHP script preconfiguration , configures , tries to identify the presence of sendmail , and affects the result by default when compiling. If localization problem , you can give a new value to the sendmail_path configuration directive in the php file .ini.If your system does not use sendmail , it probably provides a similar program that emulates the interface. The line below is one you might have for a server qmail :
sendmail_path = "/ var / qmail / bin / sendmail " .
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to set php ini_set smtp"
Thread Thread Starter Forum Replies Last Post
Getting error in SMTP: SMTP banner has no response. Iason Networking & Security 6 20-06-2011 11:20 PM
How do i increase PHP Memory using ini_set Taipai Software Development 4 24-05-2009 01:23 PM
Help with SMTP beatnik_abx Networking & Security 6 26-08-2008 06:35 PM
SMTP communication problem smtp;550 - emails bouncing back R. Seiler Small Business Server 1 03-04-2008 02:05 AM
smtp olivier Windows Vista Mail 6 03-10-2007 11:09 AM


All times are GMT +5.5. The time now is 04:21 AM.