I have an application that sends simple e-mails using SMTP, it no longer
works with a lot of e-mail servers.
Basically the problem seems to be that I am no longer sending a valid logon
sequence. The server says the user is not authorized, if I switch to
Outlook it works.
Code to send authorizion.
this.SendData(" AUTH LOGIN" + CRLF);
string user =
Convert.ToBase6 4String(System. Text.ASCIIEncod ing.ASCII.GetBy tes(this.User)) ;
this.SendData(u ser + CRLF);
string pw =
Convert.ToBase6 4String(System. Text.ASCIIEncod ing.ASCII.GetBy tes(this.Passwo rd));
result = this.SendData(p w + CRLF);
if(result.Start sWith("235"))
break;
This is what outlook is doing per the log file:
[tx] AUTH NTLM
<rx> 334 NTLM supported
[tx] TlRM.....
Any one know how to send NTLM type logon or another methed to work around
this problem?
Regards,
John 5 2227 http://curl.netmirror.org/rfc/ntlm.html looks like a good starting point.
Any reason for not using the System.Web.Mail class that is part of the .NET
framework ? The fields property (with 1.1) allows to define how you'll
access to the SMTP server : http://www.codeproject.com/dotnet/Sy..._SMTP_AUTH.asp
Patrice
--
"John J. Hughes II" <no@invalid.com > a écrit dans le message de
news:e4******** ******@tk2msftn gp13.phx.gbl... I have an application that sends simple e-mails using SMTP, it no longer works with a lot of e-mail servers.
Basically the problem seems to be that I am no longer sending a valid
logon sequence. The server says the user is not authorized, if I switch to Outlook it works.
Code to send authorizion.
this.SendData(" AUTH LOGIN" + CRLF); string user =
Convert.ToBase6 4String(System. Text.ASCIIEncod ing.ASCII.GetBy tes(this.User)) ; this.SendData(u ser + CRLF); string pw =
Convert.ToBase6 4String(System. Text.ASCIIEncod ing.ASCII.GetBy tes(this.Passwo r
d)); result = this.SendData(p w + CRLF); if(result.Start sWith("235")) break;
This is what outlook is doing per the log file:
[tx] AUTH NTLM <rx> 334 NTLM supported [tx] TlRM.....
Any one know how to send NTLM type logon or another methed to work around this problem?
Regards, John
Patrice,
Thanks for the lead...
I would perfer to use the System.Web.Mail and that is what I used in the
first place. I recall running into a problem if IIS was not installed since
it use that or something.
Oh well I have tried again and am getting this error, any suggestion?
Error:Could not access 'CDO.Message' object.
Inner:Exception has been thrown by the target of an invocation.
Stack: at System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj,
String methodName, Object[] args)
at System.Web.Mail .CdoSysHelper.S end(MailMessage message)
at System.Web.Mail .SmtpMail.Send( MailMessage message)
at RAMSComThrd.sen dAlarm..ctor(St ring ac, String num, String data) in
c:\documents and settings\all users\documents \shared
vsp\work\ramsco mthrd\sendalarm .cs:line 70
at MailTest.Form1. btnTest_Click(O bject sender, EventArgs e) in
c:\documents and settings\john @ work\my documents\visua l studio
projects\mailte st\form1.cs:lin e 494
Regards,
John
Yes, you need to install the SMTP service first (IMO this service doesn't
require IIS itself).
Patrice
--
"John J. Hughes II" <no@invalid.com > a écrit dans le message de
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Patrice,
Thanks for the lead...
I would perfer to use the System.Web.Mail and that is what I used in the first place. I recall running into a problem if IIS was not installed
since it use that or something.
Oh well I have tried again and am getting this error, any suggestion?
Error:Could not access 'CDO.Message' object. Inner:Exception has been thrown by the target of an invocation. Stack: at System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String methodName, Object[] args) at System.Web.Mail .CdoSysHelper.S end(MailMessage message) at System.Web.Mail .SmtpMail.Send( MailMessage message) at RAMSComThrd.sen dAlarm..ctor(St ring ac, String num, String data) in c:\documents and settings\all users\documents \shared vsp\work\ramsco mthrd\sendalarm .cs:line 70 at MailTest.Form1. btnTest_Click(O bject sender, EventArgs e) in c:\documents and settings\john @ work\my documents\visua l studio projects\mailte st\form1.cs:lin e 494
Regards, John
Patrice,
Thanks.
Regards,
John www.vbip.com
John J. Hughes II wrote: Patrice,
Thanks.
Regards, John This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steven Burn |
last post by:
My server has POP but only has SMTP if sending to my domain, and not other
domains (such as hotmail). I'm therefore wondering, if anyone knows of any
scripts etc, that will allow me to have a sort of "virtual" SMTP server on
my site?. (I really can't afford to use a third party SMTP mailer).
--
Regards
Steven Burn
|
by: Robert Suffecool |
last post by:
Hello everyone,
I'm having problems getting the virtual SMTP server (in IIS) from
sending an email message that was created from an ASP script. The messages
are stored in the \Inetspb\mailroot\Queue directory but the computer isn't
sending these messages to the Internet. Does anyone know why and how I can
fix this problem?
Sincerely,
|
by: Fernando M. |
last post by:
Hi,
i made a test with smtplib module a few days ago, for sending mails,
and i was wondering if there's another module for running an SMTP
server, so i could make a standalone script for sending mails without
using an external SMTP server.
I've been searching but i'm not sure if there are modules for it, or
anything.
Which ones are my options?
Thanks.
|
by: William Case |
last post by:
Hi Folks,
Does anyone have a line on some well written black box code that will
handle SMTP mailing sessions and can be integrated into a VBA app?
Thanks.
|
by: Guoqi Zheng |
last post by:
Dear Sir,
I wrote an Smtp myself to send email. Everything works fine when I am
sending English email. However, when I send an email with special characters
in it, there is always a problem. I used UTF8 encoding, below the sending
command.
Can someone tell me what did I do wrong? How can I write a smtp component
which can be able to handle special characters?
| |
by: Jack Fox |
last post by:
Suddenly I need to change an email sending program from using SMTP to
Authenticated SMTP (ASMTP), and my old code
SmtpMail.SmtpServer = "my.smtpauth.server";
SmtpMail.Send(Message);
no longer works.
Somehow I need to pass my password to the ASMTP server, but the SmtpMail
object doesn't appear to support this. Is there a work-around?
|
by: |
last post by:
Hi all,
I am trying to send an email in some asp.net code and our SMTP Server
(EXchange) keeps kicking back with this message:-
Mailbox unavailable. The server response was: 5.7.1 Requested action not
taken: message refused
Any ideas? The ip address of the sending server is in the allow relay list
for the smtp server.
|
by: Jerry Spence1 |
last post by:
I am trying, without much luck, to find help in implementing an SMTP
server/relay program from VB2005.
My company produces software to go on customer's PCs. I am trying to
implement email fault reporting back to our support centre, but cannot
assume that the customer has an email account.
I have found several examples showing how to send SMTP, but it always
assumes you are sending to a known SMTP server. It's that actual SMTP...
|
by: peter smith |
last post by:
Hi all.
We already use the SMTP features in .NET for sending SMTP email, but how can
you receive SMTP email using the .NET framework. Basically we need to catch
email from a given address and then invoke our business processes. Any help
or a direction to the right article would be great. We need to work with the
SMTP service installed with IIS.
Thanks :-)
|
by: Marty |
last post by:
I'm having issues sending an email to an "@page.nextel.com" email
address. I can send to any other email address fine, but when I try
the page.nextel.com it gives me this error:
Final-Recipient: XXXXXXX@page.nextel.com
Diagnostic-Code: smtp; 554 message body contains illegal bare CR/LF
characters.
Action: failed
Status: 5.0.0
|
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...
| |
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...
|
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...
|
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 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...
|
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: 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: 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: 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...
| |