KenDRhyD Posted May 15, 2008 Share Posted May 15, 2008 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? Link to comment https://forums.phpfreaks.com/topic/105750-solved-invoke-email-client-from-within-php/ Share on other sites More sharing options...
kenrbnsn Posted May 15, 2008 Share Posted May 15, 2008 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 Link to comment https://forums.phpfreaks.com/topic/105750-solved-invoke-email-client-from-within-php/#findComment-541816 Share on other sites More sharing options...
KenDRhyD Posted May 15, 2008 Author Share Posted May 15, 2008 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? Link to comment https://forums.phpfreaks.com/topic/105750-solved-invoke-email-client-from-within-php/#findComment-542052 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.