SBL2e & Email

Discussion to talk about software related topics only.
Post Reply
cmo
Posts: 20
Joined: Sat Jul 24, 2010 4:20 pm

SBL2e & Email

Post by cmo »

Ok, my last question on SBL2e specifics. I'd like to send email using the SBL2e. However, I see that the mailto.h/mailto.cpp has not been ported over to this device. Does anyone have a working example I can use? When I try to import those files, I get a host of errors.

Thanks in advance.
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: SBL2e & Email

Post by rnixon »

Since the stacks are different, your never going to be able to just copy files from one stack and have them work on the other. They are fundamentally different in how they operate. The fastest route to getting an answer on an unsupported protocol might be to go to their support site directly rather than the forum, although it is interesting to see what people are doing with this tiny device.
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: SBL2e & Email

Post by pbreed »

With he SBL2E assume that none of the code for the larger netburner platforms can come across unmodified.
The SBL2E is low cost, but for equavlant apps I would expect 4X as much developer time with the SBL2E as the larger platforms.
So unless you are shipping thousands of units you will never recoup the development cost difference.

Given that there is an SBL2E example to send E-mail.

look in nburn\examples\sbl2e\tcpsendmail

Paul
User avatar
Forrest
Posts: 288
Joined: Wed Apr 23, 2008 10:05 am

Re: SBL2e & Email

Post by Forrest »

Here's some source that allows you to send an email message with an L2e device. This follows the e-mail RFC to communicate with a server.

You will need to find the commented TODO's and add relevant information (server IP, device IP, email to and from address')

Not all mail servers will support this unauthenticated mail.
Attachments
main.cpp
(2.95 KiB) Downloaded 310 times
Forrest Stanley
Project Engineer
NetBurner, Inc

NetBurner Learn Articles: http://www.netburner.com/learn
cmo
Posts: 20
Joined: Sat Jul 24, 2010 4:20 pm

Re: SBL2e & Email

Post by cmo »

Forrest:

Thanks for the code, unfortunately, I need to authenticate the smtp user.

Paul, did you say there was an example? I don't have a nburn\examples\sbl2e\tcpsendmail folder or project. The closest thing is tcpClient. Maybe my CD is out of date, is there a place I can download it?

I really appreciate the help. Thanks again.
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: SBL2e & Email

Post by pbreed »

I thought that project was complete, it is not.

I'm out of the office next week and my list of commitments to complete before I leave is larger than I can get done.
I'll try and get another engineer to finish that project.
Its possible it may not be complete before I return and can review it.

Paul
Post Reply