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("test@whatever.com")

 

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
Share on other sites

Nah its only for internal use in a network so that's not a problem.

 

Thats not your problem. The COM object your using accesses services on the server, not the client. You cannot access COM on the client from PHP.

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.