Need help with Plesk and PHP Mail Function

Discussion in 'Site & Server Administration' started by nkiegrea, Jun 8, 2007.

  1. #1
    Ok, heres the deal.

    I had a coder make a php mail function on my "test" shared account hosting that runs on cpanel...

    The php mail function works fine and is sending the mail perfectly....

    Then.. I moved the code to my dedicated server that runs on Plesk...

    It doesn't send... I even put a simple little php mail function script to test and nothing ever sends..

    Anyone familiar with SSH and PLESK who can help me configure my server to make the php mail function work will get GREEN REP and maybe some money depending on how much time I take away from you life... ;-)

    Please help me out; I would greatly appreciate it!

    Regards,
    Zack B
     
    nkiegrea, Jun 8, 2007 IP
  2. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is your mail server running? Are you able to send receive mails from other accounts/scripts on the server?
    Sometimes the path to the mail sender (eg - sendmail) isnt correct.
     
    agnivo007, Jun 9, 2007 IP
  3. nkiegrea

    nkiegrea Peon

    Messages:
    355
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, I can send mail through webmail and outlook express...

    My local and master sendmail_path are set to /usr/sbin/sendmail -t -i

    its quite weird..

    I know its not the php code because I am using the simplest code just to test...

    <?php
    $to = 'myemail@gmail.com';
    $subject = 'the subject';
    $from = 'email@domain.com';
    $message = 'hello';
    
    if(mail($to, $subject, $message, "From: $from"))
      echo "Mail sent";
    else
      echo "Mail send failure - message not sent"; ?>
    Code (markup):
    This code works fine on my "test" shared hosting that runs on cpanel, but doesn't work on my plesk dedicated server.. :-( Same thing applies with the much more intense code that I am actually trying to get to run on the dedicated server.

    Any help would be amazing!! :)

    _Zack
     
    nkiegrea, Jun 9, 2007 IP
  4. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #4
    did you contact Plesk about the issue? They will rectify it. cPanel does the same when help is needed.
     
    inworx, Jun 9, 2007 IP
  5. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Are you sure the mails aren't landing at bulk/spam folder?
     
    agnivo007, Jun 9, 2007 IP
  6. nkiegrea

    nkiegrea Peon

    Messages:
    355
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yes, I have contacted plesk.. they won't help me because I bought the liscense through my host.. and my host won't help me because their normal tech guys dont' know jack and they want to charge me for "special service" ...

    And, yes, I am sure its not even being sent. The script has a message "Mail sent, or Mail did not send" and the failed message always comes up on my dedicated and the success message always comes up on my test shared hosting server + I get the message.

    _Zack
     
    nkiegrea, Jun 9, 2007 IP
  7. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #7
    cPanel support was not like that. They'll help you even the license is through the web host. Just what they need it the server key which they assign to all licensed servers.
     
    inworx, Jun 11, 2007 IP
  8. nkiegrea

    nkiegrea Peon

    Messages:
    355
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Well. sadly, Plesk is ... :-(

    I have contacted them.. they make you buy an hours worth of help for $75 dollars and then they have yearly plans and such.. pretty stupid if you ask me.

    _Zack
     
    nkiegrea, Jun 11, 2007 IP
  9. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Should you consider hiring a programmer from WHT. It can be done for $10-$15 if it isnt a major issue.
     
    inworx, Jun 12, 2007 IP
  10. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Well, I might be able to help you to solve your problem. PM me for pricing.
     
    tanfwc, Jun 12, 2007 IP
  11. nkiegrea

    nkiegrea Peon

    Messages:
    355
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #11
    PM sent. Please check.

    Thanks.
    Zack
     
    nkiegrea, Jun 14, 2007 IP
  12. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I did not receive any PM :)
     
    tanfwc, Jun 14, 2007 IP