Page 1 of 1

pcbackup12.exe - Sending email returned: Email failed

Posted: Wed Mar 02, 2022 10:01 am
by James Oxford
Hi folks!

I am trying to setup automatic backups with the task scheduler. I believe I have the scheduler working, but I'd like to get an email when the backup completes. I have authenticated to the gmail smtp server and verified that I can manually send an email from PowerChurch by clicking the envelope button. However, when the automatic backup runs, I get the following error:
03/02/2022 09:48:27 AM - Sending email returned: Email failed
Any idea what might be going wrong? Thanks!

I'm not sure how much of the log would be helpful to share, but this seems like the most logical block:

Code: Select all

        <sendSmtpEmail>
          <sendWithPipelining>
            <sendMailFrom>
              <mailFrom>no-reply-powerchurch@odentonbaptist.org</mailFrom>
              <sendCmdToSmtp>
                <SmtpCmdSent><![CDATA[MAIL FROM:<no-reply-powerchurch@odentonbaptist.org><CRLF>]]></SmtpCmdSent>
              </sendCmdToSmtp>
            </sendMailFrom>
            <sendRcptTo>
              <sendCmdToSmtp>
                <SmtpCmdSent><![CDATA[RCPT TO:<joxford@odentonbaptist.org><CRLF>]]></SmtpCmdSent>
              </sendCmdToSmtp>
            </sendRcptTo>
            <sendCmdToSmtp>
              <SmtpCmdSent><![CDATA[DATA<CRLF>]]></SmtpCmdSent>
            </sendCmdToSmtp>
            <readSmtpResponse>
              <SmtpCmdResp>530-5.7.0 Authentication Required. Learn more at</SmtpCmdResp>
              <SmtpCmdResp>530 5.7.0  https://support.google.com/mail/?p=WantAuthError o64-20020a37be43000000b00648fd02ac00sm8392307qkf.64 - gsmtp</SmtpCmdResp>
            </readSmtpResponse>
            <readRcptTo>
              <readSmtpResponse>
                <SmtpCmdResp>530-5.7.0 Authentication Required. Learn more at</SmtpCmdResp>
                <SmtpCmdResp>530 5.7.0  https://support.google.com/mail/?p=WantAuthError o64-20020a37be43000000b00648fd02ac00sm8392307qkf.64 - gsmtp</SmtpCmdResp>
              </readSmtpResponse>
              <bad_address>joxford@odentonbaptist.org</bad_address>
            </readRcptTo>
            <readSmtpResponse>
              <SmtpCmdResp>530-5.7.0 Authentication Required. Learn more at</SmtpCmdResp>
              <SmtpCmdResp>530 5.7.0  https://support.google.com/mail/?p=WantAuthError o64-20020a37be43000000b00648fd02ac00sm8392307qkf.64 - gsmtp</SmtpCmdResp>
            </readSmtpResponse>
            <smtpRset>
              <info>Sending RSET command.</info>
              <smtpSendGet2>
                <sendCmdToSmtp>
                  <SmtpCmdSent><![CDATA[RSET<CRLF>]]></SmtpCmdSent>
                </sendCmdToSmtp>
                <readSmtpResponse>
                  <SmtpCmdResp>250 2.1.5 Flushed o64-20020a37be43000000b00648fd02ac00sm8392307qkf.64 - gsmtp</SmtpCmdResp>
                </readSmtpResponse>
              </smtpSendGet2>
            </smtpRset>
          </sendWithPipelining>
        </sendSmtpEmail>
      </sendMimeInner>
    </sendEmailInner>
    <error>Failed.</error>
  </SendEmail>
</ChilkatLog>

Re: pcbackup12.exe - Sending email returned: Email failed

Posted: Wed Mar 02, 2022 3:35 pm
by NeilZ
James Oxford wrote:
Wed Mar 02, 2022 10:01 am
Hi folks!

I am trying to setup automatic backups with the task scheduler. I believe I have the scheduler working, but I'd like to get an email when the backup completes. I have authenticated to the gmail smtp server and verified that I can manually send an email from PowerChurch by clicking the envelope button. However, when the automatic backup runs, I get the following error:
03/02/2022 09:48:27 AM - Sending email returned: Email failed
Any idea what might be going wrong? Thanks!

I'm not sure how much of the log would be helpful to share, but this seems like the most logical block:

