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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:29:22+00:00 2026-06-18T08:29:22+00:00

Is it possible to prepare an email (From, To, Subject, Body, Attachements) in PHP

  • 0

Is it possible to prepare an email (From, To, Subject, Body, Attachements) in PHP and, instead of directly sending it with PHP, open it with the client’s email program (Thunderbird / Outlook / …)?

My context is :

  • in a form, the user select the “To” contact and a file to send (the body is a predefined text)
  • on submit, I would like the prepared email to be displayed in his favorite mail client, so that he can modify it (add CC, modify body, …)

If possible, how to do that?

  • 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-18T08:29:23+00:00Added an answer on June 18, 2026 at 8:29 am

    Thanks all for your answers.

    Unfortunately (and actually quite unsurprisingly), it is not possible to put attachement data in a mailto link (duh)!

    2 solutions then :

    1. If you really need to open the client’s email software, then prepare a mailto with a direct link to the file in the message body. For that, you need to store the file in a place accessible by the recipient vie that direct link.
    2. If you can’t store the file in a place accessible by the recipient (for instance your app is a intranet app behind a firewall), then the only solution is to send the email via PHP directly, without using the client’s software.
    3. Or maybe you could send the mail to the sender first via PHP, and he would forward it to the recipient himself, so he could modify the message at will. But that’s a bit confusing for non-trained users…

    Cheers!

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

Sidebar

Related Questions

Possible Duplicate: Sending mass email using PHP I have a PHP script that sends
Possible Duplicate: PHP PDO bindValue in LIMIT $number=8; try { $topics=$dbh->prepare(SELECT * FROM topictable
I wonder if it's possible to somehow prepare DockWidgets from the UI-Designer. There's no
Possible Duplicate: How to prepare an NSURL from an NSString continaing international characters? I've
Using DBI::DatabaseHandle#execute or DBI::DatabaseHandle#prepare it's not possible to run an sql script (with mutiple
Are PHP/mysql prepared statements possible when mysqli and PDO are not available? Are there
Possible Duplicate: Retrieve (or simulate) full query from PDO prepared statement I can't figure
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:
HI , I am writing a java program to validate email addresses. This program

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.