473,507 Members | 4,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error sending smtp mail

z f
Hi,

i'm sending mail from the aspx page on the server.
it is running on hosting,
so i configure the System.Web.Mail.SmtpMail.SmtpServer property to my mail
server.
but problem is that sender email is also configurable and since the sender
email is not from the SMTP server same host, it is not allows to send.
i need to ba able to configure the SMTP Auth to be authenticated to
different user from the sender email, but i didn't find methods for that in
the object.
what should be the way?

might i be able to use the MailMessage Headers property for that?

The Error
The server rejected one or more recipient addresses. The server response
was: 550 You must check your mail from this IP or SMTP Auth before sending
to to@yahoo.com
TIA, z.


Nov 18 '05 #1
4 2580
z f,

Unfortunately SmtpMail does not support SMTP AUTH.

You can use this alternate implementation:
http://www.codeproject.com/csharp/sm...et=smtpemailer

--
Hope this helps,
Zeeshan Mustafa, MCSD
"z f" <zi**@info-scope.co.il> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

i'm sending mail from the aspx page on the server.
it is running on hosting,
so i configure the System.Web.Mail.SmtpMail.SmtpServer property to my mail
server.
but problem is that sender email is also configurable and since the sender
email is not from the SMTP server same host, it is not allows to send.
i need to ba able to configure the SMTP Auth to be authenticated to
different user from the sender email, but i didn't find methods for that in the object.
what should be the way?

might i be able to use the MailMessage Headers property for that?

The Error
The server rejected one or more recipient addresses. The server response
was: 550 You must check your mail from this IP or SMTP Auth before sending
to to@yahoo.com
TIA, z.


Nov 18 '05 #2
With the 1.1 framework SmtpMail does support authentication, but it's
well hidden and in my opinion rather obfuscated because the rest of
SmtpMail provides such a nice abstraction.

You need to use the fields property of the MailMessage object, as in:

mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",1);

(The value of 1 means "basic authentication", a value of 2 means NTLM)

Official but sparse documentation is at the following link:
http://msdn.microsoft.com/library/de...figuration.asp

A complete example is here:
http://www.codeproject.com/dotnet/Sy..._SMTP_AUTH.asp

--
Scott
http://www.OdeToCode.com
On Tue, 6 Jul 2004 12:31:54 +0500, "M. Zeeshan Mustafa"
<ze*****@no-spm.please.zeeshan.net> wrote:
z f,

Unfortunately SmtpMail does not support SMTP AUTH.

You can use this alternate implementation:
http://www.codeproject.com/csharp/sm...et=smtpemailer


Nov 18 '05 #3
With the 1.1 framework SmtpMail does support authentication, but it's
well hidden and in my opinion rather obfuscated because the rest of
SmtpMail provides such a nice abstraction.

You need to use the fields property of the MailMessage object, as in:

mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",1);

(The value of 1 means "basic authentication", a value of 2 means NTLM)

Official but sparse documentation is at the following link:
http://msdn.microsoft.com/library/de...figuration.asp

A complete example is here:
http://www.codeproject.com/dotnet/Sy..._SMTP_AUTH.asp

--
Scott
http://www.OdeToCode.com
On Tue, 6 Jul 2004 12:31:54 +0500, "M. Zeeshan Mustafa"
<ze*****@no-spm.please.zeeshan.net> wrote:
z f,

Unfortunately SmtpMail does not support SMTP AUTH.

You can use this alternate implementation:
http://www.codeproject.com/csharp/sm...et=smtpemailer


Nov 18 '05 #4
indeed it worked.
do you know if there is a possibility of controlling the encoding of the
user name / password to base 64 / clear text i couldn't understand from the
docs.

thnx!!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:ch********************************@4ax.com...
With the 1.1 framework SmtpMail does support authentication, but it's
well hidden and in my opinion rather obfuscated because the rest of
SmtpMail provides such a nice abstraction.

You need to use the fields property of the MailMessage object, as in:

mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpa
uthenticate",1);
(The value of 1 means "basic authentication", a value of 2 means NTLM)

Official but sparse documentation is at the following link:
http://msdn.microsoft.com/library/de...figuration.asp
A complete example is here:
http://www.codeproject.com/dotnet/Sy..._SMTP_AUTH.asp

--
Scott
http://www.OdeToCode.com
On Tue, 6 Jul 2004 12:31:54 +0500, "M. Zeeshan Mustafa"
<ze*****@no-spm.please.zeeshan.net> wrote:
z f,

Unfortunately SmtpMail does not support SMTP AUTH.

You can use this alternate implementation:
http://www.codeproject.com/csharp/sm...et=smtpemailer

Nov 18 '05 #5

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

Similar topics

9
3195
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on...
3
372
by: dgiagio | last post by:
Hi, I'm creating a SMTP application and I would like to hear opinions about error handling. Currently there are two functions that communicate with the remote peer: ssize_t...
7
6839
by: news | last post by:
Recently our mail from our e-commerce site has been rejected by AOL due to an IP block because someone was using our PHP scripts to send spam. Well, I got that fixed. But our legitimate...
14
9105
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...
3
1844
by: Ibrahim. | last post by:
Hello, Im getting the following error when mail is sent from ASP.NET 2.0 website. CDO.Messaging componenet is used for sending mail. " The message was not able to be transmitted to the SMTP...
2
12139
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used,...
2
6808
by: satnamsarai | last post by:
Using System.Net.Mail: Sometimes I get error 'failure sending mail. Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.' Not sure how...
6
26317
by: Dave Kelly | last post by:
Sorry for the long post, it is easier to discard information than to have to wait for it to arrive. So here goes: This code worked perfectly when I was an Earthlink customer. Sprint decided...
5
4671
by: Don Quijote de Nicaragua | last post by:
Hi, everyone I try to send a simple e-mail witch this Code, but always send me a error messages: "ERROR: Failure sending mail." Thansk You. Don Quijote de Nicaragua. Elder Soto. Dim correo As...
0
7105
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...
0
7308
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,...
0
7371
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...
1
5037
isladogs
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...
0
4702
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...
0
3188
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...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
410
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...

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.