PB.Ex Mail (Windows)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB.Ex Mail (Windows)

Post by RSBasic »

PB.Ex Mail 1.1.3.0 has been released.

Changelog:
  • Added: SendMailEx(): Aliases for attachments are supported. Example: OriginalFile.zip<AliasFile.zip>
  • Bugfix: All passed strings are now checked for NULL.
Image
Image
Little_man
Enthusiast
Enthusiast
Posts: 143
Joined: Fri Mar 29, 2013 4:55 pm
Location: The Netherland

Re: PB.Ex Mail (Windows)

Post by Little_man »

RSBasic,

Is it possible to send an "html" code with "PB.Ex Mail"?

Little_Man
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB.Ex Mail (Windows)

Post by RSBasic »

Hello Little_man

Yes, if you create and send an email with PB.Ex Mail, your content will be sent as HTML.
Image
Image
Little_man
Enthusiast
Enthusiast
Posts: 143
Joined: Fri Mar 29, 2013 4:55 pm
Location: The Netherland

Re: PB.Ex Mail (Windows)

Post by Little_man »

Thanks "RSBasic" for your information.

Another question:
it is possible to place the code below in a "dll":
Result = OpenMailEx(ID, Protocol, MailServer$, Port, UserName$, Password$, SSL, @ErrorOutput$)
Result = SendMailEx(ID, Subject$, Body$, Priority, From$, ToAddress$, CC$, BCC$, Attachments$, @ErrorOutput$)
Result = CloseMailEx(ID, @ErrorOutput$)
Little _man
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB.Ex Mail (Windows)

Post by RSBasic »

I didn't test it with DLL. I don't know if it works.
Image
Image
User avatar
GG
Enthusiast
Enthusiast
Posts: 256
Joined: Tue Jul 26, 2005 12:02 pm
Location: Lieusaint (77), France

Re: PB.Ex Mail (Windows)

Post by GG »

Hi RSBasic,

First of all, thank you for your library and your code. It allows me to go further in a project at work.
However, one question :

When I try to use DeleteMailEx (inside a ExamineMailEx loop with while, like in your pb example file) in a gmail (IMAP, SSL) mailbox, I feel like it skips the next mail.

For example in a mailbox :

Mail1
Mail2
Mail3

When I remove Mail1 for example, I feel like the Mail2 is never scanned, and it goes directly in Mail3. Do you ever have experienced a thing like this ?

Confirmed with your snippet example code PB.Ex_mail.pb. Have i missed something ?
Purebasic 6.04 64 bits - Windows 11 Pro 64 bits 23H2
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: PB.Ex Mail (Windows)

Post by QuimV »

:oops: surely the question is not smart, but I have to ask it anyway.
Where can I download this library?
Thanks
QuimV
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB.Ex Mail (Windows)

Post by infratec »

Look at the bottom of the first post. :wink:
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: PB.Ex Mail (Windows)

Post by QuimV »

:oops:
:D Thanks a lot!
QuimV
User avatar
GG
Enthusiast
Enthusiast
Posts: 256
Joined: Tue Jul 26, 2005 12:02 pm
Location: Lieusaint (77), France

Re: PB.Ex Mail (Windows)

Post by GG »

Hi all,

Do some of you have already noticed the problem described in my mail above (May, 07, 2020) ?
Purebasic 6.04 64 bits - Windows 11 Pro 64 bits 23H2
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: PB.Ex Mail (Windows)

Post by QuimV »

When I ejecute the function OpenMailEx(), I get the message:
Error: Received an unexpected EOF or 0 bytes from the transport stream.
Someone knows to that can it be?
Thanks in advance.
QuimV
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: PB.Ex Mail (Windows)

Post by BarryG »

Just trying this lib with POP3 and Gmail, but it keeps giving a result of "Error: No such host is known".

Here are the Gmail POP3 settings -> https://support.google.com/mail/answer/7104828

I've turned POP3 on as those settings say, and saved the changes.

Here's the relevant code that I'm using to try to open the mail with this lib:

Code: Select all

If OpenMailEx(1, #PBEx_Mail_Protocol_POP3, "pop3.gmail.com", 995, "myname@gmail.com", "mypassword", 1, @ErrorOutput$)
Any ideas?
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB.Ex Mail (Windows)

Post by RSBasic »

PB.Ex Mail 1.1.4.0 has been released.

Changelog:
  • Changed: OpenMailEx(): Additional parameter "ProtocolVersion" (SSL 3.0, TLS 1.0, TLS 1.1, TLS 1.2 supported)
Image
Image
dige
Addict
Addict
Posts: 1247
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: PB.Ex Mail (Windows)

Post by dige »

Muchas gracias, señor Ray :D 👏👍👍
"Daddy, I'll run faster, then it is not so far..."
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB.Ex Mail (Windows)

Post by RSBasic »

PB.Ex Mail 1.1.5.0 has been released.

Changelog:
  • Bugfix: MailEntryHeaderEx(): First character was missing.
Image
Image
Post Reply