Jump to content

Archived

This topic is now archived and is closed to further replies.

TheDarkAvenger

PHP mail() and DNS Zones

Recommended Posts

I've been told this is quite hard...but please hear me out before you start running. I am hosted on a sub-domain and I want to be able to use the mail() function to send my users emails (obviously with their permission). However the emails are sent to their Junk Mail Box...and not everyone reads the notices and is smart enough to check in there and then complain about not receiving the email. I have searched and searched and searched all day and finally came up with the conclusion that I need to add an SPF record in my DNS zone file. The only problem is I don't know what the DNS zone is and how to configure/make/edit it...I do however understand what the SPF record is and how it affects the emails...


Can anyone shed some light on my problem,


Muchas Gracias,

Jordan

Share this post


Link to post
Share on other sites
Hi,

yip - emails getting marked as spam = major problem.

Id suggest to setup your php.ini settings in a htaccess file to point to your own mail server that you use to relay the emails from your mail().

Get the idea?

Do a phpinfo() and see the current mail settings.
You can get a script also if you like to send emails via your SMTP server.

-steve

Share this post


Link to post
Share on other sites
Sorry if I sound like a complete newbie but I haven't had much experience with the htaccess file and php.ini... can you please explain what it is I am supposed to be changing in this file. Once again I appologise for my lack of understanding in this issue...


Thanks for your patience,

Jordan

Share this post


Link to post
Share on other sites
If your using windows - then you can easily specific a SMTP server in php.ini or in a htaccess

In a .htaccess put

php_value SMTP yourisp_server.com

This *may* send you emails via this SMTP server and thus may not get marked as spam.

What Im now looking at is this tutorial:
[a href=\"http://www.phpfreaks.com/tutorials/130/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/130/0.php[/a]

Good Luck with it,
-steve

Share this post


Link to post
Share on other sites
[!--quoteo(post=361172:date=Apr 3 2006, 11:17 AM:name=steviewdr)--][div class=\'quotetop\']QUOTE(steviewdr @ Apr 3 2006, 11:17 AM) [snapback]361172[/snapback][/div][div class=\'quotemain\'][!--quotec--]
If your using windows - then you can easily specific a SMTP server in php.ini or in a htaccess

In a .htaccess put

php_value SMTP yourisp_server.com

This *may* send you emails via this SMTP server and thus may not get marked as spam.

What Im now looking at is this tutorial:
[a href=\"http://www.phpfreaks.com/tutorials/130/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/130/0.php[/a]

Good Luck with it,
-steve
[/quote]

i got a little help from reading this when i was working on a newsletter (with same problem): [a href=\"http://forums.whirlpool.net.au/forum-replies-archive.cfm/484996.html\" target=\"_blank\"]http://forums.whirlpool.net.au/forum-repli...cfm/484996.html[/a]

the problem can be the way you set your headers up that go into the mail() function. might be worth having a look at that too.

CHeers

Share this post


Link to post
Share on other sites
I am obviously too inexperienced with the whole SMTP an mail() stuff...at the moment I just can't do it...however i'll keep trying with the PHPMailer-Class and try to get it right as it keeps saying that ther was a problem sendng...

Anyway, thanks for your help!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.