pcbackup12.exe - Sending email returned: Email failed

Events, Record Keeping, Utilities

Moderators: Moderators, Tech Support

Post Reply
James Oxford
Posts: 9
Joined: Thu Aug 26, 2021 12:43 pm

pcbackup12.exe - Sending email returned: Email failed

Post 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>

NeilZ
Posts: 10209
Joined: Wed Oct 08, 2003 1:20 am
Location: Dexter NM
Contact:

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

Post 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?
Neil Zampella

Using PC+ since 1999.

James Oxford
Posts: 9
Joined: Thu Aug 26, 2021 12:43 pm

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

Post 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.

NeilZ
Posts: 10209
Joined: Wed Oct 08, 2003 1:20 am
Location: Dexter NM
Contact:

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

Post 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.
Neil Zampella

Using PC+ since 1999.

James Oxford
Posts: 9
Joined: Thu Aug 26, 2021 12:43 pm

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

Post 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.

NeilZ
Posts: 10209
Joined: Wed Oct 08, 2003 1:20 am
Location: Dexter NM
Contact:

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

Post 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.
Neil Zampella

Using PC+ since 1999.

Post Reply