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 7683777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:52:25+00:00 2026-05-31T18:52:25+00:00

I have send an email using php mailer class. mail was sending successfully but

  • 0

I have send an email using php mailer class. mail was sending successfully but I got the mail content as ‘logo 1’. am using the following code.. anybody please help

<?
include_once 'editors/tinymce.php';
$to = 'test@test.com';
$frm = 'test1@test1.com';
$sub = 'Weekly Working Report';

$mail_body = include_once('mail_content.php');
$mailstatus = l_mail('', '', $to, '', $frm, '', $sub, $mail_body);

if ($mailstatus == 'ok') {
    echo '<center><font color=red style="font-size:14px">Message has been sent Succesfully.....!</font></center><br>';
} else {
    echo $mailstatus;
}
?>
  • 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-31T18:52:26+00:00Added an answer on May 31, 2026 at 6:52 pm

    you shouldn’t write as $mail_body = include_once('mail_content.php');
    instead,

    include_once 'editors/tinymce.php';
    $to = 'test@test.com';
    $frm = 'test1@test1.com';
    $sub = 'Weekly Working Report';
    
        ob_start(); // start output buffering
        include_once('mail_content.php');
        $mail_body = ob_get_contents(); // get the contents from the buffer
        ob_end_clean();
    
    $mailstatus = l_mail('', '', $to, '', $frm, '', $sub, $mail_body);
    
    if ($mailstatus == 'ok') {
        echo '<center><font color=red style="font-size:14px">Message has been sent Succesfully.....!</font></center><br>';
    } else {
        echo $mailstatus;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am sending email newsletters using php mail() function. I have to track the
As advised I have tried using PHP Mailer to send email attachments with a
I am using PHP Swift Mailer to send Mail to my user, whose email
Can I send email using jQuery only? I don't have .Net or PHP etc
I am trying to send an email from PHP using PHPmailer() . I have
The following script sends email using mail function . But i am unable to
I am using php's mail() function to send an email from a php scrpit,
I am using swift mailer using this statement: require_once 'lib/swift_required.php'; to send email. It
I have an App that will send authenticated emails using System.Net.Mail and System.Net.NetworkCredential my
I have a page called send.email.php which sends an email - pretty simple stuff

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.