Recent

Author Topic: SMTP for development on Linux (Papercut alternative)  (Read 1419 times)

tudi_x

  • Hero Member
  • *****
  • Posts: 524
SMTP for development on Linux (Papercut alternative)
« on: July 04, 2018, 04:48:01 pm »
hi All,
i am developing email sending on a Linux environment. i am trying to inspect the HTML emails.
what are you guys using to inspect HTML emails on Linux? (something that i do not have to compile myself :) )

on Windows I used Papercut but it does not work in wine.
thank you
Lazarus 1.8.4 64b on MX Linux "Horizon"

taazz

  • Hero Member
  • *****
  • Posts: 5362
Re: SMTP for development on Linux (Papercut alternative)
« Reply #1 on: July 04, 2018, 05:52:30 pm »
just a clarification papercut is an smtp server that can be used to receive emails but it does not send them. This shouldn't be to hard to emulate in linux.
Papercut is written in C# you might be better of trying to compile it with mono for linux instead of using it under wine.
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

sash

  • Full Member
  • ***
  • Posts: 155
Re: SMTP for development on Linux (Papercut alternative)
« Reply #2 on: July 04, 2018, 06:43:47 pm »
Excuse me, but what does "inspect HTML emails" exactly mean?
Lazarus 1.8.4 Unversioned directory FPC 3.0.4 x86_64-linux-gtk2 -- Ubuntu 18.04 XFCE

tudi_x

  • Hero Member
  • *****
  • Posts: 524
Re: SMTP for development on Linux (Papercut alternative)
« Reply #3 on: July 05, 2018, 01:12:35 pm »
@sash
1. the email was sent
2. the information intended has been placed in the email
3. if the said information is presented in the way it was intended

@taazz
thank you
« Last Edit: July 05, 2018, 01:14:09 pm by tudi_x »
Lazarus 1.8.4 64b on MX Linux "Horizon"

sash

  • Full Member
  • ***
  • Posts: 155
Re: SMTP for development on Linux (Papercut alternative)
« Reply #4 on: July 05, 2018, 09:30:27 pm »
@sash
1. the email was sent
2. the information intended has been placed in the email
3. if the said information is presented in the way it was intended

Still don't quite get it. Couldn't it all three be achieved with simple redirection to another mail account, so you can see it in your regular email client?
Lazarus 1.8.4 Unversioned directory FPC 3.0.4 x86_64-linux-gtk2 -- Ubuntu 18.04 XFCE

tudi_x

  • Hero Member
  • *****
  • Posts: 524
Re: SMTP for development on Linux (Papercut alternative)
« Reply #5 on: July 09, 2018, 02:35:16 pm »
your point to me, can be extended into asking the creators of Papercut of why did they build a useless app?
« Last Edit: July 09, 2018, 02:37:49 pm by tudi_x »
Lazarus 1.8.4 64b on MX Linux "Horizon"

sash

  • Full Member
  • ***
  • Posts: 155
Re: SMTP for development on Linux (Papercut alternative)
« Reply #6 on: July 09, 2018, 06:47:03 pm »
creators of Papercut of why did they build a useless app?
Since I don't know what a `Papercut` is, I'm not excluding such possibility :)
Especially, considering that a simple
Code: Pascal  [Select]
  1. {$ifdef debug}
  2. Email.SetHeader('Debug-Save-Original-To', Email.Recipient);
  3. Email.Recipient := 'yourmail@domain.com';
  4. {$endif}
  5. Email.Send;
  6.  
covers your requirements (as you described) without it.





Lazarus 1.8.4 Unversioned directory FPC 3.0.4 x86_64-linux-gtk2 -- Ubuntu 18.04 XFCE