Thursday, March 29, 2012
MailMessage HTML body - Please Help Urgent
I am having problem sending email to external mailbox using HTML format.
Following is a simplified code that I used to send the email.
Dim myMsg As New MailMessage
Dim htmlBody As String
htmlBody = "<HTML><BODY><A
HREF='http://www.microsoft.com'>Microsoft</A></BODY></HTML>"
myMsg.From = "me@dotnet.itags.org.domain.com"
myMsg.To = "friend@dotnet.itags.org.yourdomain.com"
myMsg.Subject = "Testing HTML"
myMsg.BodyFormat = MailFormat.Html
myMsg.Body = htmlBody
System.Web.Mail.SmtpMail.SmtpServer = "smtpserver.domain.com"
System.Web.Mail.SmtpMail.Send(myMsg)
My SMTP server is an Exchange 2003 server with SP2. When using the same
code to send email to internal mailbox (with our Exchange Organization), the
HTML format was retained. However when email was sent out to external
mailbox (e.g. hotmail, yahoo, gmail), it was converted to plain text. I had
tried using Outlook to send email using HTML format to external mailbox and
it remains as HTML format.
Hope that someone can enlighten me.
Thanks In Advance,
AlexYou don't need to put the HTML tag as a page. Do this and should work:
htmlBody = "<A HREF='http://www.microsoft.com'>Microsoft</A><BR>"
Cheers
Al
"Yukon@.nospam.nospam" wrote:
> Hi,
> I am having problem sending email to external mailbox using HTML format.
> Following is a simplified code that I used to send the email.
> Dim myMsg As New MailMessage
> Dim htmlBody As String
> htmlBody = "<HTML><BODY><A
> HREF='http://www.microsoft.com'>Microsoft</A></BODY></HTML>"
> myMsg.From = "me@.domain.com"
> myMsg.To = "friend@.yourdomain.com"
> myMsg.Subject = "Testing HTML"
> myMsg.BodyFormat = MailFormat.Html
> myMsg.Body = htmlBody
> System.Web.Mail.SmtpMail.SmtpServer = "smtpserver.domain.com"
> System.Web.Mail.SmtpMail.Send(myMsg)
> My SMTP server is an Exchange 2003 server with SP2. When using the same
> code to send email to internal mailbox (with our Exchange Organization), t
he
> HTML format was retained. However when email was sent out to external
> mailbox (e.g. hotmail, yahoo, gmail), it was converted to plain text. I h
ad
> tried using Outlook to send email using HTML format to external mailbox an
d
> it remains as HTML format.
> Hope that someone can enlighten me.
>
> Thanks In Advance,
> Alex
>
>
Hi Al,
I had tried that and it still get converted to plain text.
Thanks,
Alex
"Albert Pascual" <AlbertPascual@.discussions.microsoft.com> wrote in message
news:1F49F255-72D5-4E9E-BDA0-DA5FE449D4C5@.microsoft.com...
> You don't need to put the HTML tag as a page. Do this and should work:
> htmlBody = "<A HREF='http://www.microsoft.com'>Microsoft</A><BR>"
> Cheers
> Al
>
> "Yukon@.nospam.nospam" wrote:
>
MailMessage Problem
but I get the error " The specified string is not in the form required for
an e-mail address." when the "Dim Mailmsg..." line is executed. Since I
haven't defined the from/to yet, I don't understand what it wants? Any
insight on what causes this?
=========================================
Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
Dim Mailmsg As New System.Net.Mail.MailMessage
Mailmsg.To.Clear()
Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name
<toname@dotnet.itags.org.todomain.com>")
Mailmsg.From = New System.Net.Mail.MailAddress("From Name
<fromname@dotnet.itags.org.yourfromdomain.com>")
Mailmsg.Subject = "(subject text)"
Try
Mailmsg.Body = "(message text here)"
obj.Send(Mailmsg)
Catch ex As Exception
Response.Write("Error: " & ex.ToString())
End Try
=========================================re:
> Since I haven't defined the from/to yet
Actually, you *have* defined it, as :
Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name <toname@.todomain.com>")
Mailmsg.From = New System.Net.Mail.MailAddress("From Name <fromname@.yourfromdomain.com>")
It's expecting a mail address in the form :
new MailAddress("somebody@.somewhere.com", "Some Name");
Try :
Mailmsg.To.Add(New System.Net.Mail.MailAddress("toname@.todomain.com", "To Name")
Mailmsg.From = New System.Net.Mail.MailAddress("fromname@.yourfromdomain.com", "From Name")
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
> Using the code below, I am trying to send an email from an ASP.NET 2.0 page but I get the error "
> The specified string is not in the form required for an e-mail address." when the "Dim Mailmsg..."
> line is executed. Since I haven't defined the from/to yet, I don't understand what it wants? Any
> insight on what causes this?
>
> =========================================
> Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
> Dim Mailmsg As New System.Net.Mail.MailMessage
> Mailmsg.To.Clear()
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name <toname@.todomain.com>")
> Mailmsg.From = New System.Net.Mail.MailAddress("From Name <fromname@.yourfromdomain.com>")
> Mailmsg.Subject = "(subject text)"
> Try
> Mailmsg.Body = "(message text here)"
> obj.Send(Mailmsg)
> Catch ex As Exception
> Response.Write("Error: " & ex.ToString())
> End Try
> =========================================
I hsould have added...
See http://msdn2.microsoft.com/en-us/li...ailaddress.aspx
and http://msdn2.microsoft.com/en-us/li...fkf(VS.80).aspx
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:uzKgxteRGHA.4960@.TK2MSFTNGP12.phx.gbl...
> re:
>> Since I haven't defined the from/to yet
> Actually, you *have* defined it, as :
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name <toname@.todomain.com>")
> Mailmsg.From = New System.Net.Mail.MailAddress("From Name <fromname@.yourfromdomain.com>")
> It's expecting a mail address in the form :
> new MailAddress("somebody@.somewhere.com", "Some Name");
> Try :
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("toname@.todomain.com", "To Name")
> Mailmsg.From = New System.Net.Mail.MailAddress("fromname@.yourfromdomain.com", "From Name")
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ===================================
> "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
> news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
>> Using the code below, I am trying to send an email from an ASP.NET 2.0 page but I get the error "
>> The specified string is not in the form required for an e-mail address." when the "Dim
>> Mailmsg..." line is executed. Since I haven't defined the from/to yet, I don't understand what it
>> wants? Any insight on what causes this?
>>
>>
>> =========================================
>> Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
>> Dim Mailmsg As New System.Net.Mail.MailMessage
>> Mailmsg.To.Clear()
>> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name <toname@.todomain.com>")
>> Mailmsg.From = New System.Net.Mail.MailAddress("From Name <fromname@.yourfromdomain.com>")
>> Mailmsg.Subject = "(subject text)"
>> Try
>> Mailmsg.Body = "(message text here)"
>> obj.Send(Mailmsg)
>> Catch ex As Exception
>> Response.Write("Error: " & ex.ToString())
>> End Try
>> =========================================
>>
I'm confused. The error occurs on the "Dim Mailmsg..." before the To and
From addresses are set?
Wayne
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:uzKgxteRGHA.4960@.TK2MSFTNGP12.phx.gbl...
> re:
>> Since I haven't defined the from/to yet
> Actually, you *have* defined it, as :
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name
> <toname@.todomain.com>")
> Mailmsg.From = New System.Net.Mail.MailAddress("From Name
> <fromname@.yourfromdomain.com>")
> It's expecting a mail address in the form :
> new MailAddress("somebody@.somewhere.com", "Some Name");
> Try :
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("toname@.todomain.com", "To
> Name")
> Mailmsg.From = New
> System.Net.Mail.MailAddress("fromname@.yourfromdomain.com", "From Name")
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ===================================
> "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
> news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
>> Using the code below, I am trying to send an email from an ASP.NET 2.0
>> page but I get the error " The specified string is not in the form
>> required for an e-mail address." when the "Dim Mailmsg..." line is
>> executed. Since I haven't defined the from/to yet, I don't understand
>> what it wants? Any insight on what causes this?
>>
>>
>> =========================================
>> Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
>> Dim Mailmsg As New System.Net.Mail.MailMessage
>> Mailmsg.To.Clear()
>> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name
>> <toname@.todomain.com>")
>> Mailmsg.From = New System.Net.Mail.MailAddress("From Name
>> <fromname@.yourfromdomain.com>")
>> Mailmsg.Subject = "(subject text)"
>> Try
>> Mailmsg.Body = "(message text here)"
>> obj.Send(Mailmsg)
>> Catch ex As Exception
>> Response.Write("Error: " & ex.ToString())
>> End Try
>> =========================================
>>
Sure, that's standard OOP procedure.
When you call an object, all of its components are called, too.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
news:uagy1xfRGHA.1608@.TK2MSFTNGP09.phx.gbl...
> I'm confused. The error occurs on the "Dim Mailmsg..." before the To and From addresses are set?
> Wayne
> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
> news:uzKgxteRGHA.4960@.TK2MSFTNGP12.phx.gbl...
>> re:
>>> Since I haven't defined the from/to yet
>>
>> Actually, you *have* defined it, as :
>>
>> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name <toname@.todomain.com>")
>> Mailmsg.From = New System.Net.Mail.MailAddress("From Name <fromname@.yourfromdomain.com>")
>>
>> It's expecting a mail address in the form :
>>
>> new MailAddress("somebody@.somewhere.com", "Some Name");
>>
>> Try :
>>
>> Mailmsg.To.Add(New System.Net.Mail.MailAddress("toname@.todomain.com", "To Name")
>> Mailmsg.From = New System.Net.Mail.MailAddress("fromname@.yourfromdomain.com", "From Name")
>>
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en espaol : http://asp.net.do/foros/
>> ===================================
>> "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
>> news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
>>> Using the code below, I am trying to send an email from an ASP.NET 2.0 page but I get the error
>>> " The specified string is not in the form required for an e-mail address." when the "Dim
>>> Mailmsg..." line is executed. Since I haven't defined the from/to yet, I don't understand what
>>> it wants? Any insight on what causes this?
>>>
>>>
>>> =========================================
>>> Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
>>> Dim Mailmsg As New System.Net.Mail.MailMessage
>>> Mailmsg.To.Clear()
>>> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name <toname@.todomain.com>")
>>> Mailmsg.From = New System.Net.Mail.MailAddress("From Name <fromname@.yourfromdomain.com>")
>>> Mailmsg.Subject = "(subject text)"
>>> Try
>>> Mailmsg.Body = "(message text here)"
>>> obj.Send(Mailmsg)
>>> Catch ex As Exception
>>> Response.Write("Error: " & ex.ToString())
>>> End Try
>>> =========================================
>>>
>>
>>
I have 2.0 example mail code at my blog.
with several different authentication options.
http://spaces.msn.com/sholliday
2/8/2006 entry
"Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
> Using the code below, I am trying to send an email from an ASP.NET 2.0
page
> but I get the error " The specified string is not in the form required for
> an e-mail address." when the "Dim Mailmsg..." line is executed. Since I
> haven't defined the from/to yet, I don't understand what it wants? Any
> insight on what causes this?
>
> =========================================
> Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
> Dim Mailmsg As New System.Net.Mail.MailMessage
> Mailmsg.To.Clear()
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name
> <toname@.todomain.com>")
> Mailmsg.From = New System.Net.Mail.MailAddress("From Name
> <fromname@.yourfromdomain.com>")
> Mailmsg.Subject = "(subject text)"
> Try
> Mailmsg.Body = "(message text here)"
> obj.Send(Mailmsg)
> Catch ex As Exception
> Response.Write("Error: " & ex.ToString())
> End Try
> =========================================
Sloan;
Thanks for that response - You pointed me in what I am sure is the right
direction. I am trying to get the web.config settings right for my
environment (Comcast). It seems that comcast does not require authorization
but there must be something else I overlooked as I am getting the following
error;
Mailbox unavailable. The server response was: [PERMFAIL] comcast.net
requires valid sender domain
I am not sure exactly what it wants - I did try my comcast login and PW but
that had no effect?
Wayne
"sloan" <sloan@.ipass.net> wrote in message
news:ONtKcJgRGHA.252@.TK2MSFTNGP10.phx.gbl...
>I have 2.0 example mail code at my blog.
> with several different authentication options.
> http://spaces.msn.com/sholliday
> 2/8/2006 entry
>
> "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
> news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
>> Using the code below, I am trying to send an email from an ASP.NET 2.0
> page
>> but I get the error " The specified string is not in the form required
>> for
>> an e-mail address." when the "Dim Mailmsg..." line is executed. Since I
>> haven't defined the from/to yet, I don't understand what it wants? Any
>> insight on what causes this?
>>
>>
>> =========================================
>> Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
>> Dim Mailmsg As New System.Net.Mail.MailMessage
>> Mailmsg.To.Clear()
>> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name
>> <toname@.todomain.com>")
>> Mailmsg.From = New System.Net.Mail.MailAddress("From Name
>> <fromname@.yourfromdomain.com>")
>> Mailmsg.Subject = "(subject text)"
>> Try
>> Mailmsg.Body = "(message text here)"
>> obj.Send(Mailmsg)
>> Catch ex As Exception
>> Response.Write("Error: " & ex.ToString())
>> End Try
>> =========================================
>>
>>
I got it working. That last problem was caused by my use of a domain that
had not been activated yet in the From address.
Wayne
"Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
news:emOj$4iRGHA.2536@.tk2msftngp13.phx.gbl...
> Sloan;
> Thanks for that response - You pointed me in what I am sure is the right
> direction. I am trying to get the web.config settings right for my
> environment (Comcast). It seems that comcast does not require
> authorization but there must be something else I overlooked as I am
> getting the following error;
> Mailbox unavailable. The server response was: [PERMFAIL] comcast.net
> requires valid sender domain
> I am not sure exactly what it wants - I did try my comcast login and PW
> but that had no effect?
> Wayne
>
> "sloan" <sloan@.ipass.net> wrote in message
> news:ONtKcJgRGHA.252@.TK2MSFTNGP10.phx.gbl...
>>I have 2.0 example mail code at my blog.
>>
>> with several different authentication options.
>>
>> http://spaces.msn.com/sholliday
>>
>> 2/8/2006 entry
>>
>>
>> "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
>> news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
>>> Using the code below, I am trying to send an email from an ASP.NET 2.0
>> page
>>> but I get the error " The specified string is not in the form required
>>> for
>>> an e-mail address." when the "Dim Mailmsg..." line is executed. Since I
>>> haven't defined the from/to yet, I don't understand what it wants? Any
>>> insight on what causes this?
>>>
>>>
>>> =========================================
>>> Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
>>> Dim Mailmsg As New System.Net.Mail.MailMessage
>>> Mailmsg.To.Clear()
>>> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name
>>> <toname@.todomain.com>")
>>> Mailmsg.From = New System.Net.Mail.MailAddress("From Name
>>> <fromname@.yourfromdomain.com>")
>>> Mailmsg.Subject = "(subject text)"
>>> Try
>>> Mailmsg.Body = "(message text here)"
>>> obj.Send(Mailmsg)
>>> Catch ex As Exception
>>> Response.Write("Error: " & ex.ToString())
>>> End Try
>>> =========================================
>>>
>>>
>>
>>
MailMessage Problem
but I get the error " The specified string is not in the form required for
an e-mail address." when the "Dim Mailmsg..." line is executed. Since I
haven't defined the from/to yet, I don't understand what it wants? Any
insight on what causes this?
========================================
=
Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
Dim Mailmsg As New System.Net.Mail.MailMessage
Mailmsg.To.Clear()
Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name
<toname@dotnet.itags.org.todomain.com>")
Mailmsg.From = New System.Net.Mail.MailAddress("From Name
<fromname@dotnet.itags.org.yourfromdomain.com>")
Mailmsg.Subject = "(subject text)"
Try
Mailmsg.Body = "(message text here)"
obj.Send(Mailmsg)
Catch ex As Exception
Response.Write("Error: " & ex.ToString())
End Try
========================================
=re:
> Since I haven't defined the from/to yet
Actually, you *have* defined it, as :
Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name <toname@.todomain.com
>")
Mailmsg.From = New System.Net.Mail.MailAddress("From Name <fromname@.yourfrom
domain.com>")
It's expecting a mail address in the form :
new MailAddress("somebody@.somewhere.com", "Some Name");
Try :
Mailmsg.To.Add(New System.Net.Mail.MailAddress("toname@.todomain.com", "To Na
me")
Mailmsg.From = New System.Net.Mail.MailAddress("fromname@.yourfromdomain.com"
, "From Name")
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
> Using the code below, I am trying to send an email from an ASP.NET 2.0 pag
e but I get the error "
> The specified string is not in the form required for an e-mail address." w
hen the "Dim Mailmsg..."
> line is executed. Since I haven't defined the from/to yet, I don't underst
and what it wants? Any
> insight on what causes this?
>
> ========================================
=
> Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
> Dim Mailmsg As New System.Net.Mail.MailMessage
> Mailmsg.To.Clear()
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name <toname@.todomain.c
om>")
> Mailmsg.From = New System.Net.Mail.MailAddress("From Name <fromname@.yourfr
omdomain.com>")
> Mailmsg.Subject = "(subject text)"
> Try
> Mailmsg.Body = "(message text here)"
> obj.Send(Mailmsg)
> Catch ex As Exception
> Response.Write("Error: " & ex.ToString())
> End Try
> ========================================
=
>
I hsould have added...
See http://msdn2.microsoft.com/en-us/li...ibrary/1s17zfkf(VS.80).aspx
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:uzKgxteRGHA.4960@.TK2MSFTNGP12.phx.gbl...
> re:
> Actually, you *have* defined it, as :
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name <toname@.todomain.c
om>")
> Mailmsg.From = New System.Net.Mail.MailAddress("From Name <fromname@.yourfr
omdomain.com>")
> It's expecting a mail address in the form :
> new MailAddress("somebody@.somewhere.com", "Some Name");
> Try :
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("toname@.todomain.com", "To
Name")
> Mailmsg.From = New System.Net.Mail.MailAddress("fromname@.yourfromdomain.co
m", "From Name")
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ===================================
> "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
> news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
>
I'm
. The error occurs on the "Dim Mailmsg..." before the To andFrom addresses are set?
Wayne
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:uzKgxteRGHA.4960@.TK2MSFTNGP12.phx.gbl...
> re:
> Actually, you *have* defined it, as :
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name
> <toname@.todomain.com>")
> Mailmsg.From = New System.Net.Mail.MailAddress("From Name
> <fromname@.yourfromdomain.com>")
> It's expecting a mail address in the form :
> new MailAddress("somebody@.somewhere.com", "Some Name");
> Try :
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("toname@.todomain.com", "To
> Name")
> Mailmsg.From = New
> System.Net.Mail.MailAddress("fromname@.yourfromdomain.com", "From Name")
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ===================================
> "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
> news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
>
Sure, that's standard OOP procedure.
When you call an object, all of its components are called, too.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
news:uagy1xfRGHA.1608@.TK2MSFTNGP09.phx.gbl...
> I'm
. The error occurs on the "Dim Mailmsg..." before the To and From addresses are set?
> Wayne
> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
> news:uzKgxteRGHA.4960@.TK2MSFTNGP12.phx.gbl...
>
I have 2.0 example mail code at my blog.
with several different authentication options.
http://spaces.msn.com/sholliday
2/8/2006 entry
"Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
> Using the code below, I am trying to send an email from an ASP.NET 2.0
page
> but I get the error " The specified string is not in the form required for
> an e-mail address." when the "Dim Mailmsg..." line is executed. Since I
> haven't defined the from/to yet, I don't understand what it wants? Any
> insight on what causes this?
>
> ========================================
=
> Dim obj As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient
> Dim Mailmsg As New System.Net.Mail.MailMessage
> Mailmsg.To.Clear()
> Mailmsg.To.Add(New System.Net.Mail.MailAddress("To Name
> <toname@.todomain.com>")
> Mailmsg.From = New System.Net.Mail.MailAddress("From Name
> <fromname@.yourfromdomain.com>")
> Mailmsg.Subject = "(subject text)"
> Try
> Mailmsg.Body = "(message text here)"
> obj.Send(Mailmsg)
> Catch ex As Exception
> Response.Write("Error: " & ex.ToString())
> End Try
> ========================================
=
>
Sloan;
Thanks for that response - You pointed me in what I am sure is the right
direction. I am trying to get the web.config settings right for my
environment (Comcast). It seems that comcast does not require authorization
but there must be something else I overlooked as I am getting the following
error;
Mailbox unavailable. The server response was: [PERMFAIL] comcast.net
requires valid sender domain
I am not sure exactly what it wants - I did try my comcast login and PW but
that had no effect?
Wayne
"sloan" <sloan@.ipass.net> wrote in message
news:ONtKcJgRGHA.252@.TK2MSFTNGP10.phx.gbl...
>I have 2.0 example mail code at my blog.
> with several different authentication options.
> http://spaces.msn.com/sholliday
> 2/8/2006 entry
>
> "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
> news:%233LbeOeRGHA.1204@.TK2MSFTNGP12.phx.gbl...
> page
>
I got it working. That last problem was caused by my use of a domain that
had not been activated yet in the From address.
Wayne
"Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
news:emOj$4iRGHA.2536@.tk2msftngp13.phx.gbl...
> Sloan;
> Thanks for that response - You pointed me in what I am sure is the right
> direction. I am trying to get the web.config settings right for my
> environment (Comcast). It seems that comcast does not require
> authorization but there must be something else I overlooked as I am
> getting the following error;
> Mailbox unavailable. The server response was: [PERMFAIL] comcast.net
> requires valid sender domain
> I am not sure exactly what it wants - I did try my comcast login and PW
> but that had no effect?
> Wayne
>
> "sloan" <sloan@.ipass.net> wrote in message
> news:ONtKcJgRGHA.252@.TK2MSFTNGP10.phx.gbl...
>
MailMessage Question
strMessage = "Message Text";MailMessage objMailMessage = new MailMessage();
objMailMessage.From = txtEmail.Text;
objMailMessage.Subject = "Maytag Contact Information";
objMailMessage.To = "mindreactor@dotnet.itags.org.gish.com";
objMailMessage.Body = strMessage;
objMailMessage.Priority = MailPriority.High;SmtpMail.Send(objMailMessage);
Of course it works great but when I change the .To to the proper address, it doesn't take it... do I have to recompile something or other, destroy the MailMessage Object, what? IT works fine on my test server and when I upload to the main server works fine too... its just when I change the To and reupload, still sends to the old address...
any help would be appreciated...
AarronOnce you made any changes you need to recompile it again.
Hope it helps !!
Okay, total newbie question then...
but I also assumd VS handled all of the recompilation before hand... is the Build option what recompiles?
Thanks,
Aarron
yup the build option or offcourse the rebuild option
as a general rule of thumb ive found with vs.net- if you change soemthing in the design, in the .aspx page, you can just save and you will be fine, but if you change somehting in any of the code or code-behind, like the .cs or .aspx.cs, you have to rebuild
MailMessage question
I have a doubt about the "MailMessage" class in Framework .NET 1.1.
My SMTP server works in a local network that no have access to the internet
for security reasons. And in my network we have an application that send
emails to other department inside the company using us SMTP server that
requires authentication...
I'd like to know why when I use the "MailMessage" Class with "SMTPServer"
class to authenticate in my SMTP Server I have to send an URL as
"http://schemas.microsoft.com/cdo/configuration/"; to authenticate. Is it the
unique mode to send emails in my situation? What's the other mode to send
emails without pass by Microsoft's URL?
Thanks,
--
MSG Servicos de Informatica
Rio de Janeiro / Brazil=?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
<message@.newsgroup.nospam> wrote in
news:B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com:
> I'd like to know why when I use the "MailMessage" Class with
> "SMTPServer"
> class to authenticate in my SMTP Server I have to send an URL as
> "http://schemas.microsoft.com/cdo/configuration/"; to authenticate. Is
> it the unique mode to send emails in my situation? What's the other
> mode to send emails without pass by Microsoft's URL?
You'll need to be using .NET 1.1 to use these fields.
With the System.Web.Mail classes, you'll have to pass in these fields,
since authentication is not supported out of the box.
You might want to take a look at the field:
http://schemas.microsoft.com/cdo/co...ation/sendusing
0 is basic. 1 is NTML. 2 is SMTP authentication.
--
Lucas Tam (REMOVEnntp@.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Thanks for Lucas's inputs,
Hi Friend,
For the "http://schemas.microsoft.com/cdo/configuration/ " , it's not a
normal URL, it's a configuration URI(maybe we should say it's a key for
configuring certain setting of the CDO object):
#http://schemas.microsoft.com/cdo/configuration/ Namespace
http://msdn.microsoft.com/library/e...a_configuration.
asp?frame=true
In fact, the System.Web.Mail components in .net framework is using the CDO
object underlying. And the
http://schemas.microsoft.com/cdo/configuration/ contains a collection of
schema URIs( keys) to identify a set of settings of the CDO component , we
can configure them thorugh these URIs at runtime.
BTW, here is a FAQ site of System.Web.Mail which contains may common
question on the web mail components:
http://www.systemwebmail.com/
Hope also helps. Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
-------
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: MailMessage question
| From: Lucas Tam <REMOVEnntp@.rogers.com>
| References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
| Organization: None of Your Business!!!
| Message-ID: <Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
| User-Agent: Xnews/??.01.30
| X-Face:
#gFwhH/LPM9"eq<Dzb3~[P'7%dS98vHkcFbX;SjezglosS.OP?:tzhHT7o=G03o0%St#;xT bMCCP
'rF/EnVDK-y*a(Qh3J)+Fn]"/&@.D(dOG=ITH!\afBA$O}D";gSvoEpfd
| Reply-To: REMOVEnntp@.rogers.com
| Lines: 25
| X-Complaints-To: abuse@.easynews.com
| X-Complaints-Info: Please be sure to forward a copy of ALL headers
otherwise we will be unable to process your complaint properly.
| Date: Thu, 11 Aug 2005 15:11:22 GMT
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED02.phx.gbl!tornad o.fastwebnet.it!tiscali!ne
wsfeed1.ip.tiscali.net!news.glorb.com!newsfeed2.ea synews.com!easynews.com!ea
synews!easynews-local!fe04.news.easynews.com.POSTED!not-for-mail
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:117418
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
| <message@.newsgroup.nospam> wrote in
| news:B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com:
|
| > I'd like to know why when I use the "MailMessage" Class with
| > "SMTPServer"
| > class to authenticate in my SMTP Server I have to send an URL as
| > "http://schemas.microsoft.com/cdo/configuration/"; to authenticate. Is
| > it the unique mode to send emails in my situation? What's the other
| > mode to send emails without pass by Microsoft's URL?
|
| You'll need to be using .NET 1.1 to use these fields.
|
| With the System.Web.Mail classes, you'll have to pass in these fields,
| since authentication is not supported out of the box.
|
| You might want to take a look at the field:
| http://schemas.microsoft.com/cdo/co...ation/sendusing
|
| 0 is basic. 1 is NTML. 2 is SMTP authentication.
|
| --
| Lucas Tam (REMOVEnntp@.rogers.com)
| Please delete "REMOVE" from the e-mail address when replying.
| http://members.ebay.com/aboutme/coolspot18/
|
And if I do not have internet connection in my intranet where the
application is running? How would I reach
"http://schemas.microsoft.com/cdo/configuration/" ?
WHAT CAN I DO IN THIS SITUATION??
--
MSG Servicos de Informatica
Rio de Janeiro / Brazil
"Steven Cheng[MSFT]" wrote:
> Thanks for Lucas's inputs,
> Hi Friend,
> For the "http://schemas.microsoft.com/cdo/configuration/ " , it's not a
> normal URL, it's a configuration URI(maybe we should say it's a key for
> configuring certain setting of the CDO object):
> #http://schemas.microsoft.com/cdo/configuration/ Namespace
> http://msdn.microsoft.com/library/e...a_configuration.
> asp?frame=true
> In fact, the System.Web.Mail components in .net framework is using the CDO
> object underlying. And the
> http://schemas.microsoft.com/cdo/configuration/ contains a collection of
> schema URIs( keys) to identify a set of settings of the CDO component , we
> can configure them thorugh these URIs at runtime.
> BTW, here is a FAQ site of System.Web.Mail which contains may common
> question on the web mail components:
> http://www.systemwebmail.com/
> Hope also helps. Thanks,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> -------
> | Newsgroups: microsoft.public.dotnet.framework.aspnet
> | Subject: Re: MailMessage question
> | From: Lucas Tam <REMOVEnntp@.rogers.com>
> | References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
> | Organization: None of Your Business!!!
> | Message-ID: <Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
> | User-Agent: Xnews/??.01.30
> | X-Face:
> #gFwhH/LPM9"eq<Dzb3~[P'7%dS98vHkcFbX;SjezglosS.OP?:tzhHT7o=G03o0%St#;xT bMCCP
> 'rF/EnVDK-y*a(Qh3J)+Fn]"/&@.D(dOG=ITH!\afBA$O}D";gSvoEpfd
> | Reply-To: REMOVEnntp@.rogers.com
> | Lines: 25
> | X-Complaints-To: abuse@.easynews.com
> | X-Complaints-Info: Please be sure to forward a copy of ALL headers
> otherwise we will be unable to process your complaint properly.
> | Date: Thu, 11 Aug 2005 15:11:22 GMT
> | Path:
> TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED02.phx.gbl!tornad o.fastwebnet.it!tiscali!ne
> wsfeed1.ip.tiscali.net!news.glorb.com!newsfeed2.ea synews.com!easynews.com!ea
> synews!easynews-local!fe04.news.easynews.com.POSTED!not-for-mail
> | Xref: TK2MSFTNGXA01.phx.gbl
> microsoft.public.dotnet.framework.aspnet:117418
> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> |
> | =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
> | <message@.newsgroup.nospam> wrote in
> | news:B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com:
> |
> | > I'd like to know why when I use the "MailMessage" Class with
> | > "SMTPServer"
> | > class to authenticate in my SMTP Server I have to send an URL as
> | > "http://schemas.microsoft.com/cdo/configuration/"; to authenticate. Is
> | > it the unique mode to send emails in my situation? What's the other
> | > mode to send emails without pass by Microsoft's URL?
> |
> | You'll need to be using .NET 1.1 to use these fields.
> |
> | With the System.Web.Mail classes, you'll have to pass in these fields,
> | since authentication is not supported out of the box.
> |
> | You might want to take a look at the field:
> | http://schemas.microsoft.com/cdo/co...ation/sendusing
> |
> | 0 is basic. 1 is NTML. 2 is SMTP authentication.
> |
> | --
> | Lucas Tam (REMOVEnntp@.rogers.com)
> | Please delete "REMOVE" from the e-mail address when replying.
> | http://members.ebay.com/aboutme/coolspot18/
> |
>
=?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?= <message@.newsgroup.nospam>
wrote in news:0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com:
> And if I do not have internet connection in my intranet where the
> application is running? How would I reach
> "http://schemas.microsoft.com/cdo/configuration/" ?
It's an (xml) schema... not an actual URL.
--
Lucas Tam (REMOVEnntp@.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Yes, "http://schemas.microsoft.com/cdo/configuration/" is just a URI (not
necessarily a valid URL on the internet). It is just the same as other keys
such as:
"urn:microsoft-com:mail", "key_microsoft_mail" ....
Using such schema keys dosn't require the box be connected to the internet,
these buildin schema key will be recognized by the certain processing
application. For example, for the
"http://schemas.microsoft.com/cdo/configuration/"
it'll be recoginzed by the CDO components no matter the components is
running on a isolated box or connected to internet.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
-------
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: MailMessage question
| From: Lucas Tam <REMOVEnntp@.rogers.com>
| References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
<Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
<D$Am$munFHA.3672@.TK2MSFTNGXA01.phx.gbl>
<0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com>
| Organization: None of Your Business!!!
| Message-ID: <Xns96B3D6AE4B9C7nntprogerscom@.127.0.0.1>
| User-Agent: Xnews/??.01.30
| X-Face:
#gFwhH/LPM9"eq<Dzb3~[P'7%dS98vHkcFbX;SjezglosS.OP?:tzhHT7o=G03o0%St#;xT bMCCP
'rF/EnVDK-y*a(Qh3J)+Fn]"/&@.D(dOG=ITH!\afBA$O}D";gSvoEpfd
| Reply-To: REMOVEnntp@.rogers.com
| Lines: 13
| X-Complaints-To: abuse@.easynews.com
| X-Complaints-Info: Please be sure to forward a copy of ALL headers
otherwise we will be unable to process your complaint properly.
| Date: Tue, 16 Aug 2005 01:06:16 GMT
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfe ed2.easynews.com!easynews.
com!easynews!easynews-local!fe02.news.easynews.com.POSTED!not-for-mail
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:118141
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
<message@.newsgroup.nospam>
| wrote in news:0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com:
|
| > And if I do not have internet connection in my intranet where the
| > application is running? How would I reach
| > "http://schemas.microsoft.com/cdo/configuration/" ?
|
| It's an (xml) schema... not an actual URL.
|
| --
| Lucas Tam (REMOVEnntp@.rogers.com)
| Please delete "REMOVE" from the e-mail address when replying.
| http://members.ebay.com/aboutme/coolspot18/
|
Thanks for the answer. This solve my question.
--
MSG Servicos de Informatica
Rio de Janeiro / Brazil
"Steven Cheng[MSFT]" wrote:
> Yes, "http://schemas.microsoft.com/cdo/configuration/" is just a URI (not
> necessarily a valid URL on the internet). It is just the same as other keys
> such as:
> "urn:microsoft-com:mail", "key_microsoft_mail" ....
> Using such schema keys dosn't require the box be connected to the internet,
> these buildin schema key will be recognized by the certain processing
> application. For example, for the
> "http://schemas.microsoft.com/cdo/configuration/"
> it'll be recoginzed by the CDO components no matter the components is
> running on a isolated box or connected to internet.
> Thanks,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> -------
> | Newsgroups: microsoft.public.dotnet.framework.aspnet
> | Subject: Re: MailMessage question
> | From: Lucas Tam <REMOVEnntp@.rogers.com>
> | References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
> <Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
> <D$Am$munFHA.3672@.TK2MSFTNGXA01.phx.gbl>
> <0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com>
> | Organization: None of Your Business!!!
> | Message-ID: <Xns96B3D6AE4B9C7nntprogerscom@.127.0.0.1>
> | User-Agent: Xnews/??.01.30
> | X-Face:
> #gFwhH/LPM9"eq<Dzb3~[P'7%dS98vHkcFbX;SjezglosS.OP?:tzhHT7o=G03o0%St#;xT bMCCP
> 'rF/EnVDK-y*a(Qh3J)+Fn]"/&@.D(dOG=ITH!\afBA$O}D";gSvoEpfd
> | Reply-To: REMOVEnntp@.rogers.com
> | Lines: 13
> | X-Complaints-To: abuse@.easynews.com
> | X-Complaints-Info: Please be sure to forward a copy of ALL headers
> otherwise we will be unable to process your complaint properly.
> | Date: Tue, 16 Aug 2005 01:06:16 GMT
> | Path:
> TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
> ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfe ed2.easynews.com!easynews.
> com!easynews!easynews-local!fe02.news.easynews.com.POSTED!not-for-mail
> | Xref: TK2MSFTNGXA01.phx.gbl
> microsoft.public.dotnet.framework.aspnet:118141
> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> |
> | =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
> <message@.newsgroup.nospam>
> | wrote in news:0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com:
> |
> | > And if I do not have internet connection in my intranet where the
> | > application is running? How would I reach
> | > "http://schemas.microsoft.com/cdo/configuration/" ?
> |
> | It's an (xml) schema... not an actual URL.
> |
> | --
> | Lucas Tam (REMOVEnntp@.rogers.com)
> | Please delete "REMOVE" from the e-mail address when replying.
> | http://members.ebay.com/aboutme/coolspot18/
> |
>
You're welcome :-)
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
-------
| Thread-Topic: MailMessage question
| thread-index: AcWjMpWs1bh8rNtUSlmk+cOvinTrPA==
| X-WBNR-Posting-Host: 200.142.104.78
| From: =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
<message@.newsgroup.nospam>
| References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
<Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
<D$Am$munFHA.3672@.TK2MSFTNGXA01.phx.gbl>
<0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com>
<Xns96B3D6AE4B9C7nntprogerscom@.127.0.0.1>
<z7kEXPgoFHA.3472@.TK2MSFTNGXA01.phx.gbl>
| Subject: Re: MailMessage question
| Date: Wed, 17 Aug 2005 06:50:10 -0700
| Lines: 80
| Message-ID: <F835ADA2-7CED-46C6-B46A-92E7B320704E@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:118572
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Thanks for the answer. This solve my question.
|
|
| --
| MSG Servicos de Informatica
| Rio de Janeiro / Brazil
|
|
| "Steven Cheng[MSFT]" wrote:
|
| > Yes, "http://schemas.microsoft.com/cdo/configuration/" is just a URI
(not
| > necessarily a valid URL on the internet). It is just the same as other
keys
| > such as:
| >
| > "urn:microsoft-com:mail", "key_microsoft_mail" ....
| >
| > Using such schema keys dosn't require the box be connected to the
internet,
| > these buildin schema key will be recognized by the certain processing
| > application. For example, for the
| >
| > "http://schemas.microsoft.com/cdo/configuration/"
| >
| > it'll be recoginzed by the CDO components no matter the components is
| > running on a isolated box or connected to internet.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| > -------
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | Subject: Re: MailMessage question
| > | From: Lucas Tam <REMOVEnntp@.rogers.com>
| > | References: <B1F4512D-EDBC-4DF5-8980-24EAC7C67D86@.microsoft.com>
| > <Xns96AF71D2B206Anntprogerscom@.127.0.0.1>
| > <D$Am$munFHA.3672@.TK2MSFTNGXA01.phx.gbl>
| > <0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com>
| > | Organization: None of Your Business!!!
| > | Message-ID: <Xns96B3D6AE4B9C7nntprogerscom@.127.0.0.1>
| > | User-Agent: Xnews/??.01.30
| > | X-Face:
| >
#gFwhH/LPM9"eq<Dzb3~[P'7%dS98vHkcFbX;SjezglosS.OP?:tzhHT7o=G03o0%St#;xT bMCCP
| > 'rF/EnVDK-y*a(Qh3J)+Fn]"/&@.D(dOG=ITH!\afBA$O}D";gSvoEpfd
| > | Reply-To: REMOVEnntp@.rogers.com
| > | Lines: 13
| > | X-Complaints-To: abuse@.easynews.com
| > | X-Complaints-Info: Please be sure to forward a copy of ALL headers
| > otherwise we will be unable to process your complaint properly.
| > | Date: Tue, 16 Aug 2005 01:06:16 GMT
| > | Path:
| >
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
| >
ne.de!newshub.sdsu.edu!newsfeed.news2me.com!newsfe ed2.easynews.com!easynews.
| > com!easynews!easynews-local!fe02.news.easynews.com.POSTED!not-for-mail
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:118141
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | =?Utf-8?B?TVNHIFNlcnZpY29zIGRlIEluZm9ybWF0aWNh?=
| > <message@.newsgroup.nospam>
| > | wrote in news:0C72C1F1-F29C-45F9-BE29-C13A8C75E8F3@.microsoft.com:
| > |
| > | > And if I do not have internet connection in my intranet where the
| > | > application is running? How would I reach
| > | > "http://schemas.microsoft.com/cdo/configuration/" ?
| > |
| > | It's an (xml) schema... not an actual URL.
| > |
| > | --
| > | Lucas Tam (REMOVEnntp@.rogers.com)
| > | Please delete "REMOVE" from the e-mail address when replying.
| > | http://members.ebay.com/aboutme/coolspot18/
| > |
| >
| >
|
MailMessage proof of delivery
verifies that a MailMessage has been received (or read) to
be sent?not consistently or reliably. This is an option the recipient can deny,
otherwise the spammers would be able to validate addy's WAY too easily.
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"mg" <mg@.theworld.com> wrote in message
news:095c01c3db65$373bed80$a501280a@.phx.gbl...
> Is there any code that will create a return message that
> verifies that a MailMessage has been received (or read) to
> be sent?
MailMessage problems
send mail. I have had mixed results in that it works sometimes and
sometimes it doesn't. I have tried using the IP address to make sure WINS
was not causing problems, but I seem to have the same results.
Does anyone have any suggestions?
Thanks,
BrentUse the Smtp on the webserver. That is what I finally resorted to using.
You can set up access list controls that only the machine itself can send
from it. (stops spammers from using your mail server.)
bill
"Brent Burkart" <Brent.Burkart@.wvmb.com> wrote in message
news:uopIU2AlDHA.1408@.TK2MSFTNGP11.phx.gbl...
> Has anyone else had problems using an Exchange Server as your SMTP server
to
> send mail. I have had mixed results in that it works sometimes and
> sometimes it doesn't. I have tried using the IP address to make sure WINS
> was not causing problems, but I seem to have the same results.
> Does anyone have any suggestions?
> Thanks,
> Brent