Wily Dev wrote:
> Lee,
> 
> Others would be better resource for emailing issues, but the Synapse
> Cookbook ( http://www.dubaron.com/synapsecookbook/ ) has an example on page
> 65, which probably comes from Lukas from
> http://synapse.ararat.cz/doku.php/public:howto:tmimepart
> 
> Since you were looking at the sources, there's a nice trick I use: when I
> know that certain searchable terms MUST be used in whatever solution I'm
> looking for, but I don't know how to do it, Google on the pieces:  ~like~
> TMimeMess AddPartMultipart AddPartBinary ...   It can yield surprisingly
> good search results.
> 

Hmm.  The only fruit this produced was the source below.  The source is pretty 
straight forward, but I'm uncertain how it related to sending the email as a 
whole.

It looks like you must aggregate mime parts (as text? binary) and use the 
resulting encoded strings to as the parameter "MailData" as in the following 
smtp function call?

function SendTo(const MailFrom, MailTo, Subject, SMTPHost: string; const 
MailData: TStrings): Boolean;

???

Anyone with experience in this I would appreciate any advice you have the time 
or inclination to provide :)


=== Example from Cookbook ===>

procedure TForm1.Button13Click(Sender: TObject);
var
m:TMimemess;
l:tstringlist;
p: TMimepart;
begin
m:=3DTMimemess.create;
l:=3Dtstringlist.create;
try
p := m.AddPartMultipart('mixed', nil);
l.loadfromfile('c:\search.log');
m.AddPartText(l,p);
m.AddPartBinary('c:\search.log',p);
m.header.from:='"Your Name" <[EMAIL PROTECTED]>';
m.header.tolist.add('[EMAIL PROTECTED]');
m.header.subject:='pokusna zprava';
m.EncodeMessage;
memo1.lines.assign(m.lines);
finally
m.free;
l.free;
end;

-- 

Warm Regards,

Lee

"When my company started out, we were really, really, really, really small. 
Now...we're just really small."

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to