If it's the mail server you are sending through that is not liking the size of the attachment (as opposed to Google's mail server receiving it) then it doesn't matter whether you use mail(), phpmailer or other library - it's still not going to send. However it's worth a try because it may well be mail() choking on it.
2009/1/16 Super Steve <[email protected]>: > > The idea is that to save space on the server I would just email the > backup to my Gmail address and then delete the backup from the > server. Then I could keep as many backups in my Gmail account as I > liked, which would let me go back a day, a week or a month to old > backups. > > I'm might try something like PHPMailer instead of the built-in mail() > function. Hopefully it doesn't hang on large messages like mail() > seems to. > > On Jan 16, 8:32 am, Boyd <[email protected]> wrote: >> how about emailing a link to where the file is allowing it to be >> downloaded, base64 encoded files are 33% larger than the original. >> Some mail servers don't like large atachments. >> >> On Jan 14, 3:40 pm, Super Steve <[email protected]> wrote: >> >> >> >> > I'm writing a little script that will backup MySQL databases and email >> > the backups to me. >> >> > I'm using mail() and the backups are attached to the message in >> > base64. >> >> > Everything is working fine except if the backup is larger than about >> > 7MB, in which case the call to mail() seems to hang. No error >> > messages are generated and the script doesn't even seem to time out >> > (I've left it running for over half an hour!) Smaller backups are >> > being sent ok. >> >> > Is this a known problem with mail()? >> >> > I'm using PHP 4.4.7 > > > -- Chris Hope The Electric Toolbox Ltd Email: [email protected] Web: www.electrictoolbox.com Phone: +64 9 522 9531 Mobile: +64 21 866 529 --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
