Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2008-10-20
2
Medium Priority
?
253 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

580 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