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
is your site on shared hosting? if one site gets banned then all sites hosted on that server are affected.
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???
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.
<? $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
Make sure you have an SPF record set up: http://www.openspf.org/ -- Type in your domain in the textbox to follow the wizard.
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.
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?
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.
yes thats where i am ... and when i run testmailer.php... it shows error: http://ishoot.in/mailer/test/testemail.php
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.