473,387 Members | 1,364 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,387 software developers and data experts.

email problem

Hi Everybody,

I've upgraded the dot net framework from 1.0 to 1.1 onto the server and
everything seemed fine when it comes to sending attachments etc . However
just recently all emails that has attachments would not send properly.What I
mean is that the attachments are there but its only (64B) and will not open.
Also I have also created an application which simply sends out emails with
attachments and is coming up with the same problem. A couple of months back
I've use the "exact" application and it was working fine.

Does anybody know whats wrong?
I"ve also checked the smtp settings and everything seems fine.

Thanks in advance

Alex Ting
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 29/09/2003
Jul 21 '05 #1
7 2808
Hi Alex,

Thanks for your post. As I understand, the problem you are facing is that
it System.Web.Mail does not work properly with attachments after you
installing .NET Framework 1.1. Please correct me if there is
misunderstanding. Now I'd like to share the following information with you:

I built a test Windows Form application in Visual Studio .NET 2003 to send
email with attachments, and it works on my side. I think more information
is needed before moving forward:

1. Did you uninstall .NET Framework 1.0 after installing .NET Framewrok
1.1? As you know, .NET Framework supports side-by-side execution, that is,
we are able to install multiple versions of the .NET Framework on a single
system and they will work without affecting one another.

Side-by-Side Execution of the .NET Framework
http://msdn.microsoft.com/library/de...us/dnnetdep/ht
ml/sidexsidenet.asp

2. Did you rebuilt your project in Visual Studio .NET 2003? Generally
speaking, VS .NET 2003 builds applications targets .NET Framework 1.1,
while VS .NET 2002 builds those targets .NET Framework 1.0.

3. Which SmtpServer do you specify in the application, local/remote SMTP,
smarthost, Exchange Server, etc? Does this problem also occurs when sending
email in Outlook or Outlook Express with the same account?

I am standing by for your response.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2
Hi Tian,

Thanks for your prompt reply. Unfortunately it is a rather strange
problem because I've sent out several emails on the server (using IIS
SMTP) and it was fine. However suddenly ever since it cannot send out
any attachments (attachments are seen but only 64B)

In response to your points:

1)We have 1.0 and 1.1 running side by side

2)Yes

3)IIS SMTP Server

Thanks in advance and I look forward to your repsonse

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #3
Hi Alex,

Thanks for your response. This behavior seems strange, and I did not find
any known issue about this problem.

I suggest to check the content of 64B attachments, please open it in
Notepad or Ultra Editor.

You can also check the logs file of SMTP service which locates at <Windows
Folder>\System32\Logfiles\SmtpSVC\.

How is the SMTP service configured? Does it support Relay? Did you specify
a "Smart host"?

I am standing by for your reply.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4

Hi Huang,

These attachments are of type .tiff and of .pdf. I've opened the .tiff
attachments in the email with notepad and there is absolutely nothing in
there. The file name is correct as well as the extension but there is
nothing inside the file. I've checked the log files and all of it looks
like this:

#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2003-10-02 00:37:01
#Fields: time c-ip cs-method cs-uri-stem sc-status
00:37:01 202.174.226.115 - - 0
00:37:01 202.174.226.115 EHLO - 0
00:37:01 202.174.226.115 - - 0
00:37:01 202.174.226.115 MAIL - 0
00:37:01 202.174.226.115 - - 0
00:37:01 202.174.226.115 RCPT - 0
00:37:01 202.174.226.115 RCPT - 0
00:37:01 202.174.226.115 - - 0
00:37:01 202.174.226.115 DATA - 0
00:37:01 202.174.226.115 - - 0
00:37:01 202.174.226.115 - - 0
00:37:01 202.174.226.115 RSET - 0
00:37:01 202.174.226.115 - - 0
00:37:01 202.174.226.115 MAIL - 0
00:37:01 202.174.226.115 - - 0
00:37:01 202.174.226.115 RCPT - 0
00:37:01 202.174.226.115 RCPT - 0
00:37:01 202.174.226.115 - - 0

