hello i have this message, some mails if they are sent, for example those of "Diagnosis"
but others do not, and that error appears in the registry,

"It was not possible to send email with the mail () function of php: mail () returned failure"

In the configuration of outgoing email I have put the mail (not the php because that does not work with that): http://prntscr.com/q04i73
and in emails. I have activated send email via SMTP

Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance. The more information you give us the better we will be able to assist you. Thank you.

Environment details?
Version of osTicket?

at Admin panel -> Emails -> Settings
check your emails configured.
Set Default MTA.

at Admin panel -> Emails -> Emails -> your emails
make sure you have proper settings for your emails.

If osTicket tried to send an email and fails, it attempts to fail back to PHPMail.

You should check your PHP logs for errors.

You should check your mailserver logs for errors.

    ntozier
    hi ntozier.
    i have the version v1.12.2

    at Admin panel -> Emails -> Settings
    check your emails configured.
    Set Default MTA. This is configured: http://prntscr.com/q04i73

    In at Admin panel -> Emails -> Emails -> your emails
    make sure you have proper settings for your emails... This is configured, the diagnostic mail test work perfect!

      nop, the error still appears...

      You never answered these:

      ntozier ntozier Environment details?

      ntozier You should check your PHP logs for errors.

      ntozier You should check your mailserver logs for errors.

        ntozier where i can find the php logs on windows server? and mailserver logs?

        PHP error log location is specified in your php.ini.

        Mailserver logs would be very dependent on what mail server software that you are running.

          ntozier in php error log say this
          "[28-Nov-2019 14:13:20 UTC] PHP Warning: Use of undefined constant EmailTemplateGroup - assumed 'EmailTemplateGroup' (this will throw an Error in a future version of PHP) in C:\inetpub\wwwroot\include\staff\tpl.inc.php on line 4
          [28-Nov-2019 14:16:08 UTC] PHP Warning: mail(): SMTP server response: 503 5.5.2 Need rcpt command in C:\inetpub\wwwroot\include\pear\Mail\mail.php on line 156
          "

          I do not understand why the emails I send with the "diagnostic" tool if you send them.

          as well as the mails of "auto-response of new ticket"

          but those that do not arrive are the "new ticket notice"

          Still waiting on the Mail server error logs. 🙂

            ntozier can you send me your email and i send the error logs mailserver

            Feel free to post any pertinent errors here (and feel free to redact your domain).

              ntozier i not see any error

              [2002:a0a4:22c:]:55400,[2002:a0a4:22c]:2525,>,XPROXYFROM SID=08D76908C6D356B3 IP=160.16.xxx.xxxx PORT=64686 DOMAIN=domain.gov.ar SEQNUM=1 PERMS=1077 AUTHSRC=Anonymous,
              2019-11-29T16:27:42.677Z,Conector de proxy de entrada y envĂ­o interno,08D76908C6D35678,304,[2002:a0a4:22c]:55400,[2002:a0a4:22c]:2525,<,250 XProxyFrom accepted,
              2019-11-29T16:27:42.677Z,Conector de proxy de entrada y envĂ­o interno,08D76908C6D35678,305,[2002:a0a4:22c]:55400,[2002:a0a4:22c]:2525,*,,sending message with RecordId 31121 and InternetMessageId <BTqQZEU-GNTa3-AAAAAAAAAACcAQAATTPRJKGi-federico@domain.gov.ar>
              2019-11-29T16:27:42.677Z,Conector de proxy de entrada y envĂ­o interno,08D76908C6D35678,306,[2002:a0a4:22c:]:55400,[2002:a0a4:22c]:2525,>,MAIL FROM:<federico@domain.gov.ar> SIZE=0 AUTH=<> XMESSAGEVALUE=MediumHigh,
              2019-11-29T16:27:42.677Z,Conector de proxy de entrada y envĂ­o interno,08D76908C6D35678,307,[2002:a0a4:22c:]:55400,[2002:a0a4:22c]:2525,>,RCPT TO:<tickets.administrador@domain.gov.ar>,
              2019-11-29T16:27:42.677Z,Conector de proxy de entrada y envĂ­o interno,08D76908C6D35678,308,[2002:a0a4:22c]:55400,[2002:a0a4:22c]:2525,<,250 2.1.0 Sender OK,
              2019-11-29T16:27:42.677Z,Conector de proxy de entrada y envĂ­o interno,08D76908C6D35678,309,[2002:a0a4:22c]:55400,[2002:a0a4:22c]:2525,<,250 2.1.5 Recipient OK,

              2 years later

              krvam

              I'm getting same error. Plz help

              @Anuj this thread is 2 years old. I would recommend taht you start your own thread.

              Write a Reply...