Receiving emails and sending
Posted: Mon Nov 15, 2010 3:29 pm
Hi all
I've been searching a lot, and can't still figure it out. Iv'e been trying using Gnozal's mail library, but can't get that to work (get a fatal error: Corrupt library: '.\PurePOP3_LIB_NEW_1.lib') and I'm using Gnozal's test-code that was included in the PurePOP3_450.
Anybody knows how to receive emails in other ways?
Now I've been trying to SEND emails, and that doesn't work either. I'm using the code from the Purebasic library:
And still can't send the mail? Anybody knows why?
Thank in advance.
I've been searching a lot, and can't still figure it out. Iv'e been trying using Gnozal's mail library, but can't get that to work (get a fatal error: Corrupt library: '.\PurePOP3_LIB_NEW_1.lib') and I'm using Gnozal's test-code that was included in the PurePOP3_450.
Anybody knows how to receive emails in other ways?
Now I've been trying to SEND emails, and that doesn't work either. I'm using the code from the Purebasic library:
Code: Select all
;
; ------------------------------------------------------------
;
; PureBasic - Mail example file
;
; (c) Fantaisie Software
;
; ------------------------------------------------------------
;
InitNetwork()
If CreateMail(0, "fred@purebasic.com", "Hello !")
SetMailBody(0, "Hello "+Chr(10)+"This is a mail !")
; This has been deleted: AddMailAttachment(0, "My description", "brook_3d.png")
; This has been deleted: AddMailAttachment(0, "My description 2", "test.bmp")
AddMailRecipient(0, "test@yourdomain.com", #PB_Mail_To)
; This has been deleted: AddMailRecipient(0, "test2@yourdomain.com", #PB_Mail_Cc)
Result = SendMail(0, "send.one.com", 2525)
Repeat
Progress = MailProgress(0)
Delay(300)
Until Progress = #PB_Mail_Finished Or Progress = #PB_Mail_Error
If Progress = #PB_Mail_Finished
MessageRequester("Information", "Mail correctly sent !")
Else
MessageRequester("Error", "Can't sent the mail !")
EndIf
EndIf
Thank in advance.