| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
shiro
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 3,066
|
php mail() being filtered
I have written a php mail() script, but it seems to be being blocked by at least one email filter (the one we use within my company). It seems to be being blocked at the server level, as its not being filtered into the junkmail box. Has anyone else ever had this issue when using PHP to send mails? Were you able to find any workarounds to the problem? |
|
|
|
|
|
#2 (permalink) |
|
shiro
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 3,066
|
Well I found the answer. I thought I would mention it here so that if anyone comes across the same problem in the future, they may remember this. Here is the situation. My company owns two domain names, lets call them company.net and company.co.jp. Since before I ever entered the company, we have outsourced company.co.jp to another company, and they have taken care of the whole thing for us. Recently however, the company has decided to give me the responsibility of hosting and maintaining company.co.jp. So, I set up an add-on domain on the company.net server for company.co.jp. But we haven't actually switched over yet, and will be re-pointing the name servers next week. Now this is where the problem came in. I set up a php script to send mails to email addresses that the user enters. Of course the email addresses I have been testing it on are ones that I control - namely haku@company.co.jp. Which didn't work. So I tried it with my hotmail address and some other addresses I control, and they worked fine. It turns out that the problem is that our company.net server thinks that haku@company.co.jp resides on the same server (company.net) as I have already set up the addon domain, and that's where its trying to send the mails. So the mails are never leaving the company.net server, which means that I cant download them from the company.co.jp server. And that was my problem...I think. I cant actually test it to make sure until next week after we transfer everything over. |
|
![]() |