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

send email in ASP.net2.0

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
5 11086
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Patrick Smacchia | last post by:
Hi, I've just released the book Practical .NET2 and C#2. More info is available on the site http://www.PracticalDOT.NET You can download sample chapters about CLR, Security, Threading/Synchro...
0
by: Dave S | last post by:
I have a lot of forms on our web site that require the user to fill out information and submit it back to us. currently the information comes back as name value pair. The our employee's then has to...
1
by: Winista | last post by:
I have a library that reads PDF file and manipilates its content. And I use SharpZip library to decompress the streams included in PDF file. All well and good. I have 3 lines of my test code that...
4
by: hvj | last post by:
I need to run a .NET1.1 program in a .NET2.0 CLR. The .NET1.1 exe starts correctly in .NET2.0. Now I want to debug in Visual Studio 2005. But when I try to open the .NET1.1 project, Visual Studio...
4
by: InnoCreate | last post by:
Hi everyone, I've developed a couple of asp.net1.1 websites and these are viewable using my mobile phone. I've now moved over to asp.net2 and i'm unable to view asp.net2 websites on my phone. I've...
0
by: Groove | last post by:
(repost!) I have a simple and common scenario. I'm developing pages in VWD and FTP-ing them over to a test servr running Window 2003, NET2 Framework. On my page, I have a DDL that causes a...
1
by: Wells Wang | last post by:
Hi, Everybody: Sorry to bother you. I am trying to use the code below to send an email with asp.net2.0& win XP. But it failed. On my laptop I can use outlook2003 to send email. If you are...
2
by: CBasha | last post by:
HI to all, Here I am working on asp.net2.0 and C# can u pls help me for Sending an email in asp.net2.0 using C#, thanks in Advance ...
7
by: Rob Dob | last post by:
The following code is giving me a timeout problem., no matter what I do I can't send a piece of mail using .net2.0 System.Net.Mail.SmtpClient via port 465 and using ssl, if however I try using...
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: 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
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?
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

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.