fax-emails no Mail.Item? 
Author Message
 fax-emails no Mail.Item?

Hi NG.

I want to print automaticly some certain "fax"-emails from the inbox
on receiving. These fax-emails are sent from a fax-server connected to
exchange5.5. If I use the rule wizard "print all incoming emails" the
text of the email, a kind of fax report, also is printed as a kind of
coverpage. So if I want to print faxes without this coverpage I have
to use VB with Outlook.

My problem is that the code works fine with any kind of email, but if
I receive an fax-email I get a run-time error "type incompatible".

Up to now I supposed every email in outlook is an items-object.
Especially the fax-emails are just normal emails with an attached
fax-file. But this can't be true if I get this run--time error.

Does anybody know how to find out the object type of certain email
types?
Ciao
Peter Schoettler



Sun, 25 Jan 2004 14:17:56 GMT  
 fax-emails no Mail.Item?
You should always check the Class of the items if you're working with items
in the Inbox, since you may have items other than MailItem.

--

Sue Mosher, Outlook MVP
Author of
     Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
     Microsoft Outlook 2000 E-mail and Fax Guide
Outlook and Exchange solutions at http://www.slipstick.com


Quote:
> Hi NG.

> I want to print automaticly some certain "fax"-emails from the inbox
> on receiving. These fax-emails are sent from a fax-server connected to
> exchange5.5. If I use the rule wizard "print all incoming emails" the
> text of the email, a kind of fax report, also is printed as a kind of
> coverpage. So if I want to print faxes without this coverpage I have
> to use VB with Outlook.

> My problem is that the code works fine with any kind of email, but if
> I receive an fax-email I get a run-time error "type incompatible".

> Up to now I supposed every email in outlook is an items-object.
> Especially the fax-emails are just normal emails with an attached
> fax-file. But this can't be true if I get this run--time error.

> Does anybody know how to find out the object type of certain email
> types?
> Ciao
> Peter Schoettler



Sun, 25 Jan 2004 19:20:50 GMT  
 fax-emails no Mail.Item?
Thank you, now I am one step further. It is now possible to "scan" the
mails, but some properties of an MailItem.Attachment are not
available.
My problem now is to know how to find out which properties are
supported from my "new" object-class.

Do you have a guess?

ciao
Peter



Quote:
>You should always check the Class of the items if you're working with items
>in the Inbox, since you may have items other than MailItem.

>--

>Sue Mosher, Outlook MVP
>Author of
>     Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
>     Microsoft Outlook 2000 E-mail and Fax Guide
>Outlook and Exchange solutions at http://www.slipstick.com



>> Hi NG.

>> I want to print automaticly some certain "fax"-emails from the inbox
>> on receiving. These fax-emails are sent from a fax-server connected to
>> exchange5.5. If I use the rule wizard "print all incoming emails" the
>> text of the email, a kind of fax report, also is printed as a kind of
>> coverpage. So if I want to print faxes without this coverpage I have
>> to use VB with Outlook.

>> My problem is that the code works fine with any kind of email, but if
>> I receive an fax-email I get a run-time error "type incompatible".

>> Up to now I supposed every email in outlook is an items-object.
>> Especially the fax-emails are just normal emails with an attached
>> fax-file. But this can't be true if I get this run--time error.

>> Does anybody know how to find out the object type of certain email
>> types?
>> Ciao
>> Peter Schoettler

Ciao
Peter Schoettler


Mon, 26 Jan 2004 19:48:40 GMT  
 fax-emails no Mail.Item?
The items will support the default properties of the base class (MailItem,
ContactItem, etc.) plus any custom properties you've added.


Quote:
> Thank you, now I am one step further. It is now possible to "scan" the
> mails, but some properties of an MailItem.Attachment are not
> available.
> My problem now is to know how to find out which properties are
> supported from my "new" object-class.



> >You should always check the Class of the items if you're working with
items
> >in the Inbox, since you may have items other than MailItem.

> >--

> >Sue Mosher, Outlook MVP
> >Author of
> >     Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
> >     Microsoft Outlook 2000 E-mail and Fax Guide
> >Outlook and Exchange solutions at http://www.slipstick.com



> >> Hi NG.

> >> I want to print automaticly some certain "fax"-emails from the inbox
> >> on receiving. These fax-emails are sent from a fax-server connected to
> >> exchange5.5. If I use the rule wizard "print all incoming emails" the
> >> text of the email, a kind of fax report, also is printed as a kind of
> >> coverpage. So if I want to print faxes without this coverpage I have
> >> to use VB with Outlook.

> >> My problem is that the code works fine with any kind of email, but if
> >> I receive an fax-email I get a run-time error "type incompatible".

> >> Up to now I supposed every email in outlook is an items-object.
> >> Especially the fax-emails are just normal emails with an attached
> >> fax-file. But this can't be true if I get this run--time error.

> >> Does anybody know how to find out the object type of certain email
> >> types?
> >> Ciao
> >> Peter Schoettler

> Ciao
> Peter Schoettler



Mon, 26 Jan 2004 23:04:48 GMT  
 fax-emails no Mail.Item?
F*!~>>$%&"!`$&.....!!!!! I am really stupid !!!

The problem is solved. I changed the code a little bit to often and so
I used a variable without setting it to an object.



Quote:
>The items will support the default properties of the base class (MailItem,
>ContactItem, etc.) plus any custom properties you've added.



>> Thank you, now I am one step further. It is now possible to "scan" the
>> mails, but some properties of an MailItem.Attachment are not
>> available.
>> My problem now is to know how to find out which properties are
>> supported from my "new" object-class.



>> >You should always check the Class of the items if you're working with
>items
>> >in the Inbox, since you may have items other than MailItem.

>> >--

>> >Sue Mosher, Outlook MVP
>> >Author of
>> >     Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
>> >     Microsoft Outlook 2000 E-mail and Fax Guide
>> >Outlook and Exchange solutions at http://www.slipstick.com



>> >> Hi NG.

>> >> I want to print automaticly some certain "fax"-emails from the inbox
>> >> on receiving. These fax-emails are sent from a fax-server connected to
>> >> exchange5.5. If I use the rule wizard "print all incoming emails" the
>> >> text of the email, a kind of fax report, also is printed as a kind of
>> >> coverpage. So if I want to print faxes without this coverpage I have
>> >> to use VB with Outlook.

>> >> My problem is that the code works fine with any kind of email, but if
>> >> I receive an fax-email I get a run-time error "type incompatible".

>> >> Up to now I supposed every email in outlook is an items-object.
>> >> Especially the fax-emails are just normal emails with an attached
>> >> fax-file. But this can't be true if I get this run--time error.

>> >> Does anybody know how to find out the object type of certain email
>> >> types?
>> >> Ciao
>> >> Peter Schoettler

>> Ciao
>> Peter Schoettler

Ciao
Peter Schoettler


Tue, 27 Jan 2004 14:50:58 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Removal of attachments on email items in Sent items folder

2. Adding Menu item to the Mail item menu from an outlook Addin

3. Adding Menu item to the Mail item menu from an outlook Addin

4. Changing from mail-item to task-item

5. attached Contact Item on server-side becomes attached Mail Item on client-side

6. attached contact item is received as mail item

7. create an e-mail mailing from a folder containing tasks items

8. Automate FAX , FAX ROBOT , FAX OCX

9. Automate FAX , FAX ROBOT , FAX OCX

10. Automate FAX , FAX ROBOT , FAX OCX

11. Automate FAX , FAX ROBOT , FAX OCX

12. Faxing...Email...from within Access

 

 
Powered by phpBB® Forum Software