Date in Email Scheduling in Bi publisher - bi-publisher

I want to Scheduled a File in BI publisher using Email option..
I want the attachment and Mail Subject and Mail Body to have sysdate ..
I tried with %d, %m,%y it works for FTP destination but for Email it is not working . please help me
i want the Report 'Sample' to be scheduled via mail like 'Sample_11022016', is it possible in BIP

I don't think BIP provides a way of changing the filename when the output is sent over e-mail. That option is provided for FTP to prevent older files from getting overwritten at destination.
The best one can do is to print the report extracted date somewhere in the output file. Like in the top corner or as a header/footer on every page. When the e-mail is delivered to the recipient, the mail client will show the date and time it was received.

Related

Exchange Webservices Create Reply Incorrect Sent Datetime timezone

I have an application that automates email communications between my companies service desk and customers.
When the application needs to reply to an existing email, i use FindItems to get the email and then i load the properties i need, then i use (CreateReply) to get the response email i need to send.
The strange behavior is as follows:
The email i need to reply to has a correct SentDateTime and timezone (+4 GMT) but when i create a reply from it the sent date of the "replied to email" becomes UTC which makes no sense!
I am specifying the timezone when i am connecting to exchange correctly and i cant seem to find a way to specify the timezone of the created reply message.
I really hope someone knows anything about this.
Just to point out, when i use outlook to manually reply to emails, the replied to email sent date time is correct. The problem only happens when i use exchange web services.
Regards
Yazeed
This problem happens because the EWS Managed API omits sending the TimeZone headers in most requests. For the reply, forwards you do need send the timezone headers else it will set the header information to UTC. One workaround is to use the events to add the timezone header back in see http://blogs.msdn.com/b/emeamsgdev/archive/2014/04/23/ews-missing-soap-headers-when-using-the-ews-managed-api.aspx . The source for the EWS Managed API is also available now so you could also patch the GetTimeZoneRequired method and recompile the library https://github.com/OfficeDev/ews-managed-api/blob/31951f456519786e41232fa9ff6a3ab20b56cac3/Core/ServiceObjects/Items/Item.cs .
Cheers
Glen

How can I read Emails in Grails?

I want to parse mails that are send to an IMAP mailbox from my Grails application.
I tried this plugin: https://github.com/IntelliGrape/Grails-Mail-Watcher-Plugin but it does not provide all the functionality I need.
Edit: I need to get the following information from my inbox:
the number of mails
the number of unread mails
the number of read mails
a way to iterate over each mail
I need from the mail:
sender
receiver
subject
date
mail body
mail attachments
mail attachment types
if it is html or plain text mail
How can I read the mails and get the sender, subject, body and attachments?
as i'm not aware of any particular plugin, other the one you already mentioned, you could use the Java Mail API directly. One example of this usage can be found here. The other opportunity is, that you could either extend this plugin (the entry point should be here). The plugin uses the Java Mail API internally as well.

Accept and parse information from email

What I would like to accomplish is for a user to be able to send an email to a designated email address. Then once that email has been obtained, run a script that parses the body section of the email and carries out various tasks with the information provided in the email
(The data coming in from the email will be structured in an xml type format).
In my mind this seems like a simple task to accomplish but I'm not all that familiar with the inner workings of email. My questions are:
How will I know once an email has been obtained from the sender so that it can be processed?
How can I use php to obtain the text found in the email?
If you have PHP running on your mail server, then it's possible to pipe incoming mail to a PHP script. Then, your PHP script can parse the body of each incoming message as it arrives. See http://harrybailey.com/2009/02/send-or-pipe-an-email-to-a-php-script/ for more info.
I agree with the other responses, that piping to a php application should be your first option (if the mail server and php are the same)
Otherwise if you have an external mail server you will need to poll the email address at regular intervals and check for new emails.
Extracting plain text body from an email message is not too hard, but getting to attachments can be a pain sometimes.
You will need to use a cronjob to trigger your script at regular intervals
To fetch the email from the server and parse it, I have used the php IMAP functions
http://php.net/manual/en/book.imap.php
You can also use 3rd party services like MandrillApp which will receive the message, break it into parts, and call your application via a webhook.
http://help.mandrill.com/entries/21699367-Inbound-Email-Processing-Overview

How are people handling report email with Fast Reports + Delphi

As far as I can tell Fast Reports has trouble sending mail through certain providers, including Gmail, freely admit this issue and claim it will be fixed 'in the future'. It's going on 12 months since I've heard that from their support team with no change.
Anybody out there able to modify their code and/or override their preview form to get an email that works with every server?
Not heard about those problems - but what we do is when the user presses a 'send via email' button in the previewer we generate a PDF of the report using the FR PDF export component than use the Jedi JCL to send an email with attachment using the default MAPI client software.
This answer has more info.
FastReport, therefore, has no influence over the email sending part and it has been working fine for quite some time.
i had problems in the past with sending email thanks to the configuration of the server from my company, using the sender for fast reports of course,
what i did was use the SendMail event from the frxMailExport component, grabed the params passed and managed to send via indy

Problem sending HTML Mails using MAPI and Outlook

I am trying sending HTML e-mails using MAPI calls in my Delphi Application.
When the client is Thunderbird if works fine. But when the client is Microsoft Outlook or Outlook Express I need to save the HTML code in a file and send it as the first attachment of my message, elsewhere the mail client interpret the HTML as text, showing the tags.
Sending HTML as the first attachment works only when no more attachments are sent, because if I send one or more attachments the first (HTML) is also showed as an attachment.
Does somebody can help me?
Thanks in advance.
Douglas.
Message OK:
Ok http://www.freeimagehosting.net/uploads/e51dfa52f4.jpg
Bad Message (with one attachment):
Bad http://www.freeimagehosting.net/uploads/7e5689e2b9.jpg
If you find that Outlook/OutlookExpress can not handle HTML natively, it might just be that you are using a version of Outlook that isn't capable of, or isn't configured to default to HTML rich content by default. Have you tried reconfiguring your Outlook/OutlookExpress options to select HTML rich text by default?
It looks like it's actually working, but that Outlook does not display things correctly. An HTML email sent via a traditional email client, is actually mime-encoded, just as it shows there. In other words, you may find that if the email is sent, it appears fine on the other side, it's just a bug in outlook-express that you don't see the MIME attached content in the window, instead you see it as it is truly done internally, as a MIME encoded attachment.

Resources