Results 1 to 8 of 8

Thread: Sending Mail

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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]

  2. #2
    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!

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

  4. #4
    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]

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