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

Home Posts Topics Members FAQ

Send mail when smtp need authorization

Hi, everbody.

How send e-mail if smtp need authorization.
If authorization is not required send email is not problem but I use
SmtpMail.Send(m yMail)

PawelR
Nov 16 '05 #1
4 3788
PawelR,

In this case, you will probably want to use something else. Jon Skeet
likes to mention the Indy project for this kind of thing, and from what I
have seen, it is pretty good:

http://www.indyproject.org

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"PawelR" <pa************ @poczta.onet.pl > wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
Hi, everbody.

How send e-mail if smtp need authorization.
If authorization is not required send email is not problem but I use
SmtpMail.Send(m yMail)

PawelR

Nov 16 '05 #2
Using the CDOSYS schema :

MailMessage mail = new MailMessage();

....

....

mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e",
"1"); //basic authentication

mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/sendusername",
"myAccount" ); //set your username here

mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/sendpassword",
"secret"); //set your password here


See further details and other schema options:

http://msdn.microsoft.com/library/de...ation_enum.asp

Willy.

"PawelR" <pa************ @poczta.onet.pl > wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
Hi, everbody.

How send e-mail if smtp need authorization.
If authorization is not required send email is not problem but I use
SmtpMail.Send(m yMail)

PawelR

Nov 16 '05 #3
hi ,
It can send mail with local SMTP server,but it cannot send with remote SMTP
server yahoo or lycos..
Does Anybody know this problem.

"Willy Denoyette [MVP]" wrote:
Using the CDOSYS schema :

MailMessage mail = new MailMessage();

....

....

mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e",
"1"); //basic authentication

mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/sendusername",
"myAccount" ); //set your username here

mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/sendpassword",
"secret"); //set your password here


See further details and other schema options:

http://msdn.microsoft.com/library/de...ation_enum.asp

Willy.

"PawelR" <pa************ @poczta.onet.pl > wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
Hi, everbody.

How send e-mail if smtp need authorization.
If authorization is not required send email is not problem but I use
SmtpMail.Send(m yMail)

PawelR


Nov 16 '05 #4
yahoo and lycos aren't exposing smtp services.

"mustafa" <mu************ *@hotmail.com> wrote in message
news:7B******** *************** ***********@mic rosoft.com...
hi ,
It can send mail with local SMTP server,but it cannot send with remote
SMTP
server yahoo or lycos..
Does Anybody know this problem.

"Willy Denoyette [MVP]" wrote:
Using the CDOSYS schema :

MailMessage mail = new MailMessage();

....

....

mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e",
"1"); //basic authentication
mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/sendusername",
"myAccount" ); //set your username here
mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/sendpassword",
"secret"); //set your password here


See further details and other schema options:

http://msdn.microsoft.com/library/de...ation_enum.asp

Willy.

"PawelR" <pa************ @poczta.onet.pl > wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
> Hi, everbody.
>
> How send e-mail if smtp need authorization.
> If authorization is not required send email is not problem but I use
> SmtpMail.Send(m yMail)
>
>
>
> PawelR
>
>


Nov 16 '05 #5

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

Similar topics

0
9870
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ********************************** package Celcom.Client;
6
3254
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 my customers are not really happy with having the IIS installed, not being used except to send e-mail this is becoming a problem. I have also tried using a little program from code project for sending e-mail which works great on older servers...
9
4302
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5, VisualStudio2002, VB as programing language. Our test/development version of the web app as hosted on our "localhost" works fine; our "Default SMTP Virtual Server" is running (per the IIS console).
5
8788
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address with this code: MailMessage msgMail = new MailMessage(); msgMail.To = "test@address.com"; msgMail.From = "from@address.com"; msgMail.Subject = "Mail Example Subject";
3
3025
by: RN | last post by:
I am tired of sending mail from the built-in SMTP service for so many reasons (errors are nondescriptive in the event log, it doesn't let me control which IP address it sends from, and it identifies itself as the computer name which is not in domain.com format, triggering spam filter problems). Instead, I want to have my code send through an SMTP server of a company that we pay for mail service. But they require a username and password....
1
1793
by: Sophie | last post by:
Hi, I'm not very good in english so excuse me if I have difficulty to explain my problem. I want to send a mail with VB.net with this code : Option Strict On Public Class Form1 Inherits System.Windows.Forms.Form
14
9128
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my local default SMTP Server and my from address is a valid Yahoo/Hotmail address. I have configures the local SMTP Server to allow the IP Address 127.0.0.1.
3
2326
by: Max | last post by:
hi I used mailmessage object to send the mail, my smtp server don't require authentication, when i try to send the mail it shows error. following is the code to send mail. Dim mymail As New MailMessage Dim smtp As SmtpMail smtp.SmtpServer = "mailhost.gujarat.gov.in" mymail.To = "mahesh@cybersurfindia.com"
7
7730
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee free edition for anti-virus. I use an ISP provider from my country and according to them I do not need to perform authentication while sending mails through their SMTP address. Thus I am using external SMTP server. I don't have IIS installed...
0
8399
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
8827
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...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
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
8606
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
7337
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
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2732
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
2
1622
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 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...

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.