Hi
We are using system.web.mail with .Net 1.1 (.Net 2.00 under development) and
some of our users are reporting that having multiple names in the 'to' field
for sending emails (using smtpmail) causes the email not to be sent. Email
server software is Exchange SP2, but other users (including our own test
site) use the same without any problems. The multiple names in the 'to' list
are separated with semicolons.
Unfortunately we don't have the text of any exception that occurs when the
mail is sent, we could add that and install a test version on the customer's
PC but these customers are sensitive and won't take kindly to being used as a
test site.
Any ideas of what could be wrong? I have noticed (in developing the .NET 2
version using System.Net.Mail ) that the delimiter needs to be a comma and not
a semicolon. Is there a connection here? 2 1948
In .NET 2.0, you should be using the classes in the System.Net.Mail
namespace. The MailMessage class has collections for To, Bcc, and Cc fields
so that you don't have to worry about delimiting these lists yourself.
The documentation for the Bcc, To and Cc properties all state that the
list should be semi-colon delimited.
As a general statement, you should have some sort of exception handling
in your program, so that when fail conditions occur on the customer site,
you can get log information easily for situations like this.
Unfortunately, without the exception information, it is almost
impossible to determine what's going on.
Are you sure that the SmtpServer property on the SmtpMail class is set
properly? Is there anything on the server which prevents sending bulk mail
out in this fashion?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"quilkin" <qu*****@discus sions.microsoft .comwrote in message
news:A0******** *************** ***********@mic rosoft.com...
Hi
We are using system.web.mail with .Net 1.1 (.Net 2.00 under development)
and
some of our users are reporting that having multiple names in the 'to'
field
for sending emails (using smtpmail) causes the email not to be sent. Email
server software is Exchange SP2, but other users (including our own test
site) use the same without any problems. The multiple names in the 'to'
list
are separated with semicolons.
Unfortunately we don't have the text of any exception that occurs when the
mail is sent, we could add that and install a test version on the
customer's
PC but these customers are sensitive and won't take kindly to being used
as a
test site.
Any ideas of what could be wrong? I have noticed (in developing the .NET 2
version using System.Net.Mail ) that the delimiter needs to be a comma and
not
a semicolon. Is there a connection here?
Nicholas,
Ok I have now managed to run a small amendment with the exception reported
on the customer's PC . it's the dreaded 'cannot access CDO object...'. But
how can this be when everything works fine with only one name in the list,
and fails with 2 or more?
I have also checked with the user and there's no problem sending to the same
3 'to' adresses from Outlook on the same server.
Another oddity, discovered in testing on this system, is that an email with
the subject
"alarm24041 3 new (51.35.03) 22.56" also gives the 'CDO' error, while exactly
the same email without the brackets, i.e.
"alarm24041 3 new 51.35.03 22.56" works just fine. The brackets give no
problem on other email servers.
"Nicholas Paldino [.NET/C# MVP]" wrote:
In .NET 2.0, you should be using the classes in the System.Net.Mail
namespace. The MailMessage class has collections for To, Bcc, and Cc fields
so that you don't have to worry about delimiting these lists yourself.
The documentation for the Bcc, To and Cc properties all state that the
list should be semi-colon delimited.
As a general statement, you should have some sort of exception handling
in your program, so that when fail conditions occur on the customer site,
you can get log information easily for situations like this.
Unfortunately, without the exception information, it is almost
impossible to determine what's going on.
Are you sure that the SmtpServer property on the SmtpMail class is set
properly? Is there anything on the server which prevents sending bulk mail
out in this fashion?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"quilkin" <qu*****@discus sions.microsoft .comwrote in message
news:A0******** *************** ***********@mic rosoft.com...
Hi
We are using system.web.mail with .Net 1.1 (.Net 2.00 under development)
and
some of our users are reporting that having multiple names in the 'to'
field
for sending emails (using smtpmail) causes the email not to be sent. Email
server software is Exchange SP2, but other users (including our own test
site) use the same without any problems. The multiple names in the 'to'
list
are separated with semicolons.
Unfortunately we don't have the text of any exception that occurs when the
mail is sent, we could add that and install a test version on the
customer's
PC but these customers are sensitive and won't take kindly to being used
as a
test site.
Any ideas of what could be wrong? I have noticed (in developing the .NET 2
version using System.Net.Mail ) that the delimiter needs to be a comma and
not
a semicolon. Is there a connection here?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dmiller23462 |
last post by:
So here's my problem.....I need to set up different email
distributions based on which option in the following Select form has
been chosen....For instance if "Putaway" is chosen it needs to email
User1@here.whatever and User4@here.whatever but if "Loaded" is chosen
it needs to email User2@here.whatever and User3@here.whatever, etc,
etc...
I'm aware that the only thing that really needs to change is the
"Mail.AddAddress" line (at least...
|
by: james00_c |
last post by:
Greetings-
I need to pass multiple email addresses to a "sendto" hidden field in a
form. I need to do that because "CC" and "BCC" are not an option. One
address webmaster@xyz.com would be hardcoded and another say
formuser@xyz would be a user input. A sample of my form looks like:
<table>
<tr>
<td width="100%"> <form name="fname" method="POST"
|
by: Chris Thunell |
last post by:
I am using the following code to send email out in a vb.net web program
through an exchange 2003 server. My web server is on a separate server.
When i try to send email inside the office, it works fine... but when i try
to send email outside the company i get "unable to relay" error message.
Please look at the code, i don't see a way to send username and password
credentials to allow the relaying to occur (I don't want unauthenticated...
|
by: eight02645999 |
last post by:
hi
i currently am using this email function that can send single email
address
def email(HOST,FROM,TO,SUBJECT,BODY,CC=None):
import smtplib
import string, sys
body = string.join((
"From: %s" % FROM,
"To: %s" % TO,
"Subject: %s" % SUBJECT,
|
by: EdWhyatt |
last post by:
Hi all, I hope there is someone out there who can help me out - it has
to be something obvious.
I am simulating mail traffic, and want to include multiple attachments
to my mail. I have created a temporary array containing a number of
files - for now just 2.
Debugging my code, I can see that I am correctly storing the files in
the array, and then 1 by 1 adding one file at a time to the message
header.
| |
by: donet programmer |
last post by:
Is there a way to map multiple email addresses,
for instance emailadd1@domain.com, emailadd2@domain.com.. etc to one
email address emailadd@domain.com such that when an email is sent to
emailadd1 or emailadd2 its received in the emailadd mailbox.
I need this for testing email functionality in a .net application, has
anybody done this sort of mapping.
|
by: krouxsa |
last post by:
Hi There people...
Please help me with this query.
I want to send 1 email to multiple email addresses stored in a database.
Will it be possible?
I'm using SQL Server 2005 and already set up the Database mail. I also tested the mail and it works fine.
My problem is sending mail to multiple emails recipients stored in a Database
|
by: sat1983 |
last post by:
Hi
I am beginner to C Sharp. trying to attach a multiple files to a mail.
I can attach a single file or i can create multiple object of an Attachment class and add to a mail attachment object.
But when i want to do it dynamically to attach multiple file...say my code might be generating one or more files depending on the result set...
I have a temporary variable will keep track of no. of attachments and their path.
|
by: =?Utf-8?B?amZiZXJtZWpvcA==?= |
last post by:
How can I send an email using System.Net.Mail digitally signed?
--
Jose
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |