I'm having a problem with sending mail using the mmail() function in php.
We have a local SMTP-server that seems to be configured to let the webserver use it for sending mails.
The mails work well when the addresses are within the domain but whenever we try to send a mail outside the domain (for example to yahoo), we get the Server Error 500.
Where is the problem?
// setting the SMTP-server temporarily
ini_set ('SMTP','mail.domain.com');
// sending outside the domain doesnt work!
mail( 'someone@yahoo.com', 'subject', 'message' );
// sending inside the domain works!
mail( 'someone@domain.com', 'subject', 'message' );
We have a local SMTP-server that seems to be configured to let the webserver use it for sending mails.
The mails work well when the addresses are within the domain but whenever we try to send a mail outside the domain (for example to yahoo), we get the Server Error 500.
Where is the problem?
// setting the SMTP-server temporarily
ini_set ('SMTP','mail.domain.com');
// sending outside the domain doesnt work!
mail( 'someone@yahoo.com', 'subject', 'message' );
// sending inside the domain works!
mail( 'someone@domain.com', 'subject', 'message' );