Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Html file emboss in message Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 08 April 2005 at 7:07am | IP Logged Quote Guests

Hello,
        I have downloaded Mailbee SMTP Component,and using it for sending an html file as a message body in my c# code which is as follows;

MailBee.SMTPClass oMailer = new MailBee.SMTPClass();
oMailer.ServerName = "mysmtpserver";
oMailer.LicenseKey = "MBC520-626A12C272-B3ADB9DDAADBAFF11687684C944B935E";
oMailer.FromAddr = "amit@abc.com";
oMailer.ToAddr = "amit@xyz.com";
oMailer.Subject = "Hello MailBee";
oMailer.BodyFormat = 1;
oMailer.ImportBodyText("c:/hello.htm",true,true);
oMailer.Send();

The above code sends the message containing an html file, But it never shows the images in that html message body.
Please help me in this regards.

Thank you,
Amit
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 08 April 2005 at 8:15am | IP Logged Quote Alex

You must use backslash as hierarchy delimiter when specifying path to a file:

Code:

oMailer.ImportBodyText("c:\\hello.htm",true,true);


Regards,
Alex

Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide