Results 1 to 6 of 6

Thread: How to set php ini_set smtp

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    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]

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    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.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    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.

  5. #5
    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.

  6. #6
    Join Date
    Feb 2010
    Posts
    148

    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 " .

Similar Threads

  1. Getting error in SMTP: SMTP banner has no response.
    By Iason in forum Networking & Security
    Replies: 6
    Last Post: 20-06-2011, 10:20 PM
  2. SMTP architecture of a LAN
    By ME=Akul in forum Networking & Security
    Replies: 4
    Last Post: 26-10-2010, 09:34 AM
  3. How do i increase PHP Memory using ini_set
    By Taipai in forum Software Development
    Replies: 4
    Last Post: 24-05-2009, 12:23 PM
  4. Help with SMTP
    By beatnik_abx in forum Networking & Security
    Replies: 6
    Last Post: 26-08-2008, 05:35 PM
  5. SMTP communication problem smtp;550 - emails bouncing back
    By Antonio00 in forum Small Business Server
    Replies: 1
    Last Post: 03-04-2008, 01:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,887,719.36175 seconds with 16 queries