Lazarus

Programming => Networking and Web Programming => Topic started by: tudi_x on July 04, 2018, 04:48:01 pm

Title: SMTP for development on Linux (Papercut alternative)
Post by: tudi_x 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
Title: Re: SMTP for development on Linux (Papercut alternative)
Post by: taazz 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.
Title: Re: SMTP for development on Linux (Papercut alternative)
Post by: sash on July 04, 2018, 06:43:47 pm
Excuse me, but what does "inspect HTML emails" exactly mean?
Title: Re: SMTP for development on Linux (Papercut alternative)
Post by: tudi_x 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
Title: Re: SMTP for development on Linux (Papercut alternative)
Post by: sash 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?
Title: Re: SMTP for development on Linux (Papercut alternative)
Post by: tudi_x 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?
Title: Re: SMTP for development on Linux (Papercut alternative)
Post by: sash 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.





TinyPortal © 2005-2018