473,499 Members | 1,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mail Send Problem

Hi

I a developing on a Windows 2003 Server environment with MS Exchange
2003 installed, using the following code i am able to send e-mail message to
Ad***********@myserver.com but not to any internet address eg
ba***@gmail.com
try
{
MailMessage Message = new MailMessage();
Message.To = "ba***@gmail.com";
Message.From = "ad***********@myserver.com";
Message.Subject = "Testing";
Message.Body = "Some message";

try
{
SmtpMail.SmtpServer = "MYSERVER";
SmtpMail.Send(Message);
}
catch(System.Web.HttpException ehttp)
{
}
TIA
Barry
Nov 19 '05 #1
4 1358
Is that a fake email address in the "From" field?

"barry" wrote:
Hi

I a developing on a Windows 2003 Server environment with MS Exchange
2003 installed, using the following code i am able to send e-mail message to
Ad***********@myserver.com but not to any internet address eg
ba***@gmail.com
try
{
MailMessage Message = new MailMessage();
Message.To = "ba***@gmail.com";
Message.From = "ad***********@myserver.com";
Message.Subject = "Testing";
Message.Body = "Some message";

try
{
SmtpMail.SmtpServer = "MYSERVER";
SmtpMail.Send(Message);
}
catch(System.Web.HttpException ehttp)
{
}
TIA
Barry

Nov 19 '05 #2
Hi Jack

do you expect everything real, including user name and password???

Barry

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
Is that a fake email address in the "From" field?

"barry" wrote:
Hi

I a developing on a Windows 2003 Server environment with MS Exchange
2003 installed, using the following code i am able to send e-mail message to Ad***********@myserver.com but not to any internet address eg
ba***@gmail.com
try
{
MailMessage Message = new MailMessage();
Message.To = "ba***@gmail.com";
Message.From = "ad***********@myserver.com";
Message.Subject = "Testing";
Message.Body = "Some message";

try
{
SmtpMail.SmtpServer = "MYSERVER";
SmtpMail.Send(Message);
}
catch(System.Web.HttpException ehttp)
{
}
TIA
Barry

Nov 19 '05 #3
No! I meant do you use a fake email in the real code, not the post.

My experience is non-existing email account can send within your
domain/network, but they will have trouble when trying to send outside into
the wild. Exchange server will check that. Not sure what server you are using.

"barry" wrote:
Hi Jack

do you expect everything real, including user name and password???

Barry

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
Is that a fake email address in the "From" field?

"barry" wrote:
Hi

I a developing on a Windows 2003 Server environment with MS Exchange
2003 installed, using the following code i am able to send e-mail message to Ad***********@myserver.com but not to any internet address eg
ba***@gmail.com
try
{
MailMessage Message = new MailMessage();
Message.To = "ba***@gmail.com";
Message.From = "ad***********@myserver.com";
Message.Subject = "Testing";
Message.Body = "Some message";

try
{
SmtpMail.SmtpServer = "MYSERVER";
SmtpMail.Send(Message);
}
catch(System.Web.HttpException ehttp)
{
}
TIA
Barry


Nov 19 '05 #4
Hi Jack

No ill feeling meant by the remark, i am using a unregistered
domain, only for development purposes that may be a problem in sending
messages in the wild (as you call it).

Barry

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com...
No! I meant do you use a fake email in the real code, not the post.

My experience is non-existing email account can send within your
domain/network, but they will have trouble when trying to send outside into the wild. Exchange server will check that. Not sure what server you are using.
"barry" wrote:
Hi Jack

do you expect everything real, including user name and password???

Barry

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
Is that a fake email address in the "From" field?

"barry" wrote:

> Hi
>
> I a developing on a Windows 2003 Server environment with MS Exchange > 2003 installed, using the following code i am able to send e-mail

message to
> Ad***********@myserver.com but not to any internet address eg
> ba***@gmail.com
>
>
> try
> {
> MailMessage Message = new MailMessage();
> Message.To = "ba***@gmail.com";
> Message.From = "ad***********@myserver.com";
> Message.Subject = "Testing";
> Message.Body = "Some message";
>
> try
> {
> SmtpMail.SmtpServer = "MYSERVER";
> SmtpMail.Send(Message);
> }
> catch(System.Web.HttpException ehttp)
> {
> }
>
>
> TIA
> Barry
>
>
>


Nov 19 '05 #5

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

Similar topics

6
11161
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
4
8639
by: Trond A. S. Andersen | last post by:
Hi, all! I'm trying to use the System.Web.Mail. "package" combinded with System.Web.Mail.SmtpMail in order to send MS Excel spreadsheets attached to mail messages. However, sending one single...
6
3247
by: John J. Hughes II | last post by:
I have a service that needs to send e-mail alerts. I have been attempting to use the System.Net.Mail function from .NET but this seems to require the IIS be installed and running. Since some of...
3
3248
by: Phil Mc | last post by:
Hi has anyone come accross the problem.... with referance to System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail THIS WORKS FINE mail=new MailMessage(); mail.From =...
1
8153
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
34
18135
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
3
3706
by: Pav | last post by:
Hi, I am developing a small Intranet web application which needs to send mails to our coporate Ids. I am using CDONTS, But my mails never leave Que folder. Not able to find out what the...
10
3307
by: amygdala | last post by:
Hi all, Another problem that has been bugging me for a while now, but which I swept under the rug too long too now is a mail encoding problem at my (shared) webhost. The problem is that on...
1
2863
by: the_ricka | last post by:
Hi all, I'm fairly new to python, but very excited about it's potential. I'm trying to write a simple program that will accept input from a command line and send email. The parameters I used on...
7
9737
by: undbund | last post by:
Hi I am creating a newsletter system. The software should run from desktop computer (localhost) but be able to send email to anyone on the internet. Can you guys give me some ideas on how to...
0
7132
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
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7178
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
5475
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 project—planning, coding, testing,...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.