By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,962 Members | 1,776 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,962 IT Pros & Developers. It's quick & easy.

send email in ASP.net2.0

P: n/a
Hello,

I've been having a prlbem sending an email using ASP.net 2.0 I can send an
email if “To” address is hotmail, gmail or yahoo but not other addresses.
Does anyone know how I can resolve this problem?

Thank you very much in advance,
Chieko
Mar 12 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Sounds like your mail provider only allows you to route to those type of
addresses from the web server. Why dont you ask them to look into it for
you?

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"momo" <mo**@discussions.microsoft.comwrote in message
news:5A**********************************@microsof t.com...
Hello,

I've been having a prlbem sending an email using ASP.net 2.0 I can send
an
email if "To" address is hotmail, gmail or yahoo but not other addresses.
Does anyone know how I can resolve this problem?

Thank you very much in advance,
Chieko


Mar 12 '07 #2

P: n/a
I've been having a prlbem sending an email using ASP.net 2.0 I can send
an
email if "To" address is hotmail, gmail or yahoo but not other addresses.
Does anyone know how I can resolve this problem?
You can try another SMTP server. This is not necessarily to user your
provider's server.
Mar 13 '07 #3

P: n/a
I tried that but I have a same result. Now my co-worker told me to add the
following code in web.config.

<system.net>
<mailSettings>
<smtp deliveryMethod="PickupDirectoryFromIis">
<network host="host.com"
port="25"
defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>

But I got the error "System.Net.Mail.SmtpException: Cannot get IIS pickup
directory.
at System.Net.Mail.IisPickupDirectory.GetPickupDirect ory()
at System.Net.Mail.SmtpClient.Send(MailMessage message)"

I can't figure out why I get the error even though I am using the exactly
same code. Does anyone know what's going on?

Thank you very much in advance,
Chieko

"Sergey Gorbachev" wrote:
I've been having a prlbem sending an email using ASP.net 2.0 I can send
an
email if "To" address is hotmail, gmail or yahoo but not other addresses.
Does anyone know how I can resolve this problem?

You can try another SMTP server. This is not necessarily to user your
provider's server.
Mar 13 '07 #4

P: n/a
re:
!>"System.Net.Mail.SmtpException: Cannot get IIS pickup directory.
! at System.Net.Mail.IisPickupDirectory.GetPickupDirect ory()

You're missing some code.

See : http://www.systemnetmail.com/faq/4.7.aspx

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"chieko" <ch****@discussions.microsoft.comwrote in message
news:4D**********************************@microsof t.com...
>I tried that but I have a same result. Now my co-worker told me to add the
following code in web.config.

<system.net>
<mailSettings>
<smtp deliveryMethod="PickupDirectoryFromIis">
<network host="host.com"
port="25"
defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>

But I got the error "System.Net.Mail.SmtpException: Cannot get IIS pickup
directory.
at System.Net.Mail.IisPickupDirectory.GetPickupDirect ory()
at System.Net.Mail.SmtpClient.Send(MailMessage message)"

I can't figure out why I get the error even though I am using the exactly
same code. Does anyone know what's going on?

Thank you very much in advance,
Chieko

"Sergey Gorbachev" wrote:
I've been having a prlbem sending an email using ASP.net 2.0 I can send
an
email if "To" address is hotmail, gmail or yahoo but not other addresses.
Does anyone know how I can resolve this problem?

You can try another SMTP server. This is not necessarily to user your
provider's server.

Mar 14 '07 #5

P: n/a
Thanks for people who gave me suggestions. It turned out that " <identity
impersonate="true"/>" in web.config gave me the error. I don't know why it
causes the error, but it works fine after I deleted the line.

Regards,
Chieko

"Juan T. Llibre" wrote:
re:
!>"System.Net.Mail.SmtpException: Cannot get IIS pickup directory.
! at System.Net.Mail.IisPickupDirectory.GetPickupDirect ory()

You're missing some code.

See : http://www.systemnetmail.com/faq/4.7.aspx

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"chieko" <ch****@discussions.microsoft.comwrote in message
news:4D**********************************@microsof t.com...
I tried that but I have a same result. Now my co-worker told me to add the
following code in web.config.

<system.net>
<mailSettings>
<smtp deliveryMethod="PickupDirectoryFromIis">
<network host="host.com"
port="25"
defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>

But I got the error "System.Net.Mail.SmtpException: Cannot get IIS pickup
directory.
at System.Net.Mail.IisPickupDirectory.GetPickupDirect ory()
at System.Net.Mail.SmtpClient.Send(MailMessage message)"

I can't figure out why I get the error even though I am using the exactly
same code. Does anyone know what's going on?

Thank you very much in advance,
Chieko

"Sergey Gorbachev" wrote:
I've been having a prlbem sending an email using ASP.net 2.0 I can send
an
email if "To" address is hotmail, gmail or yahoo but not other addresses.
Does anyone know how I can resolve this problem?

You can try another SMTP server. This is not necessarily to user your
provider's server.


Mar 14 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.