WordPress.org

Ready to get started?Download WordPress

Forums

Online Backup for WordPress
Cannot instantiate mail function (6 posts)

  1. salartdog
    Member
    Posted 1 year ago #

    Hi and thanks for your plugin.
    It is working on my site, zipping the database backup. I can also manually backup and download the database. But it is not emailing the file. This is the error I am getting:
    Error The backup failed: Failed to send an email containing the backup file.
    Error Failed to send an email containing the backup file.
    Failed at: /hermes/web09/b2427/moo.stringtheoryyarncomp/wp-content/plugins/wponlinebackup/include/email.php:101
    PHPMailer: Could not instantiate mail function.
    PHP: Non-static method WPOnlineBackup_Formatting::Memory_Limit() should not be called statically, assuming $this from incompatible context

    I'm a designer and can't understand the error. Could you help explain?

    Thanks so much!

    http://wordpress.org/extend/plugins/wponlinebackup/

  2. Online Backup
    Member
    Plugin Author

    Posted 1 year ago #

    Hi salartdog,

    Can your WordPress send emails? Normally we get this when WordPress just can't send emails. In your case the mail() function is disabled by your host. You'll need to install and configure a plugin that allows emailing using SMTP and give it your host's SMTP details.

    Jason.

  3. salartdog
    Member
    Posted 1 year ago #

    Thanks Jason.
    Pretty sure it's not the host since I have several WordPress sites on the same host and the backup emails just fine on them. Maybe something with the size of the site? ...will try your suggestion and repost my progress!

    Many thanks again!

    sally

  4. Online Backup
    Member
    Plugin Author

    Posted 1 year ago #

    Hi sally,

    Just read a bit more about this. It may be due to your email address that is configured in Settings -> General. This address must be a valid email address that exists on the server WordPress is installed on, and it is this address we use as the from address for the backup. You can get this error if the from address is rejected by the server.

    Just check that it is correct and you can send emails using WordPress - everything should work as on your other blogs then.

    Regards,

    Jason.

  5. salartdog
    Member
    Posted 1 year ago #

    Thanks so much for your time Jason.

    I am using a valid email address in Settings/General that exists on the server that WordPress is installed on. WordPress can send emails to the email belonging to the owner in the site's General Settings if she needs to update her password. There is no mail option on posts in her blog. The contact form is working as well. And the form to link with her constant contact account is working, which is another form on her site to sign up for a newsletter.

    So I'm stumped. I didn't try installing the SMTP plugin because other emails are going through and the settings weren't addressing why the email associated with the site is not working. I only get the error when attempting to email a backup or during a scheduled emailed database backup . I think I may have to get a code wizard to look at it.

    Thanks again for your ideas.
    cheers, sally

  6. Online Backup
    Member
    Plugin Author

    Posted 1 year ago #

    Hi salartdog,

    You're welcome. If other emails are sending fine it might just be that the backup is too big to send via email.

    All we're able to do is pass the backup as an attachment to the phpmailer that wordpress uses to send the email - after that it leaves our control and we report back what phpmailer says. I've done a bit more research and this could return the error if the mail() function failed for some reason, and we think it might be the data was too big for mail() to handle so it failed.

    We're experimenting with how to get better error message from phpmailer and the mail() function to improve on diagnosis of this kind of error in future though.

    Jason.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic