For the next version (after my holidaysjqn wrote:Hi, gnozal
Very useful library, but I need a new feature:
In Headers are "Content-Type: text/plain; charset=iso-8859-1".
There is a way to change this?.
I will need "Content-Type: text/html; charset=iso-8859-1".
JOAQUN
PureSMTP library : mail & attachments (AUTH supported)
Moderator: gnozal
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
This example from the Help doesn't work for me:
I always get an error code of -3, my login details are all correct and the
same as what I use with Outlook, which works perfectly...
Code: Select all
MyPOP3Server.s = "pop3.test@test.fr"
MyPOP3Port.l = 110
MyPOPUser.s = "Test"
MyPOP3Password.s = "Test"
NumberOfMails.l = PureSMTP_POP3Messages(MyPOP3Server, MyPOP3Port, MyPOPUser, MyPOP3Password)
; Returns number of e-mails at POP3 server [>= 0 , else is error code]
If NumberOfMails >= 0
MessageRequester("POP3", "You have " + Str(NumberOfMails) + " message(s)", 0)
Else
MessageRequester("ERROR", "Error code = " + Str(NumberOfMails), 0)
EndIf
same as what I use with Outlook, which works perfectly...
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Sorry it worked for me. I don't use any POP3 server anymore.PB wrote:This example from the Help doesn't work for me:
The goal of the library was to handle SMTP functions, I only added this POP3 function for a friend wich used POP3 some time ago.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
> The goal of the library was to handle SMTP functions
That's what I downloaded it for too, but it would have been nice to make use
of the POP3 function. Does that mean you don't intend to fix that function?
That's what I downloaded it for too, but it would have been nice to make use
of the POP3 function. Does that mean you don't intend to fix that function?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
I don't have any POP3 server to play with.PB wrote:> The goal of the library was to handle SMTP functions
That's what I downloaded it for too, but it would have been nice to make use of the POP3 function. Does that mean you don't intend to fix that function?
What is the last server message (PureSMTP_LastServerMessage)?
Last edited by gnozal on Sat Aug 20, 2005 8:24 am, edited 1 time in total.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
> I don't have any POP3 server to play with.
Oops, okay, I missed that bit. I'm tired.
> What is the last server message (PureSMTP_LastServerMessage)?
It's: +OK
I even turned off Kerio just to make doubly sure...
Oops, okay, I missed that bit. I'm tired.
> What is the last server message (PureSMTP_LastServerMessage)?
It's: +OK
I even turned off Kerio just to make doubly sure...
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Strange.PB wrote:> I don't have any POP3 server to play with.
Oops, okay, I missed that bit. I'm tired.
> What is the last server message (PureSMTP_LastServerMessage)?
It's: +OK
I even turned off Kerio just to make doubly sure...
I will change the function, use STAT instead of LIST.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Update
Some user requests.
- SendMail() : like the Attachements argument, the MailTo argument now accepts multiple recipients ;
- POP3Messages() : changed, should work better but I have no POP3 server to test !
Some user requests.
- SendMail() : like the Attachements argument, the MailTo argument now accepts multiple recipients ;
- POP3Messages() : changed, should work better but I have no POP3 server to test !
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
any news about "Content-Type: text/html"? :roll:gnozal wrote:For the next version (after my holidaysjqn wrote:Hi, gnozal
Very useful library, but I need a new feature:
In Headers are "Content-Type: text/plain; charset=iso-8859-1".
There is a way to change this?.
I will need "Content-Type: text/html; charset=iso-8859-1".
JOAQUN)
gnozal, Thank you for your very useful libs
PB 6.21 beta, PureVision User
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Oops, forgot that onezikitrake wrote:any news about "Content-Type: text/html"? :roll:
I will add it, promise.
Thankszikitrake wrote:gnozal, Thank you for your very useful libs
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal wrote:Update
What's new :
- new function PureSMTP_SetContentType()
one (or two) thousand thanks
Tested: It's works great!
PB 6.21 beta, PureVision User
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Update
Changes
- enhanced MailFrom argument for PureSMTP_SendMail()
. simple mail address : MailFrom = "name@domain.com"
. or real name + mail address : MailFrom = "Name <name@domain.com>"
- new function : PureSMTP_SetXMailer()
Changes
- enhanced MailFrom argument for PureSMTP_SendMail()
. simple mail address : MailFrom = "name@domain.com"
. or real name + mail address : MailFrom = "Name <name@domain.com>"
- new function : PureSMTP_SetXMailer()
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).

