I am trying to make a form to send private messages in my intranet. The system is set up so that your pbx extention is for email address. I made a form that lets the person enter their number ("YourNumber"), a subject box ("Subject"), recipiant's number ("TheirNumber"), and message box ("Message").
What I am wanting is the "YourNumber" to be From:, Subject to be the subject, message be the email text, and "TheirNumber" to be the address it's sent to.
I have all but "TheirNumber" working.
Here is the code:
mail("$TheirNumber;@ourdomain.com","$Subject;",$message,"From: $YourNumber;");
Is it the "@" sign that is messing it up?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to make a form to send private messages in my intranet. The system is set up so that your pbx extention is for email address. I made a form that lets the person enter their number ("YourNumber"), a subject box ("Subject"), recipiant's number ("TheirNumber"), and message box ("Message").
What I am wanting is the "YourNumber" to be From:, Subject to be the subject, message be the email text, and "TheirNumber" to be the address it's sent to.
I have all but "TheirNumber" working.
Here is the code:
mail("$TheirNumber;@ourdomain.com","$Subject;",$message,"From: $YourNumber;");
Is it the "@" sign that is messing it up?
Someone showed me the solution. It is to remove the ";" after TheirNumber.