Home Demo code indy mail server ( TIdsmtpserver)
Reply: 0

Demo code indy mail server ( TIdsmtpserver)

user44185 Published in September 19, 2018, 6:44 pm

I need to send e mail's inside a larger company network. Sending mails via the INDY smtp component is no problem and works fine for me. The only draw back about the configuration as I need a company mailbox and password shared within the source code. If I use a google mail box also everybody with access to the source code may send e mails using this account.

I wonder now wheather a own E mail server (TIdSMTPserver) will solve my issues, as I can define the password for sending Email by myself and I can create a sending name like "ShortNewsUpdate.com"

I already found INDY SMTP SERVER#1 and INDY SMTP SERVER#2with a link to the demo file , but the demo zip file does not compile with latest INDY library (http://indy.fulgan.com/ZIP/Indy10demo.zip )

is the a new public sample code for a mail server with Indy 10 ?

share|improve this question
  • 1
    Or just don't hardcode passwords but read them from a file / enter them via a gui? – The_Fox Jan 28 '13 at 13:57
  • Don't matter which server you use (your own or other), people with access to the source code will know the password to send emails if you hard code it in your application. The same is true for people with a sniffer on a client machine. As @The_Fox says, don't hardcode passwords, or even the smtp server host or username. Ask the user for them and store/read it from a file/registry/whatever. – jachguate Jan 28 '13 at 14:38
  • If someone gets my company e mail password or login account passwort I'm in deep trouble, getting the access to the "small smtp mail server" he can only send e mails with this/his adress, this does not hurt me to much. I expext also better scripting options while working with my own e mail server ... still looking therefore for some code – user1769184 Jan 28 '13 at 17:02

active oldest votes

Your Answer

StackExchange.ifUsing("editor", function () { StackExchange.using("externalEditor", function () { StackExchange.using("snippets", function () { StackExchange.snippets.init(); }); }); }, "code-snippets"); StackExchange.ready(function() { var channelOptions = { tags: "".split(" "), id: "1" }; initTagRenderer("".split(" "), "".split(" "), channelOptions); StackExchange.using("externalEditor", function() { // Have to fire editor after snippets, if snippets enabled if (StackExchange.settings.snippets.snippetsEnabled) { StackExchange.using("snippets", function() { createEditor(); }); } else { createEditor(); } }); function createEditor() { StackExchange.prepareEditor({ heartbeatType: 'answer', convertImagesToLinks: true, noModals: false, showLowRepImageUploadWarning: true, reputationToPostImages: 10, bindNavPrevention: true, postfix: "", onDemand: true, discardSelector: ".discard-answer" ,immediatelyShowMarkdownHelp:true }); } });
StackExchange.ready( function () { StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f14563401%2fdemo-code-indy-mail-server-tidsmtpserver%23new-answer', 'question_page'); } );

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged delphi indy10 or ask your own question.

StackExchange.ready(function () { StackExchange.responsiveness.addSwitcher(); }) (function(i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function() { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m); })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); StackExchange.ready(function () { StackExchange.ga.init({ sendTitles: true, tracker: window.ga, trackingCodes: [ 'UA-108242619-1' ] }); StackExchange.ga.setDimension('dimension2', '|delphi|indy10|'); StackExchange.ga.setDimension('dimension3', 'Questions/Show'); StackExchange.ga.trackPageView(); }); /**/ var _qevents = _qevents || [], _comscore = _comscore || []; (function() { var ssl = 'https:' == document.location.protocol, s = document.getElementsByTagName('script')[0], qc = document.createElement('script'); qc.async = true; qc.src = (ssl ? 'https://secure' : 'http://edge') + '.quantserve.com/quant.js'; s.parentNode.insertBefore(qc, s); _qevents.push({ qacct: "p-c1rF4kxgLUzNc" }); /**/ var sc = document.createElement('script'); sc.async = true; sc.src = (ssl ? 'https://sb' : 'http://b') + '.scorecardresearch.com/beacon.js'; s.parentNode.insertBefore(sc, s); _comscore.push({ c1: "2", c2: "17440561" }); })();
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.323293 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO