Re: Problem sending email
What are you using to create your setup package?
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
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);
}
}
}