Jump to content

PHP mail() and DNS Zones


TheDarkAvenger

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
Link to comment
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
Link to comment
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
Link to comment
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
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.