deregular

Not sure whats going on here, but one of my mail functions is not sending through to some domains.
Its weird since it seems to work on other servers.

$to = $_SESSION['email'];
$header = "From: info@example.com Reply-To: info@example.com X-Mailer:

PHP

 /" .

php

 version();
$subject = "You Have Approved an Artwork";
$message = "This should work shouldnt it?";
               
mail($to,$subject,$message,$header);


Any ideas?

perkiset

I do not use that function, but I'm curious - does it try to SMTP directly to the recipients domain? If so, I've noticed in a lot of my <>spamming eblasting that certain ISPs (Cox is a huge one) will no longer accept email directly from a

mac

 hiine, rather they require it through a DNS registered MX host for the sending domain... and the Microsoft SPF really helps as well.

So I guess what I'm saying is that it might well be a recipient problem rather than a sending code issue...

deregular

This is what Im beginning to think perk.
Its strange one of the domains that isnt getting it, is setup on another hosting account, but with the same company that is hosting the sending email domain...

Since this simply wont do, If you dont mind me asking, what sort of thing do you use for sending mail from scripts perk?

perkiset

I use

php

 Mailer - it's a nice mail class that can be used either as a direct-send or a forwarded emailer. I am away from home for several days, but I can post the code here if you want when I get back. Second, I set up a domain and MX and then use it to foward through rather than direct delivery anymore. The reason that I went direct delivery was speed - I could blow out a LOT of emails really quickly. Using a relay solution I go slower but get better delivery. So I am considering doing direct delivery first, and if I get the message that I can't deliver (

php

 Mailer will tell me what the error was) THEN use my local MX as sort of a fallback position.

deregular

yeah that sounds like its a good call to make perky.
Its really getting on my nerves, with emails going astray and such.

If you could post the code Im sure not only myself but others would benefit. There is a massive grey area here when it comes from sending directly from

php

 , very very unpredictable, sounds like what you are using works really well. Id love you to elaborate on the MX setup too, remember Im only beginning with this stuff.

Got a link to a read through?

cheers
d

perkiset

It would seem that the project has grown a bit since I grabbed the code... here is the current link:

http://

php

 mailer.codeworxtech.com/

a simple google of "

php

 mailer class" will give you more than enough. It's been a bread-and-butter class for me for a long time now.

/p

deregular

Thanks mate, will give it a whirl.


Perkiset's Place Home   Politics @ Perkiset's