Hi,
I'm having a serious problem with the emails generated by php mail script on my sites.
All works perfectly well (or has done up to npow)
There is nothing wrong with the script.
Here is an example of the script:
<?
$x_email = $_REQUEST['x_email'] ;
$x_name = $_REQUEST['x_name'] ;
$x_surname = $_REQUEST['x_surname'] ;
$x_phone = $_REQUEST['x_phone'] ;
$x_message = $_REQUEST['x_message'] ;
$x_mate = $_REQUEST['x_mate'] ;
mail( "example@example.com", "BIOFONA WEB ENQUIRY",
"
NAME = $x_name
EMAIL = $x_email
PHONE = $x_phone
MESSAGE = $x_message
", "From: $x_email" )
?>
The sender's email address is specified and showing correctly on the emails (for instance $x_email is replaced by the email address of the person who has filled the form such as me@myaddress.com.
all perfect.
However, when the email is processed by the server the email is "processed" and "sent" using the server default address "anonymous@example.net"
This seems to be the address used by the server to process all emails sent via php mail.
This has recently caused all those emails to fail being sent and get stuck in the server mail queue for not being sent from a "genuine address"
I hope I'm explaining myself clearly...
basically the sender looks like me@myaddress.com (and when received would show as such) , but as me@myaddress.com is not hosted on that server the email is actually processed and sent by the server using "anonymous@example.net", the defauls email address of the server.
this now seem to be unacceptable by my webhost / spam settings.
Could I format anything differently to make this work?
Thanks for your help,
Vinny