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

  • Thread starter Thread starter Shaan
  • Start date Start date
S

Shaan

Hi Everybody,

I am incorporating emailing feature in my VB.Net
application. The code is as below. When I send email to
some (e-mail address removed), it sends the email successfully,
but when I send it to (e-mail address removed), 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 = "(e-mail address removed)"
Message.From = "(e-mail address removed)"
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.
 
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"


: Hi Everybody,
:
: I am incorporating emailing feature in my VB.Net
: application. The code is as below. When I send email to
: some (e-mail address removed), it sends the email successfully,
: but when I send it to (e-mail address removed), 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 = "(e-mail address removed)"
: Message.From = "(e-mail address removed)"
: 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.
 
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.
 
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
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?
 
Never mind. I found it.

Ed Bick said:
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

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?
 
Back
Top