It is currently Thu May 23, 2013 5:42 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 355 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 24  Next
Author Message
 Post subject:
PostPosted: Tue Oct 19, 2004 12:39 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
Got it. this worked for me
Code:
MsgBody.s          = "Sending an email with PB."+Chr(13)+"Is this a second line?"

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 19, 2004 12:46 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Have you tried CrLf (chr(13) + chr(10)) ?
EDIT you're to fast :wink:


Last edited by gnozal on Tue Oct 19, 2004 1:39 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 19, 2004 12:50 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
Works great now :)

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 7:20 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Library update (see first post or thread)
Changes :
- added function PureSMTP_POP3Messages(POP3Server.s, POP3Port.l, POP3UserName.s, POP3UserPassword.s)
Returns number of e-mails at POP3 server [>= 0 , else is error code]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 9:43 am 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
Kewl, soon, if you add a few more features, we can use this single lib to create a full email client ;) *S*

Keep 'em coming bud.

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 10:32 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue May 06, 2003 2:50 pm
Posts: 620
Location: Germany
GeoTrail wrote:
Kewl, soon, if you add a few more features, we can use this single lib to create a full email client ;) *S*

Keep 'em coming bud.
Or my own, customized, spam blocker *dreaming*


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 10:52 am 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
He he he that is actually something I am currently planning.
My own little tray-icon spam filter ;)

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 1:53 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Apr 25, 2003 6:51 pm
Posts: 762
Location: NC, USA
freedimension wrote:
Or my own, customized, spam blocker *dreaming*

Then you will need to also look at the POP3_Library at http://forums.purebasic.com/english/viewtopic.php?t=11136

GeoTrail wrote:
My own little tray-icon spam filter ;)

I know you have already been there since we conversed in that thread.

You may also want to look at http://forums.purebasic.com/english/viewtopic.php?t=12767
to see how I used POP3_Library to view the contents of my POP3
mailbox without downloading anything. Makes it easy to delete the spam
using something akin to a WebMail handler.

It isn't technically a spam filter, but it may give you some ideas.

Regards,
Terry


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 1:56 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
Thanks Terry.
Your help with the POP3 lib has been very valuable :)
And thanks for the link *S*

Hey, maybe we could start some OpenSource projects here?
We could start with a great spam filtering system, then build a cool email client. And maybe even a bundle package with FTP and other usefull apps :)

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 17, 2004 11:54 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jul 29, 2003 5:47 pm
Posts: 299
Location: FRANCE
Hi GeoTrail and all,

I have tried this very usefull lib and it works fine.
However, I noticed that it creates a thread that is never released/killed (why not), but I noticed also that my RAM usage for the app was nearly the double and was never released too after to have sent a single email.

Is there any memory freeing and sanity check in the code ?
Can't you close the additional thread ?
(apparently, by killing manually this thread within the app process, the memory is not released either).

I am just trying to help to improve this very handy lib ;)

regards.

_________________
- Registered PB user -

Using PB 4.00


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 27, 2004 11:12 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
AFAIK, there is no thread in the library and the allocated memory should be released. Did you use the PureSMTP_CloseSMTPConnection() function ? It frees the allocated memory.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 27, 2004 11:21 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jul 29, 2003 5:47 pm
Posts: 299
Location: FRANCE
Yes I use it upon sucessfull connection Only.

However I am calling all the mail functions stuff from a thread I have created myself, could it be the problem ?

I mean there is the program running, (1 thread), I create another thread which does various functions, and from this thread I send a mail and I close the SMTP connection, but an additional thread is still created and is kept in memory, and the RAM usage has growned twice.

I'll try to submit a working source code when I will have the time.

EDIT : Windows XP SP2

_________________
- Registered PB user -

Using PB 4.00


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 11, 2004 3:26 pm 
Offline
New User
New User

Joined: Sat May 15, 2004 12:52 pm
Posts: 4
Will SMTP Authentication be implemented in the future?

EDIT: I found a REALLY good explaination for the authentication process here:
http://www.winsockvb.com/forums/printthread.php?t=1369


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 14, 2004 10:30 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
pvmichael wrote:
Will SMTP Authentication be implemented in the future?


There is the PureSMTP_OpenPOP3ThenSMTPConnection() function, wich opens connection to POP3 server (authentification) and then to SMTP server. Does it no work for you ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 14, 2004 10:34 am 
Offline
New User
New User

Joined: Sat May 15, 2004 12:52 pm
Posts: 4
gnozal wrote:
pvmichael wrote:
Will SMTP Authentication be implemented in the future?


There is the PureSMTP_OpenPOP3ThenSMTPConnection() function, wich opens connection to POP3 server (authentification) and then to SMTP server. Does it no work for you ?


No it doesn't work for me. :cry:

I belive the SMTP Authentication will become more and more popular.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 355 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 24  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye