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

Emailing in VB.Net ( Err:553, Domain isn't in my list of allowed rcpthosts )

Hi Everybody,

I am incorporating emailing feature in my VB.Net
application. The code is as below. When I send email to
some XY*@buffalo.edu, it sends the email successfully,
but when I send it to so*****@hotmail.com, it gives the
error message "Err: 553, Domain isn't in my list of
allowed rcpthost" . Can you pls throw some light on
this.. and give me solution..thanx in advance.

Dim Message As System.Web.Mail.MailMessage = New
System.Web.Mail.MailMessage()
Message.To = "XX*@hotmail.com"
Message.From = "XY*@buffalo.edu"
Message.Body = "Test message text"
Message.Subject = "A Test"
Try
'SmtpMail.SmtpServer = ""
SmtpMail.Send(Message)
Catch ex As Exception
MsgBox(ex.Message)
End Try

Its a standalone application, i m not running any server.
Your help will be appreciated.

Best,
Shaan.
Nov 20 '05 #1
5 4891
This isn't a VB.NET issue, it's an issue with the SMTP server, what's
happening is that the SMTP server is not allowing you to bounce mail through
to Hotmail. You'll need to change SMTP servers.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"
"Shaan" <ab********@yahoo.com> wrote in message
news:0b****************************@phx.gbl...
: Hi Everybody,
:
: I am incorporating emailing feature in my VB.Net
: application. The code is as below. When I send email to
: some XY*@buffalo.edu, it sends the email successfully,
: but when I send it to so*****@hotmail.com, it gives the
: error message "Err: 553, Domain isn't in my list of
: allowed rcpthost" . Can you pls throw some light on
: this.. and give me solution..thanx in advance.
:
: Dim Message As System.Web.Mail.MailMessage = New
: System.Web.Mail.MailMessage()
: Message.To = "XX*@hotmail.com"
: Message.From = "XY*@buffalo.edu"
: Message.Body = "Test message text"
: Message.Subject = "A Test"
: Try
: 'SmtpMail.SmtpServer = ""
: SmtpMail.Send(Message)
: Catch ex As Exception
: MsgBox(ex.Message)
: End Try
:
: Its a standalone application, i m not running any server.
: Your help will be appreciated.
:
: Best,
: Shaan.
Nov 20 '05 #2
Thanks for the response. Yes, you are rite , its not
VB.net problem it was something to do with SMTP server. I
found the solution to it, by making my own 127.0.0.1 as
SMTP server. We can find a free SMTP server at
http://www.postcastserver.com/

Its really cool, and in settings of the SMTP server you
can mention you self loop Id and it works prefectly fine
with VB.net application.

Best,
Shaan.
-----Original Message-----
This isn't a VB.NET issue, it's an issue with the SMTP server, what'shappening is that the SMTP server is not allowing you to bounce mail throughto Hotmail. You'll need to change SMTP servers.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"
"Shaan" <ab********@yahoo.com> wrote in message
news:0b****************************@phx.gbl...
: Hi Everybody,
:
: I am incorporating emailing feature in my VB.Net
: application. The code is as below. When I send email to
: some XY*@buffalo.edu, it sends the email successfully,
: but when I send it to so*****@hotmail.com, it gives the
: error message "Err: 553, Domain isn't in my list of
: allowed rcpthost" . Can you pls throw some light on
: this.. and give me solution..thanx in advance.
:
: Dim Message As System.Web.Mail.MailMessage = New
: System.Web.Mail.MailMessage()
: Message.To = "XX*@hotmail.com"
: Message.From = "XY*@buffalo.edu"
: Message.Body = "Test message text"
: Message.Subject = "A Test"
: Try
: 'SmtpMail.SmtpServer = ""
: SmtpMail.Send(Message)
: Catch ex As Exception
: MsgBox(ex.Message)
: End Try
:
: Its a standalone application, i m not running any server.: Your help will be appreciated.
:
: Best,
: Shaan.
.

Nov 20 '05 #3
The below code works fine for me in an ASP.Net app, but when I try to add it
to a VB.Net App, I get an error on this line
Dim Message As System.Web.Mail.MailMessage = New
System.Web.Mail.MailMessage()

when I try to add the line using intellisense, I get stopped after
System.Web, only getting offered UI (no Mail)

What do I need to reference in order to do this in a VB.Net app?
: Dim Message As System.Web.Mail.MailMessage = New
: System.Web.Mail.MailMessage()
: Message.To = "XX*@hotmail.com"
: Message.From = "XY*@buffalo.edu"
: Message.Body = "Test message text"
: Message.Subject = "A Test"
: Try
: 'SmtpMail.SmtpServer = ""
: SmtpMail.Send(Message)
: Catch ex As Exception
: MsgBox(ex.Message)
: End Try

Nov 20 '05 #4
Never mind. I found it.

"Ed Bick" <no******@comcast.net> wrote in message
news:Jo********************@comcast.com...
The below code works fine for me in an ASP.Net app, but when I try to add it to a VB.Net App, I get an error on this line
Dim Message As System.Web.Mail.MailMessage = New

System.Web.Mail.MailMessage()

when I try to add the line using intellisense, I get stopped after
System.Web, only getting offered UI (no Mail)

What do I need to reference in order to do this in a VB.Net app?
: Dim Message As System.Web.Mail.MailMessage = New
: System.Web.Mail.MailMessage()
: Message.To = "XX*@hotmail.com"
: Message.From = "XY*@buffalo.edu"
: Message.Body = "Test message text"
: Message.Subject = "A Test"
: Try
: 'SmtpMail.SmtpServer = ""
: SmtpMail.Send(Message)
: Catch ex As Exception
: MsgBox(ex.Message)
: End Try


Nov 20 '05 #5
Add a reference to "System.Web.dll" through the solution explorer.

"Ed Bick" <no******@comcast.net> wrote in message
news:Jo********************@comcast.com...
The below code works fine for me in an ASP.Net app, but when I try to add it to a VB.Net App, I get an error on this line
Dim Message As System.Web.Mail.MailMessage = New

System.Web.Mail.MailMessage()

when I try to add the line using intellisense, I get stopped after
System.Web, only getting offered UI (no Mail)

What do I need to reference in order to do this in a VB.Net app?
: Dim Message As System.Web.Mail.MailMessage = New
: System.Web.Mail.MailMessage()
: Message.To = "XX*@hotmail.com"
: Message.From = "XY*@buffalo.edu"
: Message.Body = "Test message text"
: Message.Subject = "A Test"
: Try
: 'SmtpMail.SmtpServer = ""
: SmtpMail.Send(Message)
: Catch ex As Exception
: MsgBox(ex.Message)
: End Try


Nov 20 '05 #6

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

Similar topics

2
by: Jonathan M. Rose | last post by:
I am looking for a script that I can sit on an HTML server (Linux, Apache, PHP/Perl/Python/Etc.) that will allow me to do the following things: 1) Post news articles that consists of (i) a title...
2
by: Paul Hudson | last post by:
Ive developed a web based system where somebody can add a news record using ASP and MS Access database connectivity. The new record is inserted into the database and then a formatted email gets...
1
by: Mindy Geac | last post by:
Hello, I'm seaching for the possibility to change Domain/User passwords. And a check for users if the password has to change with the first logon or when the password is expired. thanx, ...
1
by: Stanley Cheung | last post by:
Hi all, I am developing the application for send emailing list, actually, i can perform to send a email 1 by 1 and do it on aspx page. I have a enquiry that how can the application change to...
5
by: Colin Anderson | last post by:
I discovered, with great excitement, this article http://www.davison.uk.net/vb2notes.asp when researching methods for emailing from Access via Notes. Unfortunatly, when I run this I get a...
2
by: Bogdan Zamfir | last post by:
Hi, I have a problem with err.raise I write a class module, and I want to use this mechanism to indicate errors when user set wrong values to properties But it seems the error is never raised...
0
by: Jimmy Ray | last post by:
HI there First time poster, long time lurker I am building a windows class library that will be used on an active server page. The purpose of the library is to copy files from one server to...
3
by: tafs7 | last post by:
My code below is supposed to email me when an error occurs on the application, but it's not emailing anything. Am I missing something? I know the smtp servers I've tried work. I even added a...
2
by: bkendra5 | last post by:
I work for an auction company and we want to make an emailing list. currently we have all the emails coming in through our email, then we just print them and send out each individual email. Our...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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
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,...

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.