I am working with the mail function in PHP.
It has an optional parameter “From” where you can input an address and the recipient of the email will see that the mail was sent from that email address.
This PHP function works fine when sending to my AOL email account, but when I tried to send it to my cell phone number (cell number)@vtext.com, the message is delivered, but the sender’s address shows up as (myusername)@box489.bluehost.com, instead of the “From” parameter(myaddress@mydomain.com).
However, when I send a message to my phone through the online webmail app manually the sender address shows up correct(myaddress@mydomain.com).
Can anyone help me out with this?
It needs to come from a real address. Telcos use a service like senderbase.com from cisco, when they receive the message they are going to check reputation, spf records, rdns and possibly more. I created a sms system some time ago and i ended up using the PEAR mail package to authenticate with an email address on my mail server through smtp then send the message… also even tho you may be sending the message from a real email, the mail() function will send from the IP of the webserver not mail server, which they will also check against.