HELP: Mail shown as SPAM from my websitte...

Discussion in 'PHP' started by definitely, Aug 13, 2009.

  1. #1
    Hello friends,

    I am trying to use sendmail in php to send messages to my users thru my website.
    But the message lands up in the SPAM foler, please help what should i do?
    I have POP3 & IMAP access also, anyone knows a good mailing script which wont send mail as spam???

    regards
    Sunny
     
    definitely, Aug 13, 2009 IP
  2. nileshnirale

    nileshnirale Active Member

    Messages:
    329
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #2
    is your site on shared hosting? if one site gets banned then all sites hosted on that server are affected.
     
    nileshnirale, Aug 13, 2009 IP
  3. definitely

    definitely Well-Known Member

    Messages:
    520
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    160
    #3
    yes it is on shared hosting...
    but there must be some script which allows you to login to a smtp/pop3 account to send mail???
     
    definitely, Aug 13, 2009 IP
  4. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    PHPmailer : http://phpmailer.worxware.com/

    Not only will it use standard sendmail but it will also allow you to send via SMTP or IMAP. Its generally recommended to use SMTP especially on shared hosting.
     
    kblessinggr, Aug 13, 2009 IP
  5. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #5
    <?
    $email = 'E-Mail Here';
    $subject = 'Subject Here';
    $message = 'Message Here';
    $from = 'From: From E-Mail Here';
    mail($email,$subject,$message,$from);
    ?>
    See if that works
     
    Pudge1, Aug 13, 2009 IP
  6. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6

    That's exactly what he's already using if he's using sendmail.
     
    kblessinggr, Aug 13, 2009 IP
  7. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Make sure you have an SPF record set up: http://www.openspf.org/ -- Type in your domain in the textbox to follow the wizard.
     
    premiumscripts, Aug 13, 2009 IP
  8. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #8
    The domain in question would be helpful to pin this one down. Anything else is random guessing and suggestions. They're valid suggestions up there but it could be for one of hundreds of things.
     
    theapparatus, Aug 13, 2009 IP
  9. definitely

    definitely Well-Known Member

    Messages:
    520
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    160
    #9
    definitely, Aug 13, 2009 IP
  10. definitely

    definitely Well-Known Member

    Messages:
    520
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    160
    #10
    it says it requires some PHPUnit installed on my server... i dont have access to pear commands....
    how do i run
    "pear install "channel://pear.phpunit.de/PHPUnit""???
    on my server?
     
    definitely, Aug 13, 2009 IP
  11. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #11

    You looking at the actual phpmailer 5.0 for PHP5/6 ? cuz you shouldn't need to install anything simply unzip the php files and read the documentation.
     
    kblessinggr, Aug 13, 2009 IP
  12. definitely

    definitely Well-Known Member

    Messages:
    520
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    160
    #12
    definitely, Aug 13, 2009 IP
  13. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Can you paste the source for testemail.php here (remember to hide your username/pass if present in the code)
    There shouldn't be any kind of shell/exec/etc command.

    From the look of the error "Could not execute: /usr/sbin/sendmail" you're using PhpMailer in the default manner which uses sendmail, you want to use SMTP mode and login to your email server to send mail via SMTP.

    In a nutshell:
    The above is an example of SMTP usage.
     
    kblessinggr, Aug 14, 2009 IP