473,379 Members | 1,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

mail.SaveFileAs question

hey all,

i'm using the outlook object model. i'm using the ItemsAdd event handler so
whenever an email arrives my program will save the attachment if applies.

well, i'm debugging this and when an email comes in the event fires off just
fine. so i'm stepping thru the procedure to save the attachment and as soon
as it does the mail.SaveAsFile the debugging line goes away. it never goes
back to the calling procedure to finish out the rest of the procedure.

any ideas?

rodchar
Nov 21 '05 #1
1 926
hey all,

the save as file name was in use by another process. i tried to put a try
catch around the mail.SaveAsFile but it said Catch cannot catch
Outlook.Exception what would i do to get around this?

thanks,
rodchar

"rodchar" wrote:
hey all,

i'm using the outlook object model. i'm using the ItemsAdd event handler so
whenever an email arrives my program will save the attachment if applies.

well, i'm debugging this and when an email comes in the event fires off just
fine. so i'm stepping thru the procedure to save the attachment and as soon
as it does the mail.SaveAsFile the debugging line goes away. it never goes
back to the calling procedure to finish out the rest of the procedure.

any ideas?

rodchar

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Rick | last post by:
Is there a way to use these two types of coding in the Mail function of PHP? Thanks for any help you can give it is most appreciated!! money_format('%i', $total) and print " <tr...
13
by: Ammar | last post by:
OK guys, Thanks to your help, I could finally send ASP mails with attachements... A very strange question: When I looked through all the sites you gave me and through Google, I got the impression...
2
by: Fabricio Sperandio | last post by:
Hi everyone, I am using the Mail Class to send an E-mail. It works very well but I would like show my name instead of the E-mail on the mail client, when the user receives the E-mail. Now I...
3
by: RN | last post by:
I am tired of sending mail from the built-in SMTP service for so many reasons (errors are nondescriptive in the event log, it doesn't let me control which IP address it sends from, and it...
2
by: Bob | last post by:
In 2003 you could use system.web.mail to send e-mails as long as IIS server was installed on the computer, you would be able to send e-mail fairly easily. Since this has been made obsolete and MS...
9
by: shror | last post by:
hi every body, i have a problem which is when i was checking my mail() form it work fine but the problem is that the form configuration is not set correctly, in details: the from var is not...
3
by: Dudely | last post by:
I'm trying to debug someone else's third party code that I'm trying to install on my site. It works for him on his site, but not for me on "my" site. I've traced the problem to the mail() call....
1
by: =?Utf-8?B?VGltb3RoeQ==?= | last post by:
Hi all, who can help me , recently i found a problem from the window mail whic are i am using my own personal mail account and try to using window mail to log in. anywhre i can receive some of...
4
borisding
by: borisding | last post by:
Hi there, Well, I really need help from someone here, and hope that someone will answer my question and solve my problem. I know it's very common question and being asked by many developers: ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.