Solved

enquiry form results working elsewhere but not reaching clients microsoft exchange server

Posted on 2008-10-20
2
232 Views
Last Modified: 2013-12-13
The enquiry form and (tectite) mail script itself are working perfectly and I receive a copy at any other address I care to use - unfortunately any recipients of my client dont get through their exchange mail server or even show up in the logs according to their IT.

I've tried setting up my own really basic php mail including this:
mail($to, $subject, $body, "From: $mailfrom", "-f $mailfrom")
along with:
$mailfrom = "one of my clients email addresses here";
and also tried the similar options in tectite's script - but still none get through to them.

I have maintained that this is likely to be an issue with their exchange server settings or spam setup which I don't have access to. I don't have any knowledge or experience with mail servers beyond setting up the enquiry forms and haven't had this problem before. Help!..

Advice on likely causes or ways to avoid the possibility of it being treated as spam?
many thanks
0
Comment
Question by:freshwaterwest
2 Comments
 
LVL 17

Accepted Solution

by:
psimation earned 500 total points
ID: 22761639
Using PHP's mail() function is not such a good idea anymore, since it simply passes the mail off to sendmail, so your PHP mail gets sent by the default sendmail setup and more often than not, your "apache" user.

using the -f flag is even worse nowadays, because the headers get marked - (enveloped changed).

So, it is most likely that your mail is being trapped by spam filters.

I suggest you rather use a php mailer class that sends mail directly through a properly authenticated smtp server - so that the mail is basically the same as if you sent it via Outlook.


http://sourceforge.net/projects/phpmailer/    
0
 

Author Closing Comment

by:freshwaterwest
ID: 31507803
great thanks, I'll use this method from now on, once I've had a chance to read-up on the settings etc.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now