Hi.
I have made a webpage using php which some collegues and I use on my job. Since it is non-work related the webpage is hosted on my private server.
On the webpage there is a number of users which are all registered with their work mail addresses. When a logged in user performs an action on the site, I use the following function call to send mails to the other users:
imap_mail($to_address, $subject, $message, $headers);
Where $to_address is the addresses of the users the mails should be sent to. Depending on how many users I want to send to, I make multible calls to the imap_mail() function.
$headers is set to "Content-type: text/html; charset=iso-8859-1\r\nFrom: $username <$usermail>", where $username is the name of the logged in user and $usermail is the mail address the user is registered with (also his work mail).
Apparently it seems to work fine; when a user performs an action, a mail is send to the work mail address of the other users and the from address is the work mail address of the user that performed the action.
In this way it is possible for the users that receive the mail to press reply and answer the user who performed the action.
The only problem I have is, that if I want to send a mail to many users only some of the mails are received by the users while others are lost. I am guessing that it might be some spam filter on the receive mail server that blocks the mails because the send server does not have the same address as the from mail address in the header.
My question now is if there is some workaround for this. Maybe by doing some modifications to the header to the mail or similar.
Thanks.