The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Emailing From PHP, No Domainkey Headers?

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

  1. AoM_Scott

    AoM_Scott Member

    Joined:
    Aug 26, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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:
    243
    Likes Received:
    1
    Trophy Points:
    18
    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:
    83
    Likes Received:
    0
    Trophy Points:
    6
    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).
     
  4. AoM_Scott

    AoM_Scott Member

    Joined:
    Aug 26, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Makes sense actually, thanks guys.
     
Loading...

Share This Page