|
-
Mar 2nd, 2006, 11:44 AM
#1
Thread Starter
Fanatic Member
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?
-
Mar 2nd, 2006, 11:46 AM
#2
Re: Problem sending email
What are you using to create your setup package?
-
Mar 2nd, 2006, 12:31 PM
#3
Thread Starter
Fanatic Member
Re: Problem sending email
 Originally Posted by Hack
What are you using to create your setup package?
The setup and development projects
The templates: Setup project
-
Mar 2nd, 2006, 02:37 PM
#4
Hyperactive Member
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:
using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Mail;
namespace PROJECTNAME
{
class SMTPEmail
{
private const string m_ServerSetting = "yourserverinfo.com";
public SMTPEmail()
{
}
public static void SendEmailSMTP(string cFrom, string cTo, string cSubject, string cContent, string cCC)
{
MailMessage MailMessageRef = new MailMessage(cFrom, cTo, cSubject, cContent);
SmtpClient SmtpMailClientRef = new SmtpClient(m_ServerSetting);
SmtpMailClientRef.Send(MailMessageRef);
}
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|