473,322 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Send Mail

Hi All,
I need send e-mail through the form.
I tried this:

---------------------------------------------------
DateTime dt = DateTime.Now;

String sMsg = "<p><font face='Verdana' size='1'>Trinity Systems - Comprar -
Private Label Control - " + dt.Day + "/" + dt.Month + "/" + dt.Year +
"</font></p>" + "<hr color='#C0C0C0' align='left' size='3'>" + "<br> Nome:"
+ TextBoxNome.Text + "<br>E-mail:" + TextBoxEmail.Text;

SmtpMail.SmtpServer = "SMTP.TRINITYSYSTEM.NET.NETSOLMAIL.NET";

MailMessage mail = new MailMessage();

mail.BodyFormat = MailFormat.Html;

mail.To = "co*****@trinitysystems.com.br";

mail.From = TextBoxEmail.Text.Trim();

mail.Subject = "Trinity Systems - Comprar - Private Label Control";

mail.Body = sMsg;

try

{

SmtpMail.Send(mail);

}

catch(System.Exception ex)

{

Response.Write(ex.Message);

Response.Redirect("http://www.trinitysystems.net/error/default.aspx?id=TS001&msg="
+ ex.Message);

}

mail = null;

Response.Redirect("success.htm");

---------------------------------------------------

But I receive this message of server: --> Could not access 'CDO.Message'
object

How to correct this?

Have other way to send mail?
-----------------
ASP.NET 1.0
Windows XP SP2
VisualStudio 2003

Thanks
Nov 16 '05 #1
6 2101
Hi Retf,

see http://www.systemwebmail.com/ for detailed Information.

Regards,
Christian

"Retf" <dy***@terra.com.br> schrieb im Newsbeitrag
news:u9*************@TK2MSFTNGP15.phx.gbl...
Hi All,
I need send e-mail through the form.
I tried this:

---------------------------------------------------
DateTime dt = DateTime.Now;

String sMsg = "<p><font face='Verdana' size='1'>Trinity Systems -
Comprar - Private Label Control - " + dt.Day + "/" + dt.Month + "/" +
dt.Year + "</font></p>" + "<hr color='#C0C0C0' align='left' size='3'>" +
"<br> Nome:" + TextBoxNome.Text + "<br>E-mail:" + TextBoxEmail.Text;

SmtpMail.SmtpServer = "SMTP.TRINITYSYSTEM.NET.NETSOLMAIL.NET";

MailMessage mail = new MailMessage();

mail.BodyFormat = MailFormat.Html;

mail.To = "co*****@trinitysystems.com.br";

mail.From = TextBoxEmail.Text.Trim();

mail.Subject = "Trinity Systems - Comprar - Private Label Control";

mail.Body = sMsg;

try

{

SmtpMail.Send(mail);

}

catch(System.Exception ex)

{

Response.Write(ex.Message);

Response.Redirect("http://www.trinitysystems.net/error/default.aspx?id=TS001&msg="
+ ex.Message);

}

mail = null;

Response.Redirect("success.htm");

---------------------------------------------------

But I receive this message of server: --> Could not access 'CDO.Message'
object

How to correct this?

Have other way to send mail?
-----------------
ASP.NET 1.0
Windows XP SP2
VisualStudio 2003

Thanks

Nov 16 '05 #2
I seemed to get this error all the time when using MailMessage it seemed
that the 'Collaborated Data Objects' or whatever it stands for was finiky so
I binned it for a 3rd party Mail library. DevBizmail I think its called but
the full license is shockingly expensive. There are some good 3rd party
solutions. I hated having to bin it because I hate being beaten but the
pressures of delivering solutions on time got in the way. DevBizmail has a
freeware but it puts a funky little signature at the bottom of the email.

Ian

"Retf" <dy***@terra.com.br> wrote in message
news:u9*************@TK2MSFTNGP15.phx.gbl...
Hi All,
I need send e-mail through the form.
I tried this:

---------------------------------------------------
DateTime dt = DateTime.Now;

String sMsg = "<p><font face='Verdana' size='1'>Trinity Systems - Comprar - Private Label Control - " + dt.Day + "/" + dt.Month + "/" + dt.Year +
"</font></p>" + "<hr color='#C0C0C0' align='left' size='3'>" + "<br> Nome:" + TextBoxNome.Text + "<br>E-mail:" + TextBoxEmail.Text;

