I dunno php, does this stuff from a email form look right?
$my_email = "bob@whatever.co.uk,jim@whatever.co.uk,sally@whatever.co.uk,bob@thingy.com,bill@whatever.co.uk";
$subject = "Contact from Whatever Website";
$continue = "index.html";
$auto_redirect = 0;
$redirect_url = "";
$required_fields_check = 1;
$required_fields = array(name,enquiry,email,postcode);
$show_ip = 0;
$banned_ips_check = 0;
$banned_ips = array();
$banned_ip_message = "Your IP address is banned. The form was not sent.";
$require_cookie = 0;
$check_referrer = 1;
$word_block = 1;
$blocked_words = array(http://,https://,viagra);
$gobbledegook_check = 1;
$identiPIC_photo_CAPTCHA = 0;
$html_format = 1;
...html crap...
This thing will send the form email address to the bolded address, but not the others. All the others are working addresses and you can email them directly from hotmail, outlook, etc.
So your using mail() ?
I thought multiple mail headers (CC, BCC) require (\r\n) etc
Email would be..
$my_email = "From: me@mydomain.com";
$my_email .= "\r\nCc: he@$hisdomain.com";
$my_email .= "\r\nBcc: her@$herdomain\r\n\r\n"
Log in your server and make sure the domains you are trying to send you resolve properly.
If youre using exim, something like
exim -bv test@domain.com
.... then send the headers
And then check the smtp logs to see if it was sent. Thatll tell you whats up.
The techy guys said I need to tell them what mail server its using to send mail - where do I find that out?
ah, do I need to tell them its using a php mail wotsit and not a smtp server proper?
I almost got it figured out, I needed to add a line to specify a SMTP server, now it sends mail but its flagged as spam, anyone know how to sort this?
-----------------------------------
-----------------------------------
Content analysis details: (4.7 points, 4.3 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 MISSING_MID Missing Message-Id: header
2.3 INVALID_DATE Invalid Date: header (not RFC 2822)
0.0 HTML_MESSAGE BODY: HTML included in message
2.3 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
0.1 RDNS_NONE Delivered to trusted network by a host with no rDNS
----------------------------------
^ If i fix bits of that will it score low enough to be seen as not spam?
$headers .= "Date: ".date("D, d M Y H:i:s") . " UT\r\n"; - job done :)
You need to remove the bits labelled 2.3 because they are the bad bits.
You need to figure out how to send a message in plain text and not HTML. I dont know how to do this in PHP