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

  • Home
  • SEARCH
  • 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 7509337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:52:51+00:00 2026-05-29T22:52:51+00:00

I am using php mailer class to send multiple attachment mails. Two error are

  • 0

I am using php mailer class to send multiple attachment mails. Two error are coming my way:

First these two lines apear when email is sended, these errors are from class.phpmailer.php:

Deprecated: Function set_magic_quotes_runtime() is deprecated in
/var/www/dev01/maiarn/class.phpmailer.php on line 1471

Deprecated: Function set_magic_quotes_runtime() is deprecated in
/var/www/dev01/maiarn/class.phpmailer.php on line 1475 Message has
been sent.

Second
The email is sent with only one attachment, The second goes where:

$mail->AddAttachment("logo.jpg"); // attachment
$mail->AddAttachment("logo.jpg"); 

Any Help

  • 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-05-29T22:52:52+00:00Added an answer on May 29, 2026 at 10:52 pm

    It looks like you are using PHPMailer for PHP4 when you are running PHP5. If you are indeed running PHP5, make sure you have the latest PHPMailer from http://code.google.com/a/apache-extras.org/p/phpmailer/downloads/list

    As for the attachments, you are attaching the same file twice? PHPMailer is probably removing duplicates.

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

Sidebar

Related Questions

I am using php mailer class. I am getting : SMTP Error: The following
I am sending emails using PHP Pear class, when I see mails in gmail,
i am using PHPMailer class , it doesn't support multiple image upload. $mailer =
As advised I have tried using PHP Mailer to send email attachments with a
I am using PHP Swift Mailer to send a bulk mail to a set
I'm trying to send SMTP e-mails using PHPMailer, but I keep getting this error
Using PHP, what's the fastest way to convert a string like this: 123 to
using php and mysql I have two tables, a users table and a profiles
I'm trying to accomplish the following, I'm sending a HTML email using PHP Mailer
I'm trying to extend the PHP mailer class from Worx by adding a method

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.