Home   Buy Now   Products   Downloads   Support   Resellers   Contact   Site Map  
Home   Buy Now   Download   Support  
Email Component, SMTP Component, POP3 Component, IMAP Component, bulk mail

Home
Purchase
Upgrade
 
Products
Downloads
 
Support
 Samples
 KB
 Forum
 
Newsletter
 
Customers
 Current List
 Comments
 
Resellers
Jobs
Contact Us

View Message

View thread.

Contact Name: Vineet Nair
Message Date: 6/21/2011 11:31:27 AM
Subject: SMTP for sending email

Message:
Can you please help me out where i am going wrong. Below is my actual code which i am using for sending email.


SMTP smtp = new SMTP();
SSL objSSl = new SSL();
objSSl.CredentialVerification = CredentialVerification.Auto;
Quiksoft.EasyMail.Parse.License.Key = ConfigurationManager.AppSettings["EasyMailLicense"];
Quiksoft.EasyMail.SSL.License.Key = ConfigurationManager.AppSettings["SSLLicense"];
Quiksoft.EasyMail.SMTP.License.Key = ConfigurationManager.AppSettings["EasyMailLicense"];

EmailMessage message = new EmailMessage();
message.Recipients = GetRecipientCollection(emaillist);
message.From = new Address(ConfigurationManager.AppSettings["FromEmail"]);
message.BodyParts.Add(sb.ToString());
foreach (string file in attachment)
{
message.Attachments.Add(file);
}
message.Subject = ConfigurationManager.AppSettings["EmailSubjectLine"];
smtp.SMTPServers.Add("smtp.gmail.com" ,465,-1, SMTPAuthMode.AuthLogin , "vnair@gmail.com" , "**********" ));
smtp.Connect(objSSl,"smtp.gmail.com" );
smtp.Send(message);

2014 Quiksoft Corporation. All rights reserved. Terms of Use, Privacy Statement, Trademarks