Emailing through Google (RB 14.05 & XE2)
Hi,
We have RB 14.05 and XE2 and trying to use the SMTP feature to email
reports using a GMail account. The problem that we are having is that
it will work properly the first time, but then it will do one of two
behaviours:
If we try to resend immediately, the program will wait (apparently
indefinitely) for the Report.SendEmail to return. If you force the
program to close, it will send properly again when you run the program
again.
If we close the form that we did the email from, and go back to
send another one, the Report.SendEmail will return immediately (as
opposed to 5-10 seconds) but no email will be sent. It neither shows up
for the recipient, nor shows up in the sent items in GMail, like a
successful one will. If you close the program and reopen it, you will
consistently get the same issue, it does not send again until a system
restart.
One program can be having the first issue (a test application, which i
can provide) while another program (our main product) can be
experiencing the second issue. This is a problem that causing great
consternation to our clients and we are eager to help find a solution.
Thanks in advance!
-Trevor B
We have RB 14.05 and XE2 and trying to use the SMTP feature to email
reports using a GMail account. The problem that we are having is that
it will work properly the first time, but then it will do one of two
behaviours:
If we try to resend immediately, the program will wait (apparently
indefinitely) for the Report.SendEmail to return. If you force the
program to close, it will send properly again when you run the program
again.
If we close the form that we did the email from, and go back to
send another one, the Report.SendEmail will return immediately (as
opposed to 5-10 seconds) but no email will be sent. It neither shows up
for the recipient, nor shows up in the sent items in GMail, like a
successful one will. If you close the program and reopen it, you will
consistently get the same issue, it does not send again until a system
restart.
One program can be having the first issue (a test application, which i
can provide) while another program (our main product) can be
experiencing the second issue. This is a problem that causing great
consternation to our clients and we are eager to help find a solution.
Thanks in advance!
-Trevor B
This discussion has been closed.
Comments
My first suggestion is to upgrade your version of ReportBuilder to the
latest (14.08). Contact info@digital-metaphors.com for upgrade
instructions.
Which email plugin are you using to send these emails? (Indy, MAPI,
etc.). Are you only testing this from within the Delphi IDE or from a
stand-alone .exe?
I suggest implementing the OnEmailError event to see what the email
server is sending back (if anything). It may give some clues to what is
happening.
http://www.digital-metaphors.com/rbWiki/Output/Email/How_To...Show_Email_Errors
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com