Sending mail in Delphi

Posted on 2012-09-05
Last Modified: 2012-10-22
We are using an in-house system based around Delphi to send email via SMTP. Everything appears to be fine but we are getting numerous reports of emails not getting through. I have checked on line to see if we are blacklisted but we don't appear to be listed.

My question(s) are:

Are there any steps I can take to verify email is getting through.

Is there such a service where we can hire an SMTP server as we are currently ISP bound. We have tried using our hosting provider but we need the ability to send email from multiple accounts using the same SMTP login.
Any help greatly appreciated
Thanks in advance,
Question by:Richard_Clayton
    LVL 9

    Accepted Solution

    I'm using Indy components to send mail.

        FSMTP: TidSMTP;
        FMSG: TidMessage;

    and there is possibilities to assign From.Address

        FSMTP.AuthenticationType := atLogin;
        FSMTP.Host := FSmtpServer;
        FSMTP.UserId := FUserName;
        FSMTP.Password := FUserPassword;
        FMSG.From.Address := SenderEmail;

    I'm using free mail server with smtp support. To verify email was sent, I just login to web interface and look at error messages.

    PS: Be carefull, not all mail servers allow to set From.Address differ then real email account.
    LVL 1

    Expert Comment

    I believe you are using delphi as a mail server to send out emails.
    If thats what you are doing you will be blocked from many isp's because they do not accept email from an ip address that the reverse dns comes up as a customer.
    look here for more info
    if you are looking to pay for smtp sending use those guys

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
    Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
    Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
    To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now