E-mail with 4.0

Just starting out? Need help? Post your questions and find answers here.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

@USCode: Don't know, maybe your ISP is the problem? It works fine for me
both at home and at work (2 different ISPs) and both Inf0Byt3 and srod have
no problem either... or check if your virus-checker is doing something (ie. try
turning it off temporarily while sending an e-mail). But it definitely works as it
conforms to the SMTP standard. You are using it with an SMTP server, yes?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Post by USCode »

PB wrote:... You are using it with an SMTP server, yes?
Like I said, the email is being successfully sent and delivered, just the body text is missing.
Sounds like some problem on my end, thanks for the code, I'll figure it out.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post by chris319 »

I have started work on a very simple text-only email reader. I have gotten as far as having the program retrieve a list of waiting messages, but I'm still pondering the program architecture, i.e. how to store received messages and headers, how to distinguish between known and unknown senders, how to handle attachments, etc. For security purposes there would be no HTML and no pictures contained within message bodies. The idea is to make it as malware-proof as possible and more user friendly than Pine. I am open to input on the implementation of the project.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> the email is being successfully sent and delivered, just the body text is missing

What happens if you send it to a web-based address, such as Gmail?
Because it also works fine with Gmail for me, so I'd be interested to
see what happens with Gmail for you.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> I'm using the exact code you posted here

Okay, I just changed my code here to not use just "Subject" and "Body" for
the mail, in case using those words alone were causing the problem for you.
So try the code with the new subject/body, or use your own, and see.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Post by USCode »

PB wrote:> I'm using the exact code you posted here

Okay, I just changed my code here to not use just "Subject" and "Body" for
the mail, in case using those words alone were causing the problem for you.
So try the code with the new subject/body, or use your own, and see.
Appears to be an issue with Thunderbird 1.5 and how it handles the message.
When I view the actual message source, the last 2 lines looks like this:
Subject: Subject
Message text ... Testing 1 2 3 ... EOM
So the body text is there in the message source, Thunderbird just isn't recognizing it as the email body text.

However if I just compose a simple email to myself in Thunderbird, the message source looks like this:
Subject: Subject
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Message text ... Testing 1 2 3 ... EOM
Must be some sort of formatting issue or a setup issue in Thunderbird.
Post Reply