Solved

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

Posted on 2008-10-20
2
242 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

828 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