Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Send Email With PDF Attach Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Paulo Moreno
Newbie
Newbie


Joined: 23 October 2006
Location: Brazil
Online Status: Offline
Posts: 3
Posted: 23 October 2006 at 9:26pm | IP Logged Quote Paulo Moreno


I found a problem !!!

If I send e-mail with body html format and file PDF attach, the body is sending blank
Back to Top View Paulo Moreno's Profile Search for other posts by Paulo Moreno
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 24 October 2006 at 4:47am | IP Logged Quote Andrew

The following code (C# syntax) sends the message with HTML and plain text bodies and attached PDF:

Code:
Smtp.LicenseKey = "Trial or permanent key";
Smtp mailer = new Smtp();

mailer.SmtpServers.Add("mail.domain.com", "jdoe", "secret");

mailer.From.Email = "jdoe@domain.com";

mailer.To.AsString = "\"Bill Smith, Jr.\" <bill.smith@company.com>";

mailer.Subject = "Test";
mailer.BodyHtmlText = "<html>This is HTML test.</html>";
mailer.BodyPlainText = "This is PLAIN test.";

mailer.AddAttachment(@"C:\test.pdf");

mailer.Send();


The sent message has non-blank HTML and plain text bodies.

Could you please provide us with the part of your code where you're composing the message with attached PDF and a sample of sent mail with blank body? You can send this information to: support@afterlogic.com.
Back to Top View Andrew's Profile Search for other posts by Andrew
 

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