You need to sign in to do that
Don't have an account?
vlad_BL
Email with Attachment
Hi, guys
I have to send e-mail with attachment and to tell the truth I do succeed with this.
I do get e-mails with HTML file attached.
But... no matter what content-type has my attachment, I get html file which contains CONTENT meta directive that leads me to the servlet which downloads attachment as soon as I open this HTML.
What I really what to get, is the physical file attachment itself or just somehow to retrieve the link that I get in HTML.
Can anyone help me with this?
can u plz explain how u r sending the mail?
through code?
put ur code
Sure, below is the snippet of the method that sends the e-mail
did u try it withh setInline proprty to true for emailFileAttachment object.
Yes, the same results
good question, boss
I appretiate ur way of fulfilling the requirement , but no idea sir ji.
really sorry for taking ur time.
Hi Guys,
I already worked with Emails in Apex. See my Apex Code bellow:
Hi, marioluissc
I tried even this, anyway I get HTML document
OK, but...
I didn't understand what you really want.
do you want a PDF attach on Email?
or
do you want a HTML page in email body?
To marioluissc
I want to get strictly PDF file itself, but I get HTML with something similar inside:
As soon as I open the HTML that I get, it download PDF.
Did I make myself clear?
OK i understood.
do you can show your code again? also of Pdf page.
Try change your code with red observation:
The same behavior...
I have sent you the fragments of controller and pdf page, check them out if you have some time.
I really appreciate your time,