Send Mail Help !!


Hello,


I have bought 4 FastReport Basic Edition. I use version presently 4.9

When I want to send report mail receive error:
"Timeout expired(60) 553 5.7.1 Invalid EHLO command [HELO poczta.onet.pl],EHLO should contain FQDN, see RFC 2821."

How repair it?

Regards,

Robert

Comments

  • edited 3:25AM
    did u fill smtphost and smtpport on your FrxmailExport object?
  • edited 3:25AM
    ferit kaya wrote: »
    did u fill smtphost and smtpport on your FrxmailExport object?

    smtphost and smtpport is placed
  • edited 3:25AM
    Hi Robert!

    This means, you didn't provide a valid value for the HELO command. Unfortunately I didn't find any property that can be set for this purpose in FR's emailexport component. Also didn't find a property for the mail agent, that is very neccessary for successful email sending.

    I use Indy SMTP for sending emails from the preview window. Of course I redesigned the preview window and placed an additional button on the toolbar, that fires the parent report's additional event, OnSendMail (this is also my extension). In this event handler I can place any custom Delphi code and I use my own sending mechanism.

    Indy SMTP has these properties:

    - HeloName:String; this must be a valid FQDN, ie: www.fast-report.com
    - UseEhlo:Boolean;
    - MailAgent:String; this must be a popular mail client's agent string.

    For MailAgent I use:
    "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16"

    With this method I didn't faced any emailing trouble.

    Regards:Alex :-)
  • edited 3:25AM
    hello.

    how to configure smtp to use me gmail and hotmail account to send email ?

Leave a Comment