Nobbie wrote:The question is, how to determine "the own mail address". As you do not specify any From : sender in your mail() function call, the system uses the configuration of the sendmail configuration or of the SMTP server which is specified in php.ini
But this is NOT evaluated by PHP, the physical sending of the mail is done by the corresponding mail server and an address of the sender is applied by that mail server. You cannot easily evaluate the mail configuration in your PHP script.You can only specify your own From: clause in the 5th parameter of mail(), which overrides the default of the mail server and finally apply the same value to Bcc:
Actually let get it understood that all To From Email Values has been passed and SMTP Mail Server on Port 25 is working fine... Emails TO: to@gmail.com From: from@mydomain.com Bcc: bcc1@gmail.com, bcc2@gmail.com had receive successfully mails. Now, I again repeating:
The same Message would be derived to the all recements. I want to add in each recipients' Message should be contained their own Email Address
How?