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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:14:09+00:00 2026-06-14T04:14:09+00:00

Possible Duplicate: confirming message before mailing in php I am developing a page where

  • 0

Possible Duplicate:
confirming message before mailing in php

I am developing a page where in my boss will search for a company in a database. Once he clicks on its name, an email format will be shown (done in html) as a confirmation page. And then there will be a button (or link? i’m still not sure which to use) which will then send the mail to that particular company.

<img src="../../img/emmlogo.jpg" style="left: 0;position: absolute; width: 75px;"/>
<body style="padding: 0 0 0 100px;position: relative;">
<?php echo date("F d, Y ");?>  <br><br>

<b> echo $row_Recordset1['First Name'].'&nbsp'.$row_Recordset1['Middle Initial'].'&nbsp'.$row_Recordset1['Last Name']; ?></b><br>
<?php echo $row_Recordset1 ['Position'].'<br>'.$row_Recordset1['Company Name'].'<br>'.$row_Recordset1['Corporate Address'];?><br><br>

<p>Dear <?php echo $row_Recordset1['Last Name']; ?>:</p>

I’ve only gotten to the confirmation page and it’s all set. I just want to find out if it is possible that I can send the information without having to repeat the queries from the confirmation page that I made and I want the mail to look exactly as how I made the html. I am open to any comments or suggestions as this site has helped me a lot in developing this particular project. thank you

  • 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-14T04:14:11+00:00Added an answer on June 14, 2026 at 4:14 am

    First you should get rid of relative paths for your pictures if you intend on sending this HTML… provide links to servers that are accessible to everybody.

    What you can do is send an HTML email (plenty of libraries already do that for you). If you want to reuse directly your confirmation page, consider the usage of ob_start and ob_end_clean. In between these two calls, query your script that generates the preview and dump it into a buffer using ob_get_contents. This should save you from writing the code twice.

    Here’s sample code from one of my project:

    ob_start(); // turn on output buffering
    require("mails/email_preview.php"); // include, require, process whatever you want to fill the buffer with
    $_body=ob_get_contents(); // get the content of the buffer
    ob_end_clean(); // erase the buffer and turn off output buffering
                    
    $this->sendMail($_emailAddress, "Email Title", $_body);
    

    Helpful links:

    • ob_start
    • ob_get_contents
    • ob_end_clean
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: How to convert text to unicode code point like \u0054\u0068\u0069\u0073 using php?
Possible Duplicate: How to read Windows loged in username with PHP/IIS I'm work on
Possible Duplicate: Opening url in new tab while i am doing window.open(), my page
Possible Duplicate: What is the fastest XML parser in PHP? I still need to
Possible Duplicate: Transparent images with C# WinForms I am coding an app which will
Possible Duplicate: How to successfully rewrite old mysql-php code with deprecated mysql_* functions? I
Possible Duplicate: PHP get all arguments as array? Within a javascript function arguments always
Possible Duplicate: regex for URL including query string I have a text or message.

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.