473,657 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using System.Web.Mail without a relay server?

I need to using System.Web.Mail to send out notifications from my
ASP.NET application. Based on what I know, a relay enabled SMTP server
is required. Is there any way I can use a SMTP server which has relay
disabled?

thanks
Nov 18 '05 #1
2 1436
no...
That's like saying I want to drive my car without the key....

You need an accessible server to send the mail through. It can be the same
box or any other accessible SMTP server. In order for the other server to
accept the mail from your server and relay it out, it needs to have relaying
allowed.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Jinsong Liu" <jl**@waveseeke r.com> wrote in message
news:n5******** *************** *********@4ax.c om...
I need to using System.Web.Mail to send out notifications from my
ASP.NET application. Based on what I know, a relay enabled SMTP server
is required. Is there any way I can use a SMTP server which has relay
disabled?

thanks

Nov 18 '05 #2
Maybe I did not make myself clear. I do have access to a SMTP server,
but the relay is not allowed on that server.

My guess is I can still send notification out if my message always
originates from my SMTP server domain. (the from property set to a
valid email address on my SMTP server), even my server does not allow
relay. Am I correct?

thanks
On Fri, 10 Sep 2004 11:18:45 -0500, "Curt_C [MVP]"
<software_AT_da rkfalz.com> wrote:
no...
That's like saying I want to drive my car without the key....

You need an accessible server to send the mail through. It can be the same
box or any other accessible SMTP server. In order for the other server to
accept the mail from your server and relay it out, it needs to have relaying
allowed.


Nov 18 '05 #3

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

Similar topics

3
2653
by: Lu | last post by:
Hi, I have a redhat 9 linux machine running apache 2.0.47, mysql 4.0.15, and php 4.3.4. I have been puzzled by this mail() problem for quite a while, could someone please give me some hint on this? I configured sendmail with a relay so that all outgoing mails go through our organization's exchange mail server: DSexchange.domain.com. The php.ini file specified the path to sendmail: "sendmail_path= /usr/sbin/sendmail -t -i".
1
7075
by: JSzucs | last post by:
I wrote a little code snipet in Asp.Net to send a default message to my outlook email address. That works fine, since the SMTP virtual server default domain is same domain as my outlook mail server: myMessage.To = "jszucs@universalmoney.com" myMail.SmtpServer = "mail.universalmoney.com" But when I try to sent to blabblab@page.nextel.com, I get the following error:
3
1927
by: Shannon Clyde | last post by:
SMTP + relay + auth in an IPSEC tunnel to connect to our primary SMTP mail server (GroupWise) from the Web server looks like it would work fine, but is it the best way? I am aware of CDOSYS and some commercial DLLs that allow devs to send mail from within .ASP and .NET without local SMTP service running. Is there any OTHER way to connect to an external SMTP server for mail delivery from a .NET application?
3
4349
by: pmud | last post by:
Hi, I have ab ASP.Net Application in which I need to send e-mail on button click. Even though my C# code for that is correct.I am getting the following error:: I think the following error can be bcoz of the SMTP virtual server. I cant view the SMTP virtual server in IIS. How to correct this error??? Send failure: System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException:...
0
945
by: James | last post by:
We're attempting to migrate a distributed app from our current Windows 2000 setup to new hardware running Windows Server 2003 SP1. Everything is working great with the exception of any piece of logic attempting to use System.Web.Mail. The error I'm getting is "The transport failed to connect to the server". After many hours of scouring the net, I'm at a loss. Any help would be greatly appreciated, here are the facts: - The local SMTP...
2
1831
by: Terry Olsen | last post by:
I'm running on Windows Server 2003, Exchange 2003, ASP.NET (Framework 1.1) I can send mail using an email client, telnetting in to the SMTP port and manually sending the email, but when I try to use the SmtpMail object to send email (to & from addresses are both on my local SMTP server) I get the following errors. Exception: Could not access 'CDO.Message' object. InnerException: Exception has been thrown by the target of an invocation....
8
1669
by: _spitFIRE | last post by:
Is it possible to run a SMTP server that sends mail to recipients using standard libraries, without using twisted framework, and also without using any relay server?
8
3065
by: | last post by:
I received an unhandles exception in my email form as follows Dim mo As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage mo.Body = "test" mo.To = femi@yahoo.com Dim a As System.Web.Mail.SmtpMail a.Send(mo) Line 8: mo.To = "femi@yahoo.co.uk" Line 9: Dim a As System.Web.Mail.SmtpMail
11
3496
by: Ed Bitzer | last post by:
I have been able using the namespace System.Web.Mail and its method Smtp.mail.send to mail simple text messages to a small group within our 55 and older community. I need help expanding the programs capabilities. Searching this forum I did not find any related information so if I have chosen poorly, I would appreciate a suggestion of a more appropriate dotnet forum. Now what I wish is the ability to send bcc's rather than to: (would be...
0
8421
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8844
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8518
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7354
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
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 we have to send another system

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.