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
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.
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
did you contact Plesk about the issue? They will rectify it. cPanel does the same when help is needed.
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
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.
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
Should you consider hiring a programmer from WHT. It can be done for $10-$15 if it isnt a major issue.