SendMail connection reuse improvement

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Rinzwind
Enthusiast
Enthusiast
Posts: 679
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

SendMail connection reuse improvement

Post by Rinzwind »

Fred wrote: Sat Jan 28, 2023 5:26 pm Fixed. Also added the multiple send as long you don't call FreeMail() and uses the same address/credential
viewtopic.php?p=594694#p594694

It would be best if the PB library automatically matches a connection by username/server and reuses it when possible.

Alternatively, we need a SetMailTitle procedure to change the title so one Mail-'object' can be completely modified between multiple sends. A ResetMail command would be nice too in that case too to complete empty a mail. All so one can send multiple e-mails quickly without reauthenticating all the time.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: SendMail connection reuse improvement

Post by Fred »

We usually don't want to store password in a static map during all program run, so I don't think we will do it. You can do it easily with a map and storing the user:password as key, and mail id as value. For the SetMailTitle(), it's planned for the next version.
Rinzwind
Enthusiast
Enthusiast
Posts: 679
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: SendMail connection reuse improvement

Post by Rinzwind »

Good to hear & thanks again.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: SendMail connection reuse improvement

Post by Fred »

SetMailTitle() is already available using the Subject attribute: https://www.purebasic.com/documentation ... ibute.html, or I miss something ?
Post Reply