G
G
gimcnuk2015-01-03 18:53:19
PHPMailer
gimcnuk, 2015-01-03 18:53:19

Phpmailer and mail() not working?

Hello.
Tell me, please, what is the problem. Sending emails with regular php mail() is fine.
When using the phpMailer library, there is no sending.

include_once "class.phpmailer.php";

$mail = new PHPMailer();
        $mail->IsMail();
        $mail->IsHTML(false);
    
        $mail->From      = '[email protected]';
        $mail->FromName  = 'name';
        $mail->Subject   = 'test';
        $mail->Body      = 'phpmailer';
        $mail->AddAddress('[email protected]');
        echo $mail->Send();

        echo 'Mailer Error: ' . $mail->ErrorInfo;

Returns "1Mailer Error:", i.e. There appear to be no errors. The letter does not arrive. There is nothing in the logs.
Tell me where to dig.
Thank you.
---
Added: Issue resolved. The point is most likely in the ban gmail server ip.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sergikzv, 2015-01-03
@sergikzv

Some free hosting companies do this.

A
Alexey Sklyarov, 2017-06-03
@hsnz

$('ul.menu a').on('click', function(e){
  var goto = $(this).data('anchor');
  $('html,body').stop().animate({ scrollTop: $(goto).offset().top-60 }, 1000);
  e.preventDefault();
});

Menu itself:
<ul class="menu">
            <li><a href="#" data-anchor="#about">О компании</a></li>
            <li><a href="#" data-anchor="#features">Услуги</a></li>
            <li><a href="#" data-anchor="#calculate">Онлайн расчет</a></li>
            <li><a href="#" data-anchor="#faq">Ответы на вопросы</a></li>
          </ul>

In data-anhor, specify the ID of the block to which to scroll when clicking on the link.

H
hsnz, 2017-06-04
@hsnz

No matter how I try, it doesn't work, not data-scroll, not data-anchor.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question