Menu

Cannot get notification email to work

Help
Sam Goodi
2005-11-28
2013-06-03
  • Sam Goodi

    Sam Goodi - 2005-11-28

    Ive read the other posts on the subject and can't seem to get the notification email to work.
    Everything else is working well.
    Im using the MySql option for data storage.

    I run my own server for web pages with apache2
    on a Suse 9.2 operating system.
    My Php.ini file has this configuration for mail

    [mail function]
    ; For Win32 only.
    SMTP = localhost
    smtp_port = 25

    ; For Win32 only.
    ;sendmail_from = me@example.com

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

    In my session.php file for my form the message text is this.

    $message = stripslashes($message);
    mail("roller24@verizon.net","Form Submitted at your website",$message,"From: phpFormGenerator");

    I configured  my mail transfers through the YAST that came with SuSe.
    I checked my software and I am using POSTFIX as the mail server and NOT SENDMAIL BSD
    It does however have a sendmail.bin in usr/sbin/ directory.

    I have the Mail Transfers set to send smtp through my verizon mailbox and do not use my server as a mail handler.
    Im not super sophisticated with linux but I can usually find solutions to my questions.
    This one has me stumped.
    Please help
    Thanks in advance

    In Case it helps YAST writes its own config files so I actually have two config files in the etc/postfix directory.

    The main.cf and Yast.main.cf both have this in the settings portion:
    However when I configured mail in YAST I entered my outgoing.verizon.net  server and my auth info, which I dont see anywhere in the cf files.

    # QUEUE AND PROCESS OWNERSHIP
    #
    # The mail_owner parameter specifies the owner of the Postfix queue
    # and of most Postfix daemon processes.  Specify the name of a user
    # account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
    # AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.  In
    # particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
    # USER.
    #
    mail_owner = root

    # The default_privs parameter specifies the default rights used by
    # the local delivery agent for delivery to external file or command.
    # These rights are used in the absence of a recipient user context.
    # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
    #
    #default_privs = nobody

    # INTERNET HOST AND DOMAIN NAMES
    #
    # The myhostname parameter specifies the internet hostname of this
    # mail system. The default is to use the fully-qualified domain name
    # from gethostname(). $myhostname is used as a default value for many
    # other configuration parameters.
    #
    myhostname = www.boardwalk-pizza.com
    #myhostname = virtual.domain.tld

    # The mydomain parameter specifies the local internet domain name.
    # The default is to use $myhostname minus the first component.
    # $mydomain is used as a default value for many other configuration
    # parameters.
    #
    mydomain = boardwalk-pizza.com

    # SENDING MAIL
    #
    # The myorigin parameter specifies the domain that locally-posted
    # mail appears to come from. The default is to append $myhostname,
    # which is fine for small sites.  If you run a domain with multiple
    # machines, you should (1) change this to $mydomain and (2) set up
    # a domain-wide alias database that aliases each user to
    # user@that.users.mailhost.
    #
    # For the sake of consistency between sender and recipient addresses,
    # myorigin also specifies the default domain name that is appended
    # to recipient addresses that have no @domain part.
    #
    myorigin = $myhostname
    myorigin = $mydomain

     
    • TNTEverett

      TNTEverett - 2005-11-28

      Try this simple example mailer file (name it test.php or something simple).

      <?php
      mail("roller24@verizon.net","Form Submitted at your website","Hello World!","From: phpFormGenerator");
      ?>

      You can also try commenting out the line starting with
      $where_form_is="http".
      to see if this works. 
      If these do not work your problem is definitely server related.  Check your server logs for more information. 
      Since I am not familiar with your server setup I'm afraid I won't be much help. 

       
    • Sam Goodi

      Sam Goodi - 2005-11-28

      $where_form_is="http".

      this line is none of my files

       
      • TNTEverett

        TNTEverett - 2005-11-28

        Did you try the simple example? 
        That line is in most process.php files.

         
    • Sam Goodi

      Sam Goodi - 2005-11-29

      Yes, I tried the simple example.
      It wasnt in my proccess.php file, or any file in the forms directory, as I did a file search for that syntax.
      I did a fresh install of postfix and loaded my auth info into the sasl.passwd file and named verizon as my remote host and I dont get any log messages about errors in any mail logs.

      I will keep trying.

       
    • Sam Goodi

      Sam Goodi - 2005-11-29

      yes it is in the process file, I just found it.
      :O
      but commenting it out doesn't work either.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.