Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8644601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:20:13+00:00 2026-06-12T12:20:13+00:00

I have a problem with my PHPMailer class. There is a form with file

  • 0

I have a problem with my PHPMailer class.
There is a form with file upload functionality. The file uploads fine with no errors.
But I get the following output from the script:

Could not instantiate mail function. Unable to send message to * @ *.com

This happens only with the attachments of more than several megabytes. My php.ini configuration is fine:

post_max_size = 50M

upload_max_filesize = 50M

When I get this value below the actual upload size, then the page just refreshes and nothing happens. With the following values the file is uploaded and stored in the temporary folder but cannot be sent as attachment.

Any help will be appreciated

PS I can send emails with attachments of 1 MB with no problems

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:20:14+00:00Added an answer on June 12, 2026 at 12:20 pm

    Okay, answering my own question. Sorry for wasting anyones time.
    First of all, a look on /var/log/mail.log revealed this line

    Oct 4 20:15:39 s16271040 postfix/sendmail[13663]: fatal:
    @.com(33): message file too big

    That made more sense now.

    We go to /etc/postfix/main.cf and add the following line to the end of the file

    message_size_limit = 20480000

    And we have 20MB limit for file attachments, hooray 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem SIMILAR to preventing form data reposting, but not quite the same
I have problem with css styles in aspx.cs file HttpContext.Current.Response.Write(<table class=\'bordered\' cellpadding=\'5\' color: \'red\'
I have problem with show or hide form in Window Form Application. I start
I have problem with TableView its empty. In (.h) file: @interface TableViewController : UITableViewController{
I have a problem sending plain text emails using PHPMailer. I have text that
I have problem with consuming DbContext class in EF 4.3 CodeFirst approach. As for
I have problem with Visual Studio Designer. When I display design of a form,
Have problem with linq expressions. I want to get from db some data ordered
I have problem in my xampp server php file not work if I write
I have problem to find a good namespace design and class order. Imagine we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.