Jump to content

[SOLVED] Invoke email client from within PHP


KenDRhyD

Recommended Posts

I know how to create a MAILTO link in HTML, and I know how to send SMTP mail directly from within PHP, but how can I prepare a mail message within PHP and then invoke the users mail client with the prepared message so they can edit it before sending?  I do not want to display an intermediate page with a link on it, as this process may actually create multiple mail messages concurrently, each of which they want to preview/proof, and then other processing is to be performed before an actual page is displayed. Is there anyway for the server side PHP code to cause the mail client to be invoked (perhaps more than once) and then send a page to be displayed?

Not directly.

 

You would need to use AJAX techniques here. Use Javascript to present a editable area for the message, the send the contents of the are, via Ajax, to your PHP script to actually do the mail.

 

Ken

Dang! So there is no way to prepare the entire message in PHP and then send it to the client and launch the mail client in the same manner that one can send a data file that ends up being saved on the client system?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.