473,387 Members | 1,517 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.

SMTP Mail

Has anyone had any issues repeatedly sending SMTP e-mails from .Net?

I have a c# component that gets executed by multiple threads, and uses
SmtpMail.Send to send e-mails. Whilst in 80% of cases this works fine, I
sometimes get "Could not access 'CDO.Message' object" errors

The code in question is running as an AIC component under BizTalk.

The call stack is:
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args)
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
System.Web.Mail.SmtpMail.Send(MailMessage message)

Thanks.
Kev.
Jul 21 '05 #1
5 5090
I ran into too many similar issues myself and decided that my own Smtp
class was in order.
http://www.kbcafe.com/articles/HowTo.SMTP.CSharp.pdf

Randy
http://www.kbcafe.com

"Kevin Harrison" <ke************@ioko.com> wrote in message news:<eZ**************@tk2msftngp13.phx.gbl>...
Has anyone had any issues repeatedly sending SMTP e-mails from .Net?

I have a c# component that gets executed by multiple threads, and uses
SmtpMail.Send to send e-mails. Whilst in 80% of cases this works fine, I
sometimes get "Could not access 'CDO.Message' object" errors

The code in question is running as an AIC component under BizTalk.

The call stack is:
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args)
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
System.Web.Mail.SmtpMail.Send(MailMessage message)

Thanks.
Kev.

Jul 21 '05 #2
You could also try http://www.freesmtp.net

"Randy Charles Morin" <rm****@kbcafe.com> wrote in message
news:a4**************************@posting.google.c om...
I ran into too many similar issues myself and decided that my own Smtp
class was in order.
http://www.kbcafe.com/articles/HowTo.SMTP.CSharp.pdf

Randy
http://www.kbcafe.com

"Kevin Harrison" <ke************@ioko.com> wrote in message

news:<eZ**************@tk2msftngp13.phx.gbl>...
Has anyone had any issues repeatedly sending SMTP e-mails from .Net?

I have a c# component that gets executed by multiple threads, and uses
SmtpMail.Send to send e-mails. Whilst in 80% of cases this works fine, I
sometimes get "Could not access 'CDO.Message' object" errors

The code in question is running as an AIC component under BizTalk.

The call stack is:
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args)
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
System.Web.Mail.SmtpMail.Send(MailMessage message)

Thanks.
Kev.

Jul 21 '05 #3
Randy,

Perhaps my quick scan of your article missed something. But it appears that you
don't handle timeouts or the fact that an SMTP response line may arrive in two
separate chunks (reads). While the former problem is obvious when it occurs the
latter results in random protocol failures which are difficult to diagnose.
--
Abderaware
Fine Components For .NET
Turn on, tune in, download.
zane a@t abderaware.com
Jul 21 '05 #4
Hi,

I also used this object to send and receive emails. I am able to send and
receive mails successfully. But I faced one problem, which I would like to
share with you. If you people have a better suggestions please let me know.

I have used VB.net language to send and receive mails. Mail body format was
HTML.

My problem was to send and receive mail in HTML format. Which contained
Images and text. With this I was able to send and receive the HTML text
correctly, however I am not able to display images in the body. I tried
attaching all the images to the messages and specifying the path. But this
also did not worked for me. It worked only when I receive mail in the
outlook. If I was opening this mail on web based interface I was not able to
see images. Path which missing images was showing and the path of attachment
was different on different server.

I also have seen so many components, which are capable of doing this. But
they are not free. So I would like to request you if you know the solution
please help me.

Regards,

Kishor


"Kevin Harrison" <ke************@ioko.com> wrote in message
news:eZ**************@tk2msftngp13.phx.gbl...
Has anyone had any issues repeatedly sending SMTP e-mails from .Net?

I have a c# component that gets executed by multiple threads, and uses
SmtpMail.Send to send e-mails. Whilst in 80% of cases this works fine, I
sometimes get "Could not access 'CDO.Message' object" errors

The code in question is running as an AIC component under BizTalk.

The call stack is:
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args)
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
System.Web.Mail.SmtpMail.Send(MailMessage message)

Thanks.
Kev.

Jul 21 '05 #5
Hi!

Check out CSLMail at

http://www.wintoolzone.com/showpage....how=components

Regards,
--------------------------------------------------
Kumar Gaurav Khanna
Microsoft MVP - .NET, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
OpSupport - Spelunking Rotor
http://opsupport.sscli.net/

"Kishor" <kp***@hotmail.com> wrote in message
news:ux**************@TK2MSFTNGP09.phx.gbl...
Hi,

I also used this object to send and receive emails. I am able to send and
receive mails successfully. But I faced one problem, which I would like to
share with you. If you people have a better suggestions please let me know.
I have used VB.net language to send and receive mails. Mail body format was HTML.

My problem was to send and receive mail in HTML format. Which contained
Images and text. With this I was able to send and receive the HTML text
correctly, however I am not able to display images in the body. I tried
attaching all the images to the messages and specifying the path. But this
also did not worked for me. It worked only when I receive mail in the
outlook. If I was opening this mail on web based interface I was not able to see images. Path which missing images was showing and the path of attachment was different on different server.

I also have seen so many components, which are capable of doing this. But
they are not free. So I would like to request you if you know the solution
please help me.

Regards,

Kishor


"Kevin Harrison" <ke************@ioko.com> wrote in message
news:eZ**************@tk2msftngp13.phx.gbl...
Has anyone had any issues repeatedly sending SMTP e-mails from .Net?

I have a c# component that gets executed by multiple threads, and uses
SmtpMail.Send to send e-mails. Whilst in 80% of cases this works fine, I
sometimes get "Could not access 'CDO.Message' object" errors

The code in question is running as an AIC component under BizTalk.

The call stack is:
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args)
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
System.Web.Mail.SmtpMail.Send(MailMessage message)

Thanks.
Kev.


Jul 21 '05 #6

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

Similar topics

2
by: Mark Carter | last post by:
I'm trying to create a mail server in Twisted. I either get SMTPSenderRefused or SMTPException: SMTP AUTH extension not supported by server. What do I need to do to get it to work?
21
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST"> ... Thanks a lot. ...
2
by: RandRace | last post by:
I'm having some problems with a little script i wrote using net::smtp. I originally wrote it in linux where it works perfectly. I tried to use it from windows the other day and it doesn't work. It...
15
by: Steven Burn | last post by:
My server has POP but only has SMTP if sending to my domain, and not other domains (such as hotmail). I'm therefore wondering, if anyone knows of any scripts etc, that will allow me to have a sort...
3
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email...
5
by: Charlie | last post by:
Hi: I'm working on an e-commerce site. Using the SMTP class, my site sends out confirmation messages. It works most of the time, but sometimes raises an error. I need a way of making sure it...
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...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
5
by: Chris | last post by:
I am trying to send email in C#. I wrote 2 pieces of code: 1. MailMessage mail = new MailMessage(); mail.From = "from_address"; mail.To = "to_address"; mail.Subject = "subject"; mail.BodyFormat...
7
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee...
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: 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
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
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...
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
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.