Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion SmtpServer Property
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Harder  
View profile  
 More options Jul 11 2003, 2:17 pm
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: mharder...@hotmail.com (Michael Harder)
Date: 11 Jul 2003 11:17:10 -0700
Local: Fri, Jul 11 2003 2:17 pm
Subject: Re: SmtpServer Property
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.microsoft.com/cdo/configuration/smtpauthenticate"]=1;
m.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"]="user";
m.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"]="pass";
SmtpMail.Send(m);

See this article for more information about CDOSYS authentication:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdos...

"bruce barker" <nospam_bru...@safeco.com> wrote in message <news:OupuPZlRDHA.2240@TK2MSFTNGP11.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" <samps...@airmail.net> wrote in message
> news:behl5f$gi5@library2.airnews.net...
> > Yes William

> > But, as stated in original post, my SmtpRemoteServer requires
>  authentication
> > of all outgoing emails.

> > So I need to pass the username and password for the account used in the
> > MailMessage.From Property.

> > Severin

> > "Softwaremaker" <m...@removethis.softwaremaker.net> wrote in message
> > news:ey$AOXoQDHA.3016@TK2MSFTNGP10.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 <y...@xxxxxxxx.com>"
> > > 'Your name and e-mail address
> > > Message.From = "Recipient Name <recipi...@xxxxxxx.com>"
> > > Message.Body = "Test message text"
> > > Message.Subject = "A Test"
> > > 'Your smtp server
> > > System.Web.Mail.SmtpMail.SmtpServer = "mail.yourIntendedMailServer.com"
> > > System.Web.Mail.SmtpMail.Send(Message)
> > > </Example>

> > > hth

> > > --
> > > William T
> > > Chief Software Developer
> > > Software Architect
> > > Softwaremaker.Net Pte Ltd

> > > +++++++++++++++++++++++++++++

> > > "Dominic Madden" <domi...@themaddens.info> wrote in message
> > > news:OZN1iPkQDHA.1712@TK2MSFTNGP12.phx.gbl...
> > > > Hi,

> > > > Look at http://sourceforge.net/projects/opensmtp-net/ for a free open
>  source
> > > > SMTP component.

> > > > Dom

> > > > "dave wanta" <nos...@nospam.com> wrote in message
> > > > news:OIORCfZQDHA.3192@tk2msftngp13.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" <samps...@airmail.net> wrote in message
> > > > > news:be1uji$ple@library1.airnews.net...
> > > > > > Greetings,

> > > > > > I am using Web.Mail.Mailmessage
> > > > > > along with Web.Mail.SmtpMail.Send(MailMessage) 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.SmtpMail.SmtpServer
> > > > > > property??

> > > > > > Thanks in advance,
> > > > > > Severin Sampson


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.