'Opening an Outlook Email
I am not new in computers; I am a .NET developer, but was presented with this great opportunity to develop in PHP, so I took it. There is a need to open an Outlook/Item (email) form the website; is that even possible? I know there is functionality in CakePHP to send emails but client wants to use their own Outlook application.
Any pointer would be much appreciated! Have a great coding day...
Solution 1:[1]
There ist no easy Way in PHP. PHP will be executed on a webserver and not on the client computer.
There ars some ways to solve this, depend on your needs:
You can open the standard mail-client with an HTML-Link like this:
<a href="mailto:[email protected][email protected], [email protected], &[email protected]&subject=Mail from our Website&body=Some body text here">E-Mail senden</a>
If this is too rudimentary, you can send an nice formated email via smtp/sendmail to an emailadress. cakephp mailer class documentation
You can also try to connect via IMAP an put mailobjects into the draft-folder. There are some basic PHP functions for this: PHP IMAP documentation
Only in the first case, outlook will open the email in a Window.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | robsns |
