Results 1 to 4 of 4

Thread: Problem sending email

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Santo Domingo,D.N., Dom. Rep.
    Posts
    707

    Talking Problem sending email

    I was using an example (101 c# examples) of to send email.
    I created a setup.
    When i install the program on a server and try to run to send the email it says: Could not found CDO message objet.

    Qs.
    Why?
    The setup HAS TO INSTALL all componets (i suppose)

    What i am doing wrong?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Problem sending email

    What are you using to create your setup package?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Santo Domingo,D.N., Dom. Rep.
    Posts
    707

    Re: Problem sending email

    Quote Originally Posted by Hack
    What are you using to create your setup package?
    The setup and development projects
    The templates: Setup project

  4. #4
    Hyperactive Member vincentg's Avatar
    Join Date
    Jun 2005
    Location
    Chicago IL, USA
    Posts
    261

    Re: Problem sending email

    I have a code here and it works in sending Email, Hope it could help you...

    C# right? You might not need some other "using" there..... I copy and paste it

    VB Code:
    1. using System;
    2. using System.Collections.Generic;
    3. using System.Text;
    4. using System.Net.Mail;
    5.  
    6. namespace PROJECTNAME
    7. {
    8.     class SMTPEmail
    9.     {
    10.         private const string m_ServerSetting = "yourserverinfo.com";      
    11.        
    12.         public SMTPEmail()
    13.         {
    14.  
    15.         }
    16.         public static void SendEmailSMTP(string cFrom, string cTo, string cSubject, string cContent, string cCC)
    17.         {
    18.  
    19.             MailMessage MailMessageRef = new MailMessage(cFrom, cTo, cSubject, cContent);            
    20.             SmtpClient SmtpMailClientRef = new SmtpClient(m_ServerSetting);
    21.             SmtpMailClientRef.Send(MailMessageRef);
    22.         }
    23.     }
    24. }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width