Code: Select all

        <sendSmtpEmail>
          <sendWithPipelining>
            <sendMailFrom>
              <mailFrom>no-reply-powerchurch@odentonbaptist.org</mailFrom>
              <sendCmdToSmtp>
                <SmtpCmdSent><![CDATA[MAIL FROM:<no-reply-powerchurch@odentonbaptist.org><CRLF>]]></SmtpCmdSent>
              </sendCmdToSmtp>
            </sendMailFrom>
            <sendRcptTo>
              <sendCmdToSmtp>
                <SmtpCmdSent><![CDATA[RCPT TO:<joxford@odentonbaptist.org><CRLF>]]></SmtpCmdSent>
              </sendCmdToSmtp>
            </sendRcptTo>
            <sendCmdToSmtp>
              <SmtpCmdSent><![CDATA[DATA<CRLF>]]></SmtpCmdSent>
            </sendCmdToSmtp>
            <readSmtpResponse>
              <SmtpCmdResp>530-5.7.0 Authentication Required. Learn more at</SmtpCmdResp>
              <SmtpCmdResp>530 5.7.0  https://support.google.com/mail/?p=WantAuthError o64-20020a37be43000000b00648fd02ac00sm8392307qkf.64 - gsmtp</SmtpCmdResp>
            </readSmtpResponse>
            <readRcptTo>
              <readSmtpResponse>
                <SmtpCmdResp>530-5.7.0 Authentication Required. Learn more at</SmtpCmdResp>
                <SmtpCmdResp>530 5.7.0  https://support.google.com/mail/?p=WantAuthError o64-20020a37be43000000b00648fd02ac00sm8392307qkf.64 - gsmtp</SmtpCmdResp>
              </readSmtpResponse>
              <bad_address>joxford@odentonbaptist.org</bad_address>
            </readRcptTo>
            <readSmtpResponse>
              <SmtpCmdResp>530-5.7.0 Authentication Required. Learn more at</SmtpCmdResp>
              <SmtpCmdResp>530 5.7.0  https://support.google.com/mail/?p=WantAuthError o64-20020a37be43000000b00648fd02ac00sm8392307qkf.64 - gsmtp</SmtpCmdResp>
            </readSmtpResponse>
            <smtpRset>
              <info>Sending RSET command.</info>
              <smtpSendGet2>
                <sendCmdToSmtp>
                  <SmtpCmdSent><![CDATA[RSET<CRLF>]]></SmtpCmdSent>
                </sendCmdToSmtp>
                <readSmtpResponse>
                  <SmtpCmdResp>250 2.1.5 Flushed o64-20020a37be43000000b00648fd02ac00sm8392307qkf.64 - gsmtp</SmtpCmdResp>
                </readSmtpResponse>
              </smtpSendGet2>
            </smtpRset>
          </sendWithPipelining>
        </sendSmtpEmail>
      </sendMimeInner>
    </sendEmailInner>
    <error>Failed.</error>
  </SendEmail>
</ChilkatLog>
It looks like you don't have the system email setup for authentication. What are you using for a mail server?

Re: pcbackup12.exe - Sending email returned: Email failed

Posted: Wed Mar 02, 2022 11:05 pm
by James Oxford
I agree that’s what it looks like, but as best I can tell, the system email is setup and authenticated. I verified this by sending myself a test email via PC using the system default email settings.

I don’t know if I understand your second question. The email uses gmail’s smtp server.

Re: pcbackup12.exe - Sending email returned: Email failed

Posted: Thu Mar 03, 2022 12:35 pm
by NeilZ
James Oxford wrote:
Wed Mar 02, 2022 11:05 pm
I agree that’s what it looks like, but as best I can tell, the system email is setup and authenticated. I verified this by sending myself a test email via PC using the system default email settings.

I don’t know if I understand your second question. The email uses gmail’s smtp server.
The 2nd question was to verify that you were using Gmail, as you had a custom domain name.

OK ... does the backup properly run? You can test that by checking to see if a backup was done the day after the scheduled backup.

Re: pcbackup12.exe - Sending email returned: Email failed

Posted: Tue Mar 08, 2022 10:45 pm
by James Oxford
Yes, the backup creates a backup file in the expected directory. (I guess I’m only assuming it’s a valid backup file because I haven’t tested it). Also, the log file reports the backup was successful.

Re: pcbackup12.exe - Sending email returned: Email failed

Posted: Wed Mar 09, 2022 10:52 am
by NeilZ
James Oxford wrote:
Tue Mar 08, 2022 10:45 pm
Yes, the backup creates a backup file in the expected directory. (I guess I’m only assuming it’s a valid backup file because I haven’t tested it). Also, the log file reports the backup was successful.
Since the error log shows that you get 'authentication required' .. I'd check the system email setup under PREFERENCES. That is the email setup that the backup program uses.