Droopy's Lib

Developed or developing a new product in PureBasic? Tell the world about it.
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

I am not having any luck with regards to sending an Email with an attachment. It's the attachment that is not working properly for me.

Here is what I have (private data removed):

Code: Select all

SendEMailInit()
  SendEmail("A Name","myemail@goeshere.com","myotheremail@goeshere.com","tried-this-blank-and-filled-in","tried-this-blank-and-filled-in","mail.myispsname.net","PureBasic Test","This is the body")
  AddAttachment("C:\Documents and Settings\loggedinuser\Desktop\afilecollection.rar")
  
; and I tried below (plus I moved the AddAttachment() function above the SendEmail() function, to no avail.  Ideas?
  
Procedure SendThatEmail()
    SendEMailInit()
      SendEmail("A Name","myemail@goeshere.com","myotheremail@goeshere.com","tried-this-blank-and-filled-in","tried-this-blank-and-filled-in","mail.myispsname.net","PureBasic Test","This is the body")
        AddAttachment("C:\Documents and Settings\loggedinuser\Desktop\afilecollection.rar")
EndProcedure
Intrigued - Registered PureBasic, lifetime updates user
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

You must add attachment before sending mail 8)
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

Droopy wrote:You must add attachment before sending mail 8)
That's what I originally tried, actually, I just copied your help file information and changed such out with my data. I'll try again and see what I can come up with. *scratches head*

Thanks for your quick follow-up!

[late edit]

Ack! Solution found. Late last night (er... early morning) my eyes must have been giving me the run around... because I had the "sender" and "receiver" Emails transposed.

It works like a champ now!


Thanks for your help and patience Droopy! (and this excellent lib with a nice install routine, you set a good example on how to share!)

*thumbs up*
Intrigued - Registered PureBasic, lifetime updates user
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Intrigued wrote:Late last night (er... early morning) my eyes must have been giving me the run around... because I had the "sender" and "receiver" Emails transposed.
YOU MADE MY DAY!

I am so glad that I am not the only person to do that sort of thing!

:D
@}--`--,-- A rose by any other name ..
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

When I run GlobalMemoryStatusTotalPhys() it return 1535
Description :


Indicates the total number of bytes of physical Memory.
Obviously I don't have 1535 bytes of memory, I have 1536 MB or 1.5 GB. Is this a bug in the lib?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

GeoTrail wrote:When I run GlobalMemoryStatusTotalPhys() it return 1535
Description :


Indicates the total number of bytes of physical Memory.
Obviously I don't have 1535 bytes of memory, I have 1536 MB or 1.5 GB. Is this a bug in the lib?
It seems to be. My system returned 1023 (bytes). This system has 1GB of memory.
Intrigued - Registered PureBasic, lifetime updates user
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

I need to correct help for Memory Functions

It return a size in Mb :oops:

Thanks I'll correct it :D
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

hehehe that's ok :) great lib ;)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

Whoa! That's a fast response. (being it's nothing that is wrong with the code and it is just a documentation error)

*thumbs up*
Intrigued - Registered PureBasic, lifetime updates user
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

Post by TerryHough »

Code: Select all

MessageRequester("Droopy",FormatDate("%mm/%dd/%yyyy %hh:%ii:%ss",FileGetTime("c:\purebasic.chm",1)))
FileGetTime(file$,1) seems to be returning only the last accessed date
without the time. Is that intentional?
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

You use the option 1 :

0 = Time the File was created
1 = Time the file was last accessed
2 = Time the file was last written

With XP, on my computer it return the date and the time

If you're on Windows XP, right click in the explorer tabs
and select : show creation date / access date : You can show the 3 date the file can have
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

Post by TerryHough »

I was on Windows 98SE. But, I think it also returns this date without fail.

I have some other code for it somewhere. I will search and test and get
back to you.

Thanks,
Terry
sam99
New User
New User
Posts: 3
Joined: Mon Jul 04, 2005 5:42 am

Post by sam99 »

hi droopy, for unknown reasons I'm unable to download the Droopy Library, but I downloaded the help file successfully !!
Please send it to me through my e-mail
Thanks
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

You can also download @ purearea ( User Lib )

http://www.purearea.net
sam99
New User
New User
Posts: 3
Joined: Mon Jul 04, 2005 5:42 am

Post by sam99 »

Thanks Droopy, but its the same I'm unable to download it from the purearea !! I'm really dont know what is the problem ... I'll be glad sending it to me through my email ...
Post Reply