Jump to content

How do I create an email in Thunderbird using PHP?


DeX

Recommended Posts

I have a form on my website that currently uses the mail() function to send the information it collects and all works fine. I want to switch it over to open the email in Thunderbird on the user's machine so they can view it prior to sending. This should be much less complicated but I can't find answers anywhere, all I want to do is just open the email in the user's email client with the proper information/attachments included. Anyone? Thanks!

Link to comment
Share on other sites

What if the user doesnt have thunderbird?

 

I take it they are writing the message? If so why not just display thier message as you intend it to be displayed on the page below the input form?

 

Easily done with ajax, as they write, the text appears just below the input box, but formatted how you want it...

Link to comment
Share on other sites

  • 2 weeks later...

This is for a single client that will be sending quotes to their own clients so they want to use their own Thunderbird system to:

1. Keep a copy in their SENT items folder.

2. Write a personalized message in the email prior to sending it the attached PDF.

 

So right now I'm using DOMPDF to auto generate the PDF version of the quote and send it automatically via PHP using the mail() function. They can't do the things above with this method so I just need to move everything over to create the email in their email client prior to them hitting SEND.

Link to comment
Share on other sites

Actually I'm getting closer with the mailto() function, that takes an attachment parameter that allows you to specify a file to send with the email and will open it in the client's email program. The only problem with this is it looks for the file on my local machine, is there a way to specify a file on the server?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.