Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
snowman  
#1 Posted : Sunday, November 8, 2015 4:02:55 AM(UTC)
snowman

Rank: Newbie

Groups: Registered
Joined: 10/6/2015(UTC)
Posts: 1

I am generating a pdf file via an export from a database report and then attaching it to an email using
Quote:
oSmtp := TMail.Create(Application);
oSmtp.LicenseCode := EASEND_MAIL_KEY;
oSmtp.FromAddr := 'xxx@xxx.co.uk';
... other oSmtp parameters
oSmtp.AddAttachment(Filename);
oSmtp.SendMail;

Since I will be sending quite a lot of these very quickly I thought it would be faster to export the pdf to a Memory stream and attach that to the email instead of writing it to disc and reading it back.

I can make the pdf memory stream ok, but how do I attach it to the email using EASendMail ?

(Using Delphi 2009)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.059 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AdminSystem Software Limited.