Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


If no attachment do not send email

Posted on 2006-05-02
Medium Priority
Last Modified: 2010-04-08
what is the sysntac to check if there is an attachment? Normally I save it in a filepath. So if that file path is empty do not send the email.

thanks for your help
Question by:zachvaldez
  • 2
  • 2
LVL 76

Expert Comment

by:David Lee
ID: 16587533
Hi zachvaldez,

> what is the sysntac to check if there is an attachment?
Do you mean from code?  I'm also not understanding what a file paht has to do with the existence, or lack thereof, of an attachment.


Author Comment

ID: 16598705
I rephrase my question..
If the attachment is < 100 kb
then do not send the email...
LVL 76

Accepted Solution

David Lee earned 500 total points
ID: 16600230
You didn't answer my question, so I'll assume you want to make this test from code and not from a rule.  Testing for the existence of an attachment is done like this:

    if Item.Attachments.Count = 0 Then

You can't check a path or a size since the test would cause errors if there is not attachment.

Author Comment

ID: 16602361
blue, your're right.
I did the other way but same solution you propose

If .attachment.count>0 then
end if

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will help to fix the below errors for MS Exchange Server 2016 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
As a Microsoft Exchange user, you must have known the importance of an Offline storage table (OST) file. It is nothing new for an Outlook user to be dependent on a .ost file during a server break down or a problematic Internet connection. In such a…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question