if that makes any sense to you. It all looks normal to me as I've looked
in all of the other logs.

The smtp service is default from IIS (default SMTP virtual server) and
we have not adjusted any settings from before. (Windows 2000 advanced
server)

Thanks for your continuing support

Kind Regards
Alex Ting
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #5
Hello Alex,

Thanks for your response. I reviewed the SMTP log carefully, and it seems
to work properly.

Are you specify local or remote IIS SMTP Server? Is the IP address
202.174.226.115 your local server?

What's the email address you are testing again? Are you submitting email on
corpnet? Generally speaking, not allowing relay on a local SMTP service
will result in the exception "Could not access 'CDO.Message' object." when
sending email.

To narrow down the problem, I recommend you specify SmtpServer to other
SMTP server, smarthost or Exchange Server and check if the probem still
exists.

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #6
Hi Tian,

Thank you for your continuing support. Your feedback is much appreciated
and valuable. This is a local IIS SMTP Server and the ip address is of
that server. I'm sending emails to a whole wide range of address and the
actual emails are being sent successfully. The code that is being used
to send emails:

public static bool sendEmailAttachment(string toEmailAddress, string
fromEmailAddress, string subject, string body, string fileLocation)
{
System.Web.Mail.MailMessage certificateMailMessage;
certificateMailMessage = new MailMessage();
certificateMailMessage.To=toEmailAddress;
certificateMailMessage.From = fromEmailAddress;
certificateMailMessage.Subject = subject;
certificateMailMessage.Body = body;
certificateMailMessage.Bcc=fromEmailAddress;
certificateMailMessage.Attachments.Add(new
MailAttachment(fileLocation));
SmtpMail.Send(certificateMailMessage);
return true;
}
The file attachment at the location is correct but for some reason its
not attaching it correctly. Could this be because of some of the
Microsoft Updates because we keep up to date to the latest releases?

Yes, I'm very familiar with the CDO.Message object because I have that
on my computer. Our website has an error logging procedure where it
emails the problems to us when there is an exception.

I will look further into specifying a different smtp server.

Kind Regards
Alex Ting

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #7
Hello Alex,

Thanks for your feedback.

I used to test almost the same code with yours, and it works properly with
attachments. (I explicitly specify the SmtpServer, while you will use the
default local SMTP server). Based on my experience and research, I believe
that this issue relates to the SMTP service configuration.

Please let me know the result of other SmtpServer test on your side. I am
standing by for your result.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #8

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

Similar topics

3
by: jpastora | last post by:
I'm having a strange problem with our email links on the domain : http://www.pc350.com/ . The problem is that when you click on an email link, the email app is not launched until the browser...
6
by: mike | last post by:
I have created a side application in VB.NET which reads rows from a DB and builds an email message. when i have a long string the the mailmessage.body or the mailmessage, it puts in an...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
0
by: VP | last post by:
g'day, i am posting a problem i have encountered with creating an email using outlook through some basic c# code. the problem arises when using different email editors in outlook. At the moment...
14
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my...
26
by: libsfan01 | last post by:
Hi all! Can anyone show me how to check and email field on a form for the existence of these two characters. Kind regards Marc
0
by: RickVidallon | last post by:
Missing or Truncated Body Text in Email Application - 2 Strange Examples... There is no earthly reason why this is happening! EXAMPLES HERE: http://65.36.227.70/actmailer/ We have a...
3
by: Steven Allport | last post by:
I am working on processing eml email message using the email module (python 2.5), on files exported from an Outlook PST file, to extract the composite parts of the email. In most instances this...
3
by: IGD | last post by:
I don't know if this is the right place to post this or not. If not, could someone direct me elsewhere where I would find more information on how to solve my problem? Thanks! My problem is this:...
28
tdw
by: tdw | last post by:
Hi all, I am trying to add a feature to our database that automates sending emails. When entering a new order, I want the option to send an email to the company the order came from, attaching a...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.