Results 1 to 8 of 8

Thread: Sending Mail

  1. #1
    Join Date
    Mar 2011
    Posts
    5

    Default Sending Mail

    We have two sites setup on the same server, both are using the VShare script. One of them works great and sends all mail items witout issue (activation, upload notifications, etc.), however the second site will not send mail.

    This is a LAMP server runing postfix to send mail, I send out mail successfully via the terminal as well. We have copied the phpmailer settings from the working site over to the disfuctional site, but that had no effect.

    Because they are running on the same server I'm confused as to why one site would work and the other wouldn't.

    Thank you in advance!

  2. #2
    Join Date
    Sep 2007
    Posts
    906

    Default

    Check if both sites using same php.ini file. Check sendmail_path in phpinfo().
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  3. #3
    Join Date
    Mar 2011
    Posts
    5

    Default

    Both are using the same php.ini file (/usr/local/Zend/etc/php.ini) and both also have the same sendmail_path in the PHPInfo page (/usr/sbin/sendmail -t -i)

    This is totally frustrating!

  4. #4
    Join Date
    Sep 2007
    Posts
    906

    Default

    Create a test script


    test.php

    Code:
    <?php
    
    mail("[email protected]","Testing","Testing");
    echo "finished at " . time();
    
    ?>
    Upload the file to server, run it by going to url

    http://yourdomain.extn/test.php

    See if it can send mail. Also check mail server log if there any entry when you access the page.

    I only faced similar problem with wrong php.ini settings. So double check phpinfo show same setting for both sites.
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  5. #5
    Join Date
    Mar 2011
    Posts
    5

    Default

    Test email script worked successfully. I was watching the maillog and all came through as normal without issue.

    I also just verified that the only difference in the PHPInfo between the two sites are the directories in which they are stored on the web server.

    UGH!

  6. #6
    Join Date
    Mar 2011
    Posts
    5

    Default

    ALSO - while watching the mail log file, I submitted a item to the working site and saw the email go out in the log. I then tried it in the non-working site and the log shows nothing; the emails aren't even getting to the mail server, they are failing at some point before.

  7. #7
    Join Date
    Sep 2007
    Posts
    906

    Default

    Are you using any control panel or you edit httpd.conf ? Both virtualhost entry's are similar ?
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  8. #8
    Join Date
    Mar 2011
    Posts
    5

    Default

    The sites are hosted locally in our data center so I have access to the physical machine and apache configurations. The sites themselves are ran on the same domain, therefore there is not multiple virtual directories in the httpd.conf.

    SITE #1 - www.domain.com/vgallery

    SITE #2 - www.domain.com/igallery

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
  •