<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>20 May 2018 01:50:00 Z</lastBuildDate><pubDate>18 May 2018 04:03:00 Z</pubDate><description>Hello All&#13;
&#13;
I have a question regarding the best method of using smtp email sessions.&#13;
&#13;
My application emails pay slips, chqs and remittance advices.&#13;
I do this by initializing the email structure, opening an smtp email session, sending the message, closing the session and then repeating with the next item to send.&#13;
&#13;
I think it would be better to open the smtp session at the beginning, then assemble the data and the pdf into the email variable for the first item, send the message and repeat that process until I have emailed all the items and then close the session.&#13;
&#13;
&#13;
Regards&#13;
Al</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions/read.awp</link><title>[WD22] SMTP Email sessions</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65526/read.awp</comments><pubDate>20 May 2018 01:50:00 Z</pubDate><description>Hello Iso&#13;
&#13;
Thanks for the reminder. I will still keep the session open,send email, session close process but see what happens …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65526/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65526/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions/read.awp">[WD22] SMTP Email sessions</source><title>Re: [WD22] SMTP Email sessions</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65525/read.awp</comments><pubDate>19 May 2018 16:28:00 Z</pubDate><description>When I didn't close the session it would remember the last email address and sent to that as well so be careful.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65525/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65525/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions/read.awp">[WD22] SMTP Email sessions</source><title>Re: [WD22] SMTP Email sessions</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65524/read.awp</comments><pubDate>19 May 2018 05:20:00 Z</pubDate><description>Hello All&#13;
&#13;
Thanks for the replies&#13;
&#13;
I raised the issue because I have a client where sometimes the smtp server process return…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65524/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65524/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions/read.awp">[WD22] SMTP Email sessions</source><title>Re: [WD22] SMTP Email sessions</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65516/read.awp</comments><pubDate>18 May 2018 14:45:00 Z</pubDate><description>i had the same problem a few years ago and the solution was open send close and repeat all the three steps again.&#13;
&#13;
The SMTP se…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65516/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65516/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions/read.awp">[WD22] SMTP Email sessions</source><title>Re: [WD22] SMTP Email sessions</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65515/read.awp</comments><pubDate>18 May 2018 13:46:00 Z</pubDate><description>Hi Al,&#13;
&#13;
I remember I had the same result as Piet described, a few years ago. Opening a session once resulted in errors after 2…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65515/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65515/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions/read.awp">[WD22] SMTP Email sessions</source><title>Re: [WD22] SMTP Email sessions</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65506/read.awp</comments><pubDate>18 May 2018 12:42:00 Z</pubDate><description>Hi Al,&#13;
&#13;
I remember that for mass mail, many years ago, I started using one smtp session, send the mails and close the session,…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65506/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65506/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions/read.awp">[WD22] SMTP Email sessions</source><title>Re: [WD22] SMTP Email sessions</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65500/read.awp</comments><pubDate>18 May 2018 09:34:00 Z</pubDate><description>Hi Al,&#13;
&#13;
Indeed. First open te smtp session. If there is any problem with login/password etc... then you will be notified first…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65500/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions-65500/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65491-wd22-smtp-email-sessions/read.awp">[WD22] SMTP Email sessions</source><title>Re: [WD22] SMTP Email sessions</title></item></channel></rss>
