[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SMTP Alternative Content + PDF Attachment


Hello

How can I use alternative content with smtp Class and also sending
Attachments like PDF-Files

I can Add Attachments by:

smtp.Body = "Hello World"
smtp.add("<h1>Hello World</h1>, "text/html" )
smtp.add(File.Load("PDF.pdf"), "application/pdf", "PDF.pdf")

One of them is alternative mail content and the other is not.
But I can only define

smtp.Alternative = true / false

global in the class valid for all attachments.

How is it possible to handle this?

Thanks
Tom




Follow-Ups:
Re: SMTP Alternative Content + PDF AttachmentBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>