Jump to content

Creating a new mail in Outlook


Thierry

Recommended Posts

I got a problem with sending mail via Outlook.

I'm using a COM application (new COM("Outlook.Application")) to start up Outlook and then create a new email message.

The problem is, if I try to include the address to which the mail will be send, Outlook gives the well-known security warning about another program trying to access the recipient list.

 

Currently the line of code that includes the address is:

$a=$myItem->Recipients->Add("[email protected]")

 

Without that line, no warning is given and the subject and body appear fine, but no address.

I don't need the address to be added to Outlook's list, I just need it to appear so it can be send.

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/49425-creating-a-new-mail-in-outlook/
Share on other sites

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.