Forum > General
sending email not working
Remy Lebeau:
--- Quote from: rvk on June 14, 2024, 10:57:08 am ---
--- Quote from: Remy Lebeau on June 12, 2024, 10:10:58 pm ---
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---sp.Executable := 'msmpt';
--- End quote ---
You did change the msmpt to msmtp, didn't you? ;)
--- End quote ---
%) thanks, I fixed it in my earlier example.
Awesome Programmer:
Sorry, I couldn't get back right away.
That's what I end up doing. Commented out the output part of the code and it went straight through.
What doesn't make sense is that after reading your comments about not receiving input characters or ending the inputstream with dots or CR/LF, well by the time the program reached the outputstream pause the email has already be sent and received.
just thought i should let them no...
Thank you for your answers and suggestions.
MarkMLl:
--- Quote from: Awesome Programmer on June 18, 2024, 02:51:43 pm ---What doesn't make sense is that after reading your comments about not receiving input characters or ending the inputstream with dots or CR/LF, well by the time the program reached the outputstream pause the email has already be sent and received.
--- End quote ---
All that indicates is that the mailer is not actually waiting for a . terminator or for further input. I wouldn't generally expect something in that position to be concerned about the lifetime of the program that's called it, which is what your final fix changed.
MarkMLl
Remy Lebeau:
--- Quote from: Awesome Programmer on June 18, 2024, 02:51:43 pm ---What doesn't make sense is that after reading your comments about not receiving input characters or ending the inputstream with dots or CR/LF, well by the time the program reached the outputstream pause the email has already be sent and received.
--- End quote ---
It does make sense, if you take into account that when using poUsePipes, TProcess.Execute() closes its end of the pipes it creates before exiting back to the caller. So, when msmtp has read in all of the data from the stdin pipe, and the pipe has been closed, it knows there is no more data to read in and can send what data it did read.
Navigation
[0] Message Index
[*] Previous page