Recent

Author Topic: Sending Email from FPC (non-Lazarus)  (Read 14908 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Sending Email from FPC (non-Lazarus)
« Reply #15 on: June 09, 2014, 02:18:37 pm »
Also, if you have those requirements, why not simply set up a mail server like postfix, sendmail, even Exchange that is after all designed to send mail, deal with spam/filtering/authentication/encryption and relay it via that host?

I'm very baffled...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Sending Email from FPC (non-Lazarus)
« Reply #16 on: June 09, 2014, 03:21:34 pm »
because it can not be packed in a simple installation for windows and you still have to deal with the dynamic IP problem as you call it.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12645
  • FPC developer.
Re: Sending Email from FPC (non-Lazarus)
« Reply #17 on: June 09, 2014, 04:11:36 pm »
And to hook a port < 1024 you need special rights (admin/root) anyway.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Sending Email from FPC (non-Lazarus)
« Reply #18 on: June 09, 2014, 05:02:01 pm »
Yes, yes, yes... and all that doesn't answer my first question ;)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Sending Email from FPC (non-Lazarus)
« Reply #19 on: June 09, 2014, 05:16:44 pm »
And to hook a port < 1024 you need special rights (admin/root) anyway.
And why is that relevent to this discussion?
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

bigeno

  • Sr. Member
  • ****
  • Posts: 266
Re: Sending Email from FPC (non-Lazarus)
« Reply #20 on: June 09, 2014, 05:20:10 pm »
I reread the whole thread and don't now, it is to be local mail server or some kind of spam bot or real mail server

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12645
  • FPC developer.
Re: Sending Email from FPC (non-Lazarus)
« Reply #21 on: June 09, 2014, 05:30:26 pm »
And to hook a port < 1024 you need special rights (admin/root) anyway.
And why is that relevent to this discussion?

1) SMTP is port 25. 
2) the application must be installed with additional permissions if you go that way, something that is now applied much more strictly than a few years ago

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Sending Email from FPC (non-Lazarus)
« Reply #22 on: June 09, 2014, 06:12:55 pm »
@bigeno: yep, that is my suspicion as well

@marcov: yes, irrelevant:
you're describing side effects/requirements of my scenario 2 in
http://forum.lazarus.freepascal.org/index.php/topic,24814.msg149788.html#msg149788
... which is irrelevant as I was asking WHY OP wanted to have scenario 2 rather than scenario 1.
What benefits with regard to SENDING mail would the OP have in scenarion 2 versus scenario 1?

Aside:
If you don't follow scenario 2 but say install your own mail server you would need root permissions anyway to listen on port 25 as you rightly indicate...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12645
  • FPC developer.
Re: Sending Email from FPC (non-Lazarus)
« Reply #23 on: June 09, 2014, 06:20:34 pm »
@bigeno: yep, that is my suspicion as well

@marcov: yes, irrelevant:

Irrelevant if it was a reply to your post, which it wasn't.

I tried to only take input from the OP, not your assumptions about what he wants. At least not till he confirms them..

I'm trying to get some information in the thread so that the next OP feedback will narrow it down to what he wants. Not to pin him on something you think it is his purpose based on minimal info.

Quote
What benefits with regard to SENDING mail would the OP have in scenarion 2 versus scenario 1?

(I can actually imagine scenarios where the receiving mailserver checks if the sender is a mailserver)

Why can't he simply use Indy? There are IMHO too much open questions to narrow all answers down so much already.

Quote
Aside:
If you don't follow scenario 2 but say install your own mail server you would need root permissions anyway to listen on port 25 as you rightly indicate...

Or at least setuid. But that also complicates delivery. The integrated mailserver is still one binary delivery.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Sending Email from FPC (non-Lazarus)
« Reply #24 on: June 10, 2014, 07:10:18 am »
So you post "And..." below taazz' answer to me but that's a general remark, not a reply to taazz or me?

Perhaps this is a language issue or something - I obviously completely failed to understand your meaning. I'll try to limit my assumptions.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018