473,379 Members | 1,544 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.

SmtpMail Attachment Error

I am trying to send an attachment using SmtpMail. I am
able to send an Excel or text file, but when I try to
send a pdf file, it throws an exception: could not access
CDO.Message object. The file size is about 1.92 MB. I was
wondering what could be the factors that result in such
an exception. I am using C# .Net and Windows XP Pro.

Thanks,

Jimmy
Nov 15 '05 #1
3 1588
Is the 1.92 MB file the largest file you've tried to send as an attachment?
Has anything larger gone through? My gut tells me its some kind of timeout
(or something of the like) issue.

"Jimmy" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
I am trying to send an attachment using SmtpMail. I am
able to send an Excel or text file, but when I try to
send a pdf file, it throws an exception: could not access
CDO.Message object. The file size is about 1.92 MB. I was
wondering what could be the factors that result in such
an exception. I am using C# .Net and Windows XP Pro.

Thanks,

Jimmy

Nov 15 '05 #2
It's not the file size, I have successfully sent >10 MB through SmtpMail..

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #3
"CDO.Message"....

Does this mean SmtpMail uses CDO ? So do i need a 'cdo' provider like
outlook to send email from a c# application ?

Is there a class not using CDO that would provide smtpmail support ?
Regards,
Cybertof.

In article <037001c3a72c$9ed67400 $a*******@phx.gbl>,
an*******@discussions.microsoft.com says...
I am trying to send an attachment using SmtpMail. I am
able to send an Excel or text file, but when I try to
send a pdf file, it throws an exception: could not access
CDO.Message object. The file size is about 1.92 MB. I was
wondering what could be the factors that result in such
an exception. I am using C# .Net and Windows XP Pro.

Thanks,

Jimmy

Nov 15 '05 #4

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

Similar topics

3
by: Ed Sutton | last post by:
How can I show the email client UI so the user can send the attachment to the desired recipient. I get an exception if I leave the MailMessage.To property blank. Is there any way to do this? I...
8
by: Jason | last post by:
Hi not sure if this is the write place, but i really need some help with this...! I have a piece of code that sends email using the SmtpMail class, in an ASP.NET web application, with...
1
by: Michael | last post by:
Hello, I've read a lot of threads on this subject, but they typically go back to a problem with the smtp server configuration. In my case, everything works great until I uncomment the one line...
0
by: Jason | last post by:
Hi not sure if this is the write place, but i really need some help with this...! I have a piece of code that sends email using the SmtpMail class, in an ASP.NET web application, with...
2
by: Arthur Carré | last post by:
Hi everyone. I have i big problem with the SmtpMail class of visual studio ..NET 2003. Here it is : I'm sending mail with attachment (1 or more) and if there is an exception after contacting...
9
by: Russell Stevens | last post by:
I generate pdf files on my server and allow users to access them via a browser and also email them. Most files work fine whether the user uses his browser or gets an email with a pdf attachment...
0
by: Mike Caputo | last post by:
Having some trouble with SMTPMail... I can get it to send once, then I try again, and it goes through without an error, but nothing gets sent. The message has one attachment - a fairly large Zip...
0
by: Tony Castellano | last post by:
I'm using the smtpmail class (Framework 1.0) to send email via an outside server. The code used is pretty straightforward. I declare a MailMessage with a body, a to, from, and an attachment. ...
0
by: =?Utf-8?B?ZGlub28=?= | last post by:
I am using .Net framework 1.1 I am trying to send the attachment with the mail, but if the mail server is down then the exception is raised in SmtpMail.Send method. And the files are attached to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...

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.