SmtpMail.SmtpServer = "SMTP.TRINITYSYSTEM.NET.NETSOLMAIL.NET";

MailMessage mail = new MailMessage();

mail.BodyFormat = MailFormat.Html;

mail.To = "co*****@trinitysystems.com.br";

mail.From = TextBoxEmail.Text.Trim();

mail.Subject = "Trinity Systems - Comprar - Private Label Control";

mail.Body = sMsg;

try

{

SmtpMail.Send(mail);

}

catch(System.Exception ex)

{

Response.Write(ex.Message);

Response.Redirect("http://www.trinitysystems.net/error/default.aspx?id=TS001
&msg=" + ex.Message);

}

mail = null;

Response.Redirect("success.htm");

---------------------------------------------------

But I receive this message of server: --> Could not access 'CDO.Message'
object

How to correct this?

Have other way to send mail?
-----------------
ASP.NET 1.0
Windows XP SP2
VisualStudio 2003

Thanks

Nov 16 '05 #3
I normally get this error message when my email couldn't be deliver
due to incorrect smtp server or email address.
On Tue, 15 Feb 2005 07:16:14 -0300, "Retf" <dy***@terra.com.br> wrote:
Hi All,
I need send e-mail through the form.
I tried this:

---------------------------------------------------
DateTime dt = DateTime.Now;

String sMsg = "<p><font face='Verdana' size='1'>Trinity Systems - Comprar -
Private Label Control - " + dt.Day + "/" + dt.Month + "/" + dt.Year +
"</font></p>" + "<hr color='#C0C0C0' align='left' size='3'>" + "<br> Nome:"
+ TextBoxNome.Text + "<br>E-mail:" + TextBoxEmail.Text;

SmtpMail.SmtpServer = "SMTP.TRINITYSYSTEM.NET.NETSOLMAIL.NET";

MailMessage mail = new MailMessage();

mail.BodyFormat = MailFormat.Html;

mail.To = "co*****@trinitysystems.com.br";

mail.From = TextBoxEmail.Text.Trim();

mail.Subject = "Trinity Systems - Comprar - Private Label Control";

mail.Body = sMsg;

try

{

SmtpMail.Send(mail);

}

catch(System.Exception ex)

{

Response.Write(ex.Message);

Response.Redirect("http://www.trinitysystems.net/error/default.aspx?id=TS001&msg="
+ ex.Message);

}

mail = null;

Response.Redirect("success.htm");

---------------------------------------------------

But I receive this message of server: --> Could not access 'CDO.Message'
object

How to correct this?

Have other way to send mail?
-----------------
ASP.NET 1.0
Windows XP SP2
VisualStudio 2003

Thanks


Nov 16 '05 #4
"Retf" <dy***@terra.com.br> wrote in
news:u9*************@TK2MSFTNGP15.phx.gbl:
But I receive this message of server: --> Could not access 'CDO.Message'
object
CDO is needed for SWM and many systems dont have CDO.
How to correct this?

Have other way to send mail?


Yes - try this:
http://www.codeproject.com/csharp/IndySMTP.asp

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/
Nov 16 '05 #5
Hi Chad,
I love your signature. I think it's so funny and so true.

"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:Xn******************@127.0.0.1...
"Retf" <dy***@terra.com.br> wrote in
news:u9*************@TK2MSFTNGP15.phx.gbl:
But I receive this message of server: --> Could not access 'CDO.Message'
object


CDO is needed for SWM and many systems dont have CDO.
How to correct this?

Have other way to send mail?


Yes - try this:
http://www.codeproject.com/csharp/IndySMTP.asp

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/

Nov 16 '05 #6
"Landi" <Ac********@comcast.net> wrote in news:ufbCe22EFHA.2608
@TK2MSFTNGP10.phx.gbl:
I love your signature. I think it's so funny and so true.


Thanks. Its my personal motto. :)

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
Nov 16 '05 #7

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

Similar topics

15
by: Steve Horrillo | last post by:
I can't figure out why this script won't insert the subject in the email and why can't I control the font and size being used? I'm not sure where to post this. Let me know where if this is OT. ...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
6
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...
1
by: Jens Øster | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
3
by: Jens | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
3
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...
3
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a...
14
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...
15
by: cj | last post by:
How can I get a button in VB to send the contents of a text box via email in a manner similar to the "Send To\Mail Recipient" functionality that you can select via right clicking a file in Windows...
4
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.