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

invalid mail address gives error in CDO mail

Hi all ,

I'm using CDO from my vb component to fire email. The problem is
whenever one of the email addresses in to, or cc is wrong then none of
the mails are fired even to the correct addresses. It gives an error
like

The server rejected one or more recipient addresses. The server
response was: 550 Relaying denied for <xf*@wre.com>

My code goes like this. Why is the mail server trying to look for the
validation of email ids??I want that atleast the mail should be fired
to the correct email addresses rather than no email fire. Can i
achieve that

Dim iMsg As New CDO.Message
Dim iConf As New CDO.Configuration
With iConf
.Fields.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Fields.Item(cdoSMTPConnectionTimeout) = 10 ' quick timeout
.Fields.Item(cdoSMTPAuthenticate) = cdoBasic
.Fields.Item(cdoSendUserName) = "username"
.Fields.Item(cdoSendPassword) = "password"
.Fields.Item(cdoURLProxyServer) = "server:80"
.Fields.Item(cdoURLProxyBypass) = "<local>"
.Fields.Item(cdoURLGetLatestVersion) = True
.Fields.Update
End With

Set iMsg.Configuration = iConf
With iMsg
.To = strToEmail
.From = strFromEmail
.CC = strCCEmail
.BCC = strBCCEmail
.Subject = strMailSubject
If strMailFormat = "TEXT" Then
.TextBody = strMailBody
Else
.HTMLBody = strMailBody
End If
If strAttachment <> "" Then
.AddAttachment strAttachment
End If
If intPriority = 2 Then
.Fields.Item("urn:schemas:mailheader:X-Priority") =
cdoHigh
.Fields.Update
End If

.Send
End With
Jul 19 '05 #1
2 4792

"newbie" <gu*******@yahoo.co.in> wrote in message
news:d0*************************@posting.google.co m...
Hi all ,

I'm using CDO from my vb component to fire email. The problem is
whenever one of the email addresses in to, or cc is wrong then none of
the mails are fired even to the correct addresses. It gives an error
like

The server rejected one or more recipient addresses. The server
response was: 550 Relaying denied for <xf*@wre.com>


When a relaying "violation" occurs it's rejects the *entire* email. That
error does not mean an email address in invalid, it's has to do with the
"sender" and it's domain. It's not your ASP script/component.

Check you SMTP settings. For a test, allow relaying. You didn't say what
platform your SMTP server was on.

Don Verhagen
Tandem Staffing Solutions, Inc.

Jul 19 '05 #2
I have checked the smtp server relay setting. It does not have any any
name in the list to "select which computer should relay thru this
server"

If all my email ids are correct there is no problem if one of the ids
is wrong then it gives the error and none of the mailos are fired even
to the users whose address is correct.

What can be the problem
"Don Verhagen" <ne**@southeast-florida.com> wrote in message news:<c1*************@ID-181477.news.uni-berlin.de>...
"newbie" <gu*******@yahoo.co.in> wrote in message
news:d0*************************@posting.google.co m...
Hi all ,

I'm using CDO from my vb component to fire email. The problem is
whenever one of the email addresses in to, or cc is wrong then none of
the mails are fired even to the correct addresses. It gives an error
like

The server rejected one or more recipient addresses. The server
response was: 550 Relaying denied for <xf*@wre.com>


When a relaying "violation" occurs it's rejects the *entire* email. That
error does not mean an email address in invalid, it's has to do with the
"sender" and it's domain. It's not your ASP script/component.

Check you SMTP settings. For a test, allow relaying. You didn't say what
platform your SMTP server was on.

Don Verhagen
Tandem Staffing Solutions, Inc.

Jul 19 '05 #3

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

Similar topics

1
by: Fraser S | last post by:
Hi, I am receiving an invalid mail Attachment error when trying to send an attachment using System.Web.Mail. I have read other posts on these errors and have since checked that the asp.net account...
28
by: Brian | last post by:
Hi I want to create a layer that 100% wide, 200 px high and stays at the bottom of the screen, even when the page is scrolled, how do I do this? I have seen it on websites but can't find any...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
11
by: Brad Quinn | last post by:
I'm undergoing an audit where my web application is supposed to handle (gracefully) a bunch of garbage being throwns at it. When I use the following url I get an error; ...
2
by: glenn | last post by:
Hi folks, I am using the Send method in the System.Web.Mail.SmtpMail class. If I pass an address that does not exist or is in anyway invalid, I throw and exception as shown below. I need to...
1
by: samarthkumar84 | last post by:
Hi I had used following code for sending e-mail but facing this problem. I want to send this e-mail in ASP.NET using VB.NET code. I am attaching both code an output. CODE Imports...
10
by: dancer | last post by:
Using ASP.Net and Framework 1.1.4322 File works fine on my computer. On my host server, I get this message. The "SendUsing" configuration value is invalid. Description: An unhandled exception...
2
by: Ronald Raygun | last post by:
I am calling the mail() function in a PHP script and I get the ff error: Warning: mail() : SMTP server response: 501 5.5.4 Invalid Address in C:\test\test.php on line 394 Relevant Info: OS:...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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?

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.