www.webdeveloper.com
Results 1 to 2 of 2

Thread: PHP Mail / Php.ini Set Password?

  1. #1
    Join Date
    Oct 2005
    Location
    Erie, PA
    Posts
    401

    PHP Mail / Php.ini Set Password?

    I am having a small issue. It seems in my program to send e-mails there is a glitch.

    I can send mail to my own domain (idk) but not able to send mail outside of my domain. I had a similar issue year or two back and I can not remember what I did to resolve it. I am pretty sure that I had to upload a php.ini file and set it up.

    What I am trying to figure out right now is authentication. I am almost positive that I had to authenticate the mail account in which I was using to send out mail. Is there a user name and password setting for the MAIL parameters in php.ini? Send you a little snippet of my Php.ini mail section and the code calling it.

    PHP.INI
    PHP Code:
    [mail function]
    ; For 
    Win32 only.
    SMTP mail.quickleadconnect.com
    smtp_port 
    25

    ; For Win32 only.
    ;
    sendmail_from webmaster@localhost

    ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
    ;
    sendmail_path =

    Force the addition of the specified parameters to be passed as extra parameters
    to the sendmail binaryThese parameters will always replace the value of
    the 5th parameter to mail(), even in safe mode.
    ;
    mail.force_extra_parameters 
    Mail Procedure:
    PHP Code:
    <?php
      
    # SEND THE EMAIL
      
    ini_set("sendmail_from",$fromaddress);  
      
    $mail_sent mail($to$subject$msg$headers);
      
    ini_restore("sendmail_from");
      return 
    $mail_sent;
    ?>
    what do you think?? Please advise and thank you ahead of time

  2. #2
    Join Date
    Oct 2005
    Location
    Erie, PA
    Posts
    401

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles