Mail function

Hi All

I have a business requirement where I have to send mails to multiple persons in TO as well as BCC

I tried the below mail command to meet the requirement

mailx -s "Sub" -c $mail_id_cc $mail_id_to

But I have a problem here because I can include the FROM part in this mail function hence the mail is send by the unix server rather than the sender which I want to include in the FROM part.

Hence please suggest me something where I can also decide on the sender's address from which the mail should be sent. And also it should send mails to person specified in TO part and BCC part.