Changed headers and seems ok now. Not sure how I made that mistake, onlne ordering emails all correct, just that little contact thing.
Also seem to have all the blocked emails on hosting webmail now. Weren't there yesterday.
Cheer again all.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Website emailing problem
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Website emailing problem"
Collapse
-
Cheers all. I meant forwarded not redirected. Ill have a go at these. With Hostpapa, not sure where I'll find logs but have a look and also change the headers to match the server.
Without any rebounds or spam it's hard to see which particular spam checker is blocking things.
Leave a comment:
-
I take it $email is the email address that has been entered on the form?Originally posted by xoggoth View PostBeen sorting a problem with manual spam sent from my website contact page and found another.
If I enter my @gmail.com address in the email field the mail is sent but if I enter my @btinternet.com address it isn't. Can't see why that should be. The PHP code is:
$title = "Web Site Enquiry";
$headers = "From: $email\r\n";
$headers .= "Reply-To: $email\r\n";
$headers .= "MIME-Version: 1.0\r\nContent-type: text/plain; charset=iso-8859-1";
$msg = "Mail sent via xxx website\r\n".$msg;
mail($recipient,$title,$msg,$headers);
Anyone see any reason why that's ok when $email is gmail but not BT?? Cheers.
PS Nearly posted this in Light Relief. Complete senility coming soon.
If so that's really not good practice and Im surprised that it works with any address other than one that is local to the mail server.
Normally a mail server (more accurately an SMTP server) would be configured only to accept emails where the senders domain matches that of the authenticated user*.. What mail server are you sending through? I assume that from your point of view it is "localhost" if thats the case you need to find out where localhost is relaying to as thats likely to be where your problem is.
* Doing otherwise would open the server up to all sorts of abuse and would quickly get it added to one of the many blacklists - which also might be the issue, check your mail server isnt blacklisted some providers simply wont accept email from blacklisted mail servers so it wont even show as spam.Last edited by Snarf; 19 June 2018, 12:25.
Leave a comment:
-
Could you temporarily switch off the redirect and see if they are making it to the BT address, but just not being forwarded (again checking junk/spam there)Originally posted by xoggoth View PostCheers SM. No, should have said this in post, nowt in spam/junk either locally or in webmail.
$recipient in that code is sales@mywebsite.co.uk and the bt emails are all listed in the inbox.
That is redirected to a gmail account and they are not in the gmail inbox. However, there is also nowt in the spam box as I would expect if gmail was blocking them.
Leave a comment:
-
Is this your own server?Originally posted by xoggoth View PostBeen sorting a problem with manual spam sent from my website contact page and found another.
If I enter my @gmail.com address in the email field the mail is sent but if I enter my @btinternet.com address it isn't. Can't see why that should be. The PHP code is:
$title = "Web Site Enquiry";
$headers = "From: $email\r\n";
$headers .= "Reply-To: $email\r\n";
$headers .= "MIME-Version: 1.0\r\nContent-type: text/plain; charset=iso-8859-1";
$msg = "Mail sent via xxx website\r\n".$msg;
mail($recipient,$title,$msg,$headers);
Anyone see any reason why that's ok when $email is gmail but not BT?? Cheers.
PS Nearly posted this in Light Relief. Complete senility coming soon.
I.e. you have access to the SMTP logs?
Or, are you sending to an SMTP server you don't control?
Leave a comment:
-
Cheers SM. No, should have said this in post, nowt in spam/junk either locally or in webmail.
$recipient in that code is sales@mywebsite.co.uk and the bt emails are all listed in the inbox.
That is redirected to a gmail account and they are not in the gmail inbox. However, there is also nowt in the spam box as I would expect if gmail was blocking them.Last edited by xoggoth; 18 June 2018, 10:38.
Leave a comment:
-
Website emailing problem
Been sorting a problem with manual spam sent from my website contact page and found another.
If I enter my @gmail.com address in the email field the mail is sent but if I enter my @btinternet.com address it isn't. Can't see why that should be. The PHP code is:
$title = "Web Site Enquiry";
$headers = "From: $email\r\n";
$headers .= "Reply-To: $email\r\n";
$headers .= "MIME-Version: 1.0\r\nContent-type: text/plain; charset=iso-8859-1";
$msg = "Mail sent via xxx website\r\n".$msg;
mail($recipient,$title,$msg,$headers);
Anyone see any reason why that's ok when $email is gmail but not BT?? Cheers.
PS Nearly posted this in Light Relief. Complete senility coming soon.Last edited by xoggoth; 18 June 2018, 09:57.Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Umbrella company winding-up petitions in 2026: the practical guide for contractors Today 05:29
- Payments on Account deadline: what contractors must do before July 31st — maybe for the final few times Yesterday 08:01
- Andy Burnham's first 100 days: five things contractors need from the new PM Jul 27 00:53
- Starmer vs Burnham on housing: What their rival plans mean for your contractor mortgage Jul 22 00:59
- Burnham's housing vision vs. Starmer's home-buying reforms: what it means for your contractor mortgage Jul 22 00:59
- In Khalil v Innovate Transport, a limited company contractor wasn’t a worker and was on £2.30 — not £230 Jul 21 07:58
- Andy Burnham is PM: 5 new IT policies set to shape UK tech and its contractors Jul 20 06:29
- Taxed on money I haven't earned yet? Bold move, HMRC Jul 17 08:36
- The Fair Work Agency has got zero hours in its sights. Do you? Jul 16 08:44
- Cookie Policy Jul 15 11:50

Leave a comment: