Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Emailing From PHP, No Domainkey Headers?

Discussion in 'E-mail Discussion' started by AoM_Scott, Aug 26, 2010.

  1. AoM_Scott

    AoM_Scott Member

    Joined:
    Aug 26, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    Hello,

    I've setup domain keys for my emails in cpanel on email authentication, all is fine when I send through IMAP, I can see the domain key headers and verify them.

    But If I use my PHP script to send an email, there's no domain key headers and it gets put straight into the junk folder on Hotmail :(

    Any suggestions?

    Thanks,

    Scott
     
  2. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    242
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Bucharest
    In PHP, you need to use a class that send emails using SMTP instead on mail() function. For example, PHPMailer class is one of the best:
    Worx International Inc.
     
  3. SS-Maddy

    SS-Maddy Well-Known Member

    Joined:
    Mar 28, 2009
    Messages:
    117
    Likes Received:
    10
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    I second the use of phpMailer. Andy is a great coder himself. And the fact that phpmailer is being extensively used in many OSS projects is a good reason for you to include in your project as well :) Check out PHPMailer-FE (Form to Email as well).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. AoM_Scott

    AoM_Scott Member

    Joined:
    Aug 26, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    Makes sense actually, thanks guys.
     
Loading...
Similar Threads - Emailing Domainkey Headers
  1. fingerprn
    Replies:
    2
    Views:
    191
  2. exxhal
    Replies:
    4
    Views:
    1,049

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice