Greetings,
I am using Web.Mail.Mailme ssage
along with Web.Mail.SmtpMa il.Send(MailMes sage) method
Now, this sends Email using the Default SMTP server of my REMOTE HOST.
Sadly I have found that many ISP's block mail sent through this method.
I do have an SMTP server included in the Remote Hosting package,
but that SmtpServer requires authentication of outgoing mail.
If I set the SmtpServer property to my domain's SmtpServer
then the mail is never sent because it is not authenticated
with the username and password of the account I am using
as the MailMessage.To property.
Is there a way to pass the username and password of the
account used to send the message through Web.Mail.SmtpMa il.SmtpServer
property??
Thanks in advance,
Severin Sampson 7 4030
Hi,
There isn't anyway of doing this with in System.Web.Mail , which is one of
the reasons why I wrote www.aspNetEmail.com
Sorry,
Dave www.aspNetEmail.com
"sampsons" <sa******@airma il.net> wrote in message
news:be******** @library1.airne ws.net... Greetings,
I am using Web.Mail.Mailme ssage along with Web.Mail.SmtpMa il.Send(MailMes sage) method
Now, this sends Email using the Default SMTP server of my REMOTE HOST.
Sadly I have found that many ISP's block mail sent through this method. I do have an SMTP server included in the Remote Hosting package, but that SmtpServer requires authentication of outgoing mail.
If I set the SmtpServer property to my domain's SmtpServer then the mail is never sent because it is not authenticated with the username and password of the account I am using as the MailMessage.To property.
Is there a way to pass the username and password of the account used to send the message through Web.Mail.SmtpMa il.SmtpServer property??
Thanks in advance, Severin Sampson
Hi,
Look at http://sourceforge.net/projects/opensmtp-net/ for a free open source
SMTP component.
Dom
"dave wanta" <no****@nospam. com> wrote in message
news:OI******** ******@tk2msftn gp13.phx.gbl... Hi, There isn't anyway of doing this with in System.Web.Mail , which is one of the reasons why I wrote www.aspNetEmail.com
Sorry, Dave www.aspNetEmail.com
"sampsons" <sa******@airma il.net> wrote in message news:be******** @library1.airne ws.net... Greetings,
I am using Web.Mail.Mailme ssage along with Web.Mail.SmtpMa il.Send(MailMes sage) method
Now, this sends Email using the Default SMTP server of my REMOTE HOST.
Sadly I have found that many ISP's block mail sent through this method. I do have an SMTP server included in the Remote Hosting package, but that SmtpServer requires authentication of outgoing mail.
If I set the SmtpServer property to my domain's SmtpServer then the mail is never sent because it is not authenticated with the username and password of the account I am using as the MailMessage.To property.
Is there a way to pass the username and password of the account used to send the message through Web.Mail.SmtpMa il.SmtpServer property??
Thanks in advance, Severin Sampson
Why not use cdosys.dll?
--
remove underscores to email
"sampsons" <sa******@airma il.net> wrote in message
news:be******** @library1.airne ws.net... Greetings,
I am using Web.Mail.Mailme ssage along with Web.Mail.SmtpMa il.Send(MailMes sage) method
Now, this sends Email using the Default SMTP server of my REMOTE HOST.
Sadly I have found that many ISP's block mail sent through this method. I do have an SMTP server included in the Remote Hosting package, but that SmtpServer requires authentication of outgoing mail.
If I set the SmtpServer property to my domain's SmtpServer then the mail is never sent because it is not authenticated with the username and password of the account I am using as the MailMessage.To property.
Is there a way to pass the username and password of the account used to send the message through Web.Mail.SmtpMa il.SmtpServer property??
Thanks in advance, Severin Sampson
Hi Sampson,
<Quote>
this sends Email using the Default SMTP server of my REMOTE HOST
</Quote>
<PleaseNote>
The mail message can be delivered either through the SMTP mail service built
into Microsoft Windows 2000 or through an arbitrary SMTP server. Types in
the System.Web.Mail namespace can be used from ASP.NET or from any managed
application.
If the SmtpServer Property is not set, mail is by default queued on a
Windows 2000 system, ensuring that the calling program does not block
network traffic. If the SmtpServer property is set, the mail is delivered
directly to the specified server.
</PleaseNote>
You can specify which SMTP Server you would like to send your mail out to.
<Example>
Dim Message As New System.Web.Mail .MailMessage()
'Recipient's name and e-mail address
Message.To = "Your Name <yo*@xxxxxxxx.c om>"
'Your name and e-mail address
Message.From = "Recipient Name <re*******@xxxx xxx.com>"
Message.Body = "Test message text"
Message.Subject = "A Test"
'Your smtp server
System.Web.Mail .SmtpMail.SmtpS erver = "mail.yourInten dedMailServer.c om"
System.Web.Mail .SmtpMail.Send( Message)
</Example>
hth
--
William T
Chief Software Developer
Software Architect
Softwaremaker.N et Pte Ltd
+++++++++++++++ ++++++++++++++
"Dominic Madden" <do*****@themad dens.info> wrote in message
news:OZ******** ******@TK2MSFTN GP12.phx.gbl... Hi,
Look at http://sourceforge.net/projects/opensmtp-net/ for a free open
source SMTP component.
Dom
"dave wanta" <no****@nospam. com> wrote in message news:OI******** ******@tk2msftn gp13.phx.gbl... Hi, There isn't anyway of doing this with in System.Web.Mail , which is one
of the reasons why I wrote www.aspNetEmail.com
Sorry, Dave www.aspNetEmail.com
"sampsons" <sa******@airma il.net> wrote in message news:be******** @library1.airne ws.net... Greetings,
I am using Web.Mail.Mailme ssage along with Web.Mail.SmtpMa il.Send(MailMes sage) method
Now, this sends Email using the Default SMTP server of my REMOTE HOST.
Sadly I have found that many ISP's block mail sent through this
method. I do have an SMTP server included in the Remote Hosting package, but that SmtpServer requires authentication of outgoing mail.
If I set the SmtpServer property to my domain's SmtpServer then the mail is never sent because it is not authenticated with the username and password of the account I am using as the MailMessage.To property.
Is there a way to pass the username and password of the account used to send the message through Web.Mail.SmtpMa il.SmtpServer property??
Thanks in advance, Severin Sampson
Yes William
But, as stated in original post, my SmtpRemoteServe r requires authentication
of all outgoing emails.
So I need to pass the username and password for the account used in the
MailMessage.Fro m Property.
Severin
"Softwarema ker" <ms**@removethi s.softwaremaker .net> wrote in message
news:ey******** ******@TK2MSFTN GP10.phx.gbl... Hi Sampson,
<Quote> this sends Email using the Default SMTP server of my REMOTE HOST </Quote>
<PleaseNote> The mail message can be delivered either through the SMTP mail service
built into Microsoft Windows 2000 or through an arbitrary SMTP server. Types in the System.Web.Mail namespace can be used from ASP.NET or from any managed application.
If the SmtpServer Property is not set, mail is by default queued on a Windows 2000 system, ensuring that the calling program does not block network traffic. If the SmtpServer property is set, the mail is delivered directly to the specified server. </PleaseNote>
You can specify which SMTP Server you would like to send your mail out to.
<Example> Dim Message As New System.Web.Mail .MailMessage() 'Recipient's name and e-mail address Message.To = "Your Name <yo*@xxxxxxxx.c om>" 'Your name and e-mail address Message.From = "Recipient Name <re*******@xxxx xxx.com>" Message.Body = "Test message text" Message.Subject = "A Test" 'Your smtp server System.Web.Mail .SmtpMail.SmtpS erver = "mail.yourInten dedMailServer.c om" System.Web.Mail .SmtpMail.Send( Message) </Example>
hth
-- William T Chief Software Developer Software Architect Softwaremaker.N et Pte Ltd
+++++++++++++++ ++++++++++++++
"Dominic Madden" <do*****@themad dens.info> wrote in message news:OZ******** ******@TK2MSFTN GP12.phx.gbl... Hi,
Look at http://sourceforge.net/projects/opensmtp-net/ for a free open source SMTP component.
Dom
"dave wanta" <no****@nospam. com> wrote in message news:OI******** ******@tk2msftn gp13.phx.gbl... Hi, There isn't anyway of doing this with in System.Web.Mail , which is one of the reasons why I wrote www.aspNetEmail.com
Sorry, Dave www.aspNetEmail.com
"sampsons" <sa******@airma il.net> wrote in message news:be******** @library1.airne ws.net... > Greetings, > > I am using Web.Mail.Mailme ssage > along with Web.Mail.SmtpMa il.Send(MailMes sage) method > > Now, this sends Email using the Default SMTP server of my REMOTE
HOST. > > Sadly I have found that many ISP's block mail sent through this method. > I do have an SMTP server included in the Remote Hosting package, > but that SmtpServer requires authentication of outgoing mail. > > If I set the SmtpServer property to my domain's SmtpServer > then the mail is never sent because it is not authenticated > with the username and password of the account I am using > as the MailMessage.To property. > > Is there a way to pass the username and password of the > account used to send the message through
Web.Mail.SmtpMa il.SmtpServer > property?? > > Thanks in advance, > Severin Sampson > >
System.Web.Mail does not support authentication. you will have to use cdo
com library directly or get a third party control that does support
authentication.
if you only need 1 account you can setup the iis smtp server as a relay to
your real smtp server and use System.Web.Mail (this is what I do).
-- bruce (sqlwork.com)
"sampsons" <sa******@airma il.net> wrote in message
news:be******** @library2.airne ws.net... Yes William
But, as stated in original post, my SmtpRemoteServe r requires
authentication of all outgoing emails.
So I need to pass the username and password for the account used in the MailMessage.Fro m Property.
Severin
"Softwarema ker" <ms**@removethi s.softwaremaker .net> wrote in message news:ey******** ******@TK2MSFTN GP10.phx.gbl... Hi Sampson,
<Quote> this sends Email using the Default SMTP server of my REMOTE HOST </Quote>
<PleaseNote> The mail message can be delivered either through the SMTP mail service built into Microsoft Windows 2000 or through an arbitrary SMTP server. Types
in the System.Web.Mail namespace can be used from ASP.NET or from any
managed application.
If the SmtpServer Property is not set, mail is by default queued on a Windows 2000 system, ensuring that the calling program does not block network traffic. If the SmtpServer property is set, the mail is
delivered directly to the specified server. </PleaseNote>
You can specify which SMTP Server you would like to send your mail out
to. <Example> Dim Message As New System.Web.Mail .MailMessage() 'Recipient's name and e-mail address Message.To = "Your Name <yo*@xxxxxxxx.c om>" 'Your name and e-mail address Message.From = "Recipient Name <re*******@xxxx xxx.com>" Message.Body = "Test message text" Message.Subject = "A Test" 'Your smtp server System.Web.Mail .SmtpMail.SmtpS erver = "mail.yourInten dedMailServer.c om" System.Web.Mail .SmtpMail.Send( Message) </Example>
hth
-- William T Chief Software Developer Software Architect Softwaremaker.N et Pte Ltd
+++++++++++++++ ++++++++++++++
"Dominic Madden" <do*****@themad dens.info> wrote in message news:OZ******** ******@TK2MSFTN GP12.phx.gbl... Hi,
Look at http://sourceforge.net/projects/opensmtp-net/ for a free open source SMTP component.
Dom
"dave wanta" <no****@nospam. com> wrote in message news:OI******** ******@tk2msftn gp13.phx.gbl... > Hi, > There isn't anyway of doing this with in System.Web.Mail , which is
one of > the reasons why I wrote www.aspNetEmail.com > > Sorry, > Dave > www.aspNetEmail.com > > > "sampsons" <sa******@airma il.net> wrote in message > news:be******** @library1.airne ws.net... > > Greetings, > > > > I am using Web.Mail.Mailme ssage > > along with Web.Mail.SmtpMa il.Send(MailMes sage) method > > > > Now, this sends Email using the Default SMTP server of my REMOTE HOST. > > > > Sadly I have found that many ISP's block mail sent through this
method. > > I do have an SMTP server included in the Remote Hosting package, > > but that SmtpServer requires authentication of outgoing mail. > > > > If I set the SmtpServer property to my domain's SmtpServer > > then the mail is never sent because it is not authenticated > > with the username and password of the account I am using > > as the MailMessage.To property. > > > > Is there a way to pass the username and password of the > > account used to send the message through Web.Mail.SmtpMa il.SmtpServer > > property?? > > > > Thanks in advance, > > Severin Sampson > > > > > >
CDOSYS supports username and password authentication, and version 1.1
of the .NET Framework added the Fields property to the MailMessage
class, which lets you set arbitrary fields of the underlying CDOSYS
object. I haven't tested it, but something like this should work:
MailMessage m = new MailMessage();
<configure message>
m.Fields["http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e"]=1;
m.Fields["http://schemas.microso ft.com/cdo/configuration/sendusername"]="user";
m.Fields["http://schemas.microso ft.com/cdo/configuration/sendpassword"]="pass";
SmtpMail.Send(m );
See this article for more information about CDOSYS authentication: http://msdn.microsoft.com/library/de...nformation.asp
"bruce barker" <no***********@ safeco.com> wrote in message news:<Ou******* *******@TK2MSFT NGP11.phx.gbl>. .. System.Web.Mail does not support authentication. you will have to use cdo com library directly or get a third party control that does support authentication.
if you only need 1 account you can setup the iis smtp server as a relay to your real smtp server and use System.Web.Mail (this is what I do).
-- bruce (sqlwork.com)
"sampsons" <sa******@airma il.net> wrote in message news:be******** @library2.airne ws.net... Yes William
But, as stated in original post, my SmtpRemoteServe r requires authentication of all outgoing emails.
So I need to pass the username and password for the account used in the MailMessage.Fro m Property.
Severin
"Softwarema ker" <ms**@removethi s.softwaremaker .net> wrote in message news:ey******** ******@TK2MSFTN GP10.phx.gbl... Hi Sampson,
<Quote> this sends Email using the Default SMTP server of my REMOTE HOST </Quote>
<PleaseNote> The mail message can be delivered either through the SMTP mail service built into Microsoft Windows 2000 or through an arbitrary SMTP server. Types in the System.Web.Mail namespace can be used from ASP.NET or from any managed application.
If the SmtpServer Property is not set, mail is by default queued on a Windows 2000 system, ensuring that the calling program does not block network traffic. If the SmtpServer property is set, the mail is delivered directly to the specified server. </PleaseNote>
You can specify which SMTP Server you would like to send your mail out to. <Example> Dim Message As New System.Web.Mail .MailMessage() 'Recipient's name and e-mail address Message.To = "Your Name <yo*@xxxxxxxx.c om>" 'Your name and e-mail address Message.From = "Recipient Name <re*******@xxxx xxx.com>" Message.Body = "Test message text" Message.Subject = "A Test" 'Your smtp server System.Web.Mail .SmtpMail.SmtpS erver = "mail.yourInten dedMailServer.c om" System.Web.Mail .SmtpMail.Send( Message) </Example>
hth
-- William T Chief Software Developer Software Architect Softwaremaker.N et Pte Ltd
+++++++++++++++ ++++++++++++++
"Dominic Madden" <do*****@themad dens.info> wrote in message news:OZ******** ******@TK2MSFTN GP12.phx.gbl... > Hi, > > Look at http://sourceforge.net/projects/opensmtp-net/ for a free open source > SMTP component. > > Dom > > "dave wanta" <no****@nospam. com> wrote in message > news:OI******** ******@tk2msftn gp13.phx.gbl... > > Hi, > > There isn't anyway of doing this with in System.Web.Mail , which is one of > > the reasons why I wrote www.aspNetEmail.com > > > > Sorry, > > Dave > > www.aspNetEmail.com > > > > > > "sampsons" <sa******@airma il.net> wrote in message > > news:be******** @library1.airne ws.net... > > > Greetings, > > > > > > I am using Web.Mail.Mailme ssage > > > along with Web.Mail.SmtpMa il.Send(MailMes sage) method > > > > > > Now, this sends Email using the Default SMTP server of my REMOTE HOST. > > > > > > Sadly I have found that many ISP's block mail sent through this method. > > > I do have an SMTP server included in the Remote Hosting package, > > > but that SmtpServer requires authentication of outgoing mail. > > > > > > If I set the SmtpServer property to my domain's SmtpServer > > > then the mail is never sent because it is not authenticated > > > with the username and password of the account I am using > > > as the MailMessage.To property. > > > > > > Is there a way to pass the username and password of the > > > account used to send the message through Web.Mail.SmtpMa il.SmtpServer > > > property?? > > > > > > Thanks in advance, > > > Severin Sampson > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: David |
last post by:
I have an email function in a vb.net client application that I’m having
trouble with.
Instead of using the smtpserver that I assign it, it insists on using the
local smtpserver. If I stop the local smtpserver, it will wait until I turn
it back on. It does this even when I run the application from a network
location.
I have tried assigning the remote smtpserver through both: smtpserver =
“smtpservername” and...
|
by: Johnny M |
last post by:
using Access 2003
Pardon the subject line, but I don't have a better word for this
strange
behavior (or behavior I don't understand!!!)
I have a class module named DepreciationFactor. One of the properties
is a follows
(irrelevant code omitted):
|
by: Bob Cummings |
last post by:
Greetings
I hope this is the correct newsgroup. I am working on a senior project
for school. One of the requirement is to have the functionality of send
email reminders from our web application. No problem we thought. We
set the value of smtpserver in the web.config file. That way we could
develop on campus and when we went out to the company that was actually
going to use this product we could just change the key in the web.config....
|
by: EO |
last post by:
Could someone help me understand why the following seems to be an effective
band-aid for CDO object errors?
smtpmail.smtpserver.insert(0,"localhost")
Looking at the documentation on smtpmail.smtpserver at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebmailsmtpmailclasssmtpservertopic.asp
there is nothing documented about an insert method. Is this some generic
method that's always around? Is...
|
by: SirPyros |
last post by:
I am creating a mass mailer web app. I was wondering if there was a big
performance difference between adding all of the email addresses to the
mailmessage Bcc property or simply sending a new mail message for each
recipient.
The reason I ask if because I want to be able to add a link with the
Recipient ID as a query string parameter for people to unsubscribe from
the list.
Only way I see of doing this is to send each email separately.
| |
by: Brian Young |
last post by:
Hi all.
I'm using the Property Grid control in a control to manage a windows service
we have developed here. The windows service runs a set of other jobs that
need to be managed. The control is used to view the state of the running
jobs and schedule new jobs. The control also runs in the context of
Internet Explorer (we do this so the administrators of the jobs can always
receive the latest control). The property grid is used to...
|
by: Volker Jobst |
last post by:
Hi,
The following code works fine as long as I don't use a smtp-server which
requires authentication:
Sub sendMail()
Dim sfrom As String = TextBox1.Text
Dim sto As String = TextBox2.Text
Dim ssubject As String = TextBox3.Text
Dim sbody As String = RichTextBox1.Text
|
by: Lauren Wilson |
last post by:
Owning your ideas: An essential tool for freedom
By Daniel Son
Thinking about going into business? Have an idea that you think will
change the world? What if you were told that there was no way you
could prevent someone from stealing your idea and exploiting it to make a profit? What
incentive would there be for you to be innovative, creative and
ambitious if you couldnt be sure that your ideas would be protected?
Enter intellectual...
|
by: destiple |
last post by:
I'm having issues with an aspx script. It is rejecting any submissions from people with gmail accounts.
Could this be because the smtp server it is trying to use doesn't exists or allow outgoing mail?
My smtp server (smtpout.secureserver.net) requires authentication.
What can I do about this?
My script is below:
|
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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,...
|
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, and deploymentwithout 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...
|
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |