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

System.Net.Mail Recipient Rejection

Bob
There seems to be a problem when using System.Net.Mail to send emails to
multiple recipients when one or more of the recipient addresses is incorrect
and the destination SMTP server is using recipient filtering a la Postfix.
Sending to a single bad address ba**@test.com returns the correct error.

Mailbox unavailable. The server response was: <ba**@test.com>: Recipient
address rejected: User unknown in relay recipient table

If I sent a message to go***@test.com,go***@test.com,ba**@test.com
then I get.

Failure sending mail.

and no mail is delivered, whether the recipients are good or bad.

Surely this is wrong?

If I do this the hard way with an SMTP conversation then each address will
be the subject of a separate RCPT TO: line

e.g.

RCPT TO:go***@testdom.com
OK
RCPT TO:go***@testdom.com
OK
RCPT TO:ba**@testdom.com
Recipient address rejected: User unknown in relay recipient table
DATA
Ok
etc etc blah blah
..
OK, Message queued :123456789

Good1 and Good2 both get the message.

Is there a way around this? In these days of directory harvesting spam such
address filtering is very common. Lets consider a long list of recipients in
which one user left the company yesterday. In this scenario none of the good
recipients get a perfectly legit message.

Help will be greatly appreciated.

--
Bob
Jul 4 '06 #1
0 1688

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

Similar topics

2
by: Web Master | last post by:
Hi, I am having a little issue with Jacks Form mail php script. I have installed it and configured the form to get it to work, but for some bizarre reason I have 2 issues I can't seem to debug....
3
by: Michael | last post by:
Hi folks, i have to build a web-application for the internet where the user gets a form where he can fill in his name, adress and so on. He also can provide a credit number. The data will be...
14
by: Mattia | last post by:
I have a very big problem. I must send a single mail to multiple receivers. The number of receivers are very big: approximately 6000 users, but this number increase each year. I find a lot of...
3
by: Opa | last post by:
Hi, I'm trying to send mail from my ASP.NET application using the new System.Net.Mail classes. The code is fairly basic string SMTPServer = "smtp.atlanticbb.net"; SmtpClient client = new...
1
by: maflatoun | last post by:
Hi everyone, I'm coverting some of our code here from the old way of send email in ..net 1.1 to the new .net 2.0. However, everyone I switch the code the new method there is a delay of 1-2...
0
by: Neo Geshel | last post by:
I am experiencing an inconsistency with System.Net.Mail. I have a web form on a site. The form gets filled, and one copy gets sent to the recipient (info@domain.com). This works just fine. ...
2
by: Claire | last post by:
I'm a noob at emailing from code and I need to add email capabilities to my application. The following code completes without exceptions but I'm not receiving any test emails. How do you debug...
5
by: =?Utf-8?B?SmltSm9i?= | last post by:
Hi All, I am using c# to build an application. I want a button that will be able to open a new mail message with an attachment. The new mail message works but I can't get the attachment to work...
0
debasisdas
by: debasisdas | last post by:
The follwing sample code uses predefined package UTL_SMTP to send mail. This package was first available in the version 8.1.7 . create or replace procedure sendmail(sender varchar2,recipient...
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
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
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.