Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[1772] SMTP Mailing Application

Last post 09-07-2005 11:42 AM by cicada. 26 replies.
Page 1 of 2 (27 items) 1 2 Next >
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [1772] SMTP Mailing Application

    This thread is for discussions of SMTP Mailing Application.

    • Post Points: 0
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 10-04-2002 6:36 PM In reply to

    • robsaye
    • Not Ranked
    • Joined on 10-04-2002
    • New Member
    • Points 15

    Mail fails in real world

    This code works great on my development machine.

    MailMessage myMail = new MailMessage();
    myMail.From = "me@yahoo.com";
    myMail.To = "hardware@yahoo.com";
    myMail.Subject = EmpCurrent.WholeName + " Has sent Purchase
    Requisition #" + lblReqNumber.Text + " to you for your review.";
    myMail.Priority = MailPriority.Normal; myMail.BodyFormat = MailFormat.Html;
    myMail.Body = "Please review and reject or approve as soon as possible.";
    SmtpMail.Send(myMail);

    But when I install it on a desktop, it gives the following message every time:
    Any Ideas?

    Here is the error message:


    ************** Exception Text **************
    System.Web.HttpException: Could not create 'CDONTS.NewMail' object.
      at System.Web.Mail.LateBoundAccessHelper.get_LateBoundType()
      at System.Web.Mail.CdoNtsHelper.Send(MailMessage message)
      at System.Web.Mail.SmtpMail.Send(MailMessage message)
      at PerfectReqs.PerfectReq.MenuActionSubmitOnClick(Object sender,
    EventArgs e)
      at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
      at System.Windows.Forms.MenuItemData.Execute()
      at System.Windows.Forms.Command.Invoke()
      at System.Windows.Forms.Control.WmCommand(Message& m)
      at System.Windows.Forms.Control.WndProc(Message& m)
      at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
      at System.Windows.Forms.ContainerControl.WndProc(Message& m)
      at System.Windows.Forms.Form.WndProc(Message& m)
      at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
      at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
      at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
    IntPtr wparam, IntPtr lparam)
    • Post Points: 0
  • 02-19-2003 5:37 AM In reply to

    • anonieko
    • Not Ranked
    • Joined on 02-19-2003
    • New Member
    • Points 5
    I think your desktop should also
    have the CDO  dlls installed (registered).
    If you don't want this route,  try to
    create your own mail compnent.  I refer
    you to search google for 'smtp mail component in c#'.

    • Post Points: 0
  • 05-07-2003 9:52 AM In reply to

    • wchandra
    • Not Ranked
    • Joined on 05-07-2003
    • New Member
    • Points 5
    If SmtpServer property is not set, the name of the local SMTP server is used. Set SmtpServer property of the SmtpMail class (Assign IP address) to make it work over the internet.
    • Post Points: 0
  • 05-16-2003 3:34 AM In reply to

    host for we send mail.

    Because, I am a Vietnanese, so my English quite poor.
    I think that, when a source to send a message, we need a host mail to send, but in this source code, I can't see  about any host.
    I tried to send a message, but I can't receive a message which I send.
    Thank a lot.
    Nguyet Anh.
    • Post Points: 0
  • 08-19-2003 3:44 AM In reply to

    • younis
    • Not Ranked
    • Joined on 08-19-2003
    • New Member
    • Points 5

    Mailing Progarm With EXCEPTION

    Hello;

    thank you for your work.
    but when i tried to send an email there was an exciption that say (could not acess 'CDO.Message' object )
    so what can i do??

    thank you.

    Younis Alomoush
    • Post Points: 0
  • 12-29-2003 2:36 AM In reply to

    • swetha
    • Not Ranked
    • Joined on 12-29-2003
    • New Member
    • Points 30

    Could not create 'CDO.Message' object

    Hi,

    I have tried to send the email similar to what you have done, with the exception of specifying the SmtpMail.SmtpServer.

    But when I try to send an email there is an exception that says (Could not create 'CDO.Message' object ) . Can you help me out with this?

    thank you.

    Swetha
    • Post Points: 0
  • 12-29-2003 2:08 PM In reply to

    • sab0t777
    • Not Ranked
    • Joined on 12-26-2003
    • New Member
    • Points 5

    when does smtpmail send the message

    This article is great!  I'm very impressed as a .NET newbie.

    I send 3 messages to myself at interval of 5 minutes.  all three of them arrived about 45 minutes later.

    How does the method work?  Does it queue up a certain number of message & send them at same time.  Is there a way to send the mail messages instantly?

    puzzled!


    • Post Points: 0
  • 01-12-2004 3:39 AM In reply to

    • jjbw
    • Not Ranked
    • Joined on 01-12-2004
    • New Member
    • Points 5

    CDO.Message

    Have you found any solution to this problem yet ? I am experiencing the same issue.
    • Post Points: 0
  • 08-29-2004 8:18 PM In reply to

    • Mehrdad
    • Not Ranked
    • Joined on 08-29-2004
    • New Member
    • Points 25

    CDO.Message

    Hi guys,

    I also have the same problem and REALLY don't know how to come over it. You may have found the solution for it yet I just got it. Could you guys help me too?

    YOu may also contact me directly : mehrdada@shaw.ca
    Thanks
    Mehrdad
    • Post Points: 0
  • 09-17-2004 5:01 AM In reply to

    I want to learn C#, What can i do?

    Hi Guys, can u help with some web sites that i can visit to learn more about .Net platform.

    Cheers
    TK
    • Post Points: 0
  • 05-05-2005 6:08 PM In reply to

    • pressmab
    • Not Ranked
    • Joined on 05-05-2005
    • New Member
    • Points 5

    Found my solution, maybe yours too?

    I know this makes little to no sense, but I too had the exact code working on a .Net app and it too studdenly stopped working.

    One simple line fixed it, reasons unknown, just try this....

    mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout", 60)

    The default value for smtp connection timeout is 30 seconds. I just beefed up that part.  I guess 30 seconds wasn't enough for all SMTP connection (incl. name resolution, user authentication, etc. ).

    Hope this helps,
    Brian
    brian.pressman@iko.com
    • Post Points: 0
  • 05-13-2005 10:00 AM In reply to

    email filedialog component

    please can u let me know how to add filedialog1 component
    • Post Points: 0
  • 06-17-2005 7:01 AM In reply to

    CDO.Message Object

    System.Web.Mail.SmtpMail.SmtpServer = MailServer; // SMTP Server IP
    MailMessage mailMessage = new MailMessage();
    //Set the SMTP Authentication details

    mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpa
    uthenticate", "1");    //basic authentication

    mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendu
    sername", MailUserID ); //set your username here

    mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendp
    assword", MailPassword );    //set your password here

    System.Web.Mail.SmtpMail.Send(mailMessage);

    Nitin Chaudhary
    Email: nitin_chaudhary@yahoo.com
    • Post Points: 0
  • 06-27-2005 10:30 AM In reply to

    CDO.Message

    I try to send an email in C#, it is working in .net installed system. But not working in system where .net is not installed. the exception says (Could not access 'CDO.Message' object ) . Please help me to clear this.

    Thanks & Regards,

    PremLatha.
    • Post Points: 0
Page 1 of 2 (27 items) 1 2 Next >