Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

brikesh987's Content

There have been 6 items by brikesh987 (Search limited from 20-April 23)


By content type

See this member's

Sort by                Order  

#58862 Sending mail with a Netduino Plus

Posted by brikesh987 on 23 June 2014 - 02:51 AM in Project Showcase

I am facing the  same issue, I tried  using the EHLO command isntead of HELO and passing userId with AUTH LOGIN as suggested above. But now I get a 500 error when the DATA command is issued.

Hey Tareq,

 

Did it work for you? What other lib you had to download?




#58821 SMTP with .NET Micro Framework

Posted by brikesh987 on 21 June 2014 - 07:05 AM in Netduino Plus 2 (and Netduino Plus 1)

Hello ,

 

I am using the following code. It's actually the same that you've suggested. But it give an exception 

private static void SendAlert() {
            // Defines the sender
            SMTP_Client.MailContact from = new SMTP_Client.MailContact("brikesh987@gmx.com", "Brikesh Kumar");
            // Defines the receiver
            SMTP_Client.MailContact to = new SMTP_Client.MailContact("brikesh987@gmail.com", "Brikesh Kumar");
            var recipients = new SMTP_Client.MailContact[2];
            SMTP_Client.MailContact cc = new SMTP_Client.MailContact("brikesh987@gmail.com", "Brikesh Kumar");
            recipients[0] = to;
            recipients[1] = cc;
            // Defines the mail message
            SMTP_Client.MailMessage Message = new SMTP_Client.MailMessage("Small test result");
            Message.Body = "This mail is sent by a Netduino :-)\r\n";
            Message.Body += "Good day!";
            ushort port = 587;
            // Initializes the mail sender class
            try
            {
                SMTP_Client Sender = new SMTP_Client(new IntegratedSocket("mail.gmx.com", port), SMTP_Client.AuthenticationTypes.Login, "brikesh987@gmx.com", "****");
                // Sends the mail
                Sender.Send(Message, from, recipients);
            }
            catch (Exception ex) {
                Debug.Print(ex.StackTrace);
            }         
           
        }
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Hardware.SerialPort.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.1\Assemblies\le\Microsoft.SPOT.Hardware.Usb.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.1\le\SecretLabs.NETMF.Hardware.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'SecretLabs.NETMF.Diagnostics'
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Netmftoolbox.com\.NET Micro Framework Toolbox\Assemblies\v4.1\le\Toolbox.NETMF.Core.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Netmftoolbox.com\.NET Micro Framework Toolbox\Assemblies\v4.1\le\Toolbox.NETMF.NET.Core.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Netmftoolbox.com\.NET Micro Framework Toolbox\Assemblies\v4.1\le\Toolbox.NETMF.NET.Integrated.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Netmftoolbox.com\.NET Micro Framework Toolbox\Assemblies\v4.1\le\Toolbox.NETMF.NET.SMTP_Client.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.1\le\SecretLabs.NETMF.Hardware.NetduinoPlus.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Work\MyProjects\Netduino\BabyMonitor\BabyMonitor\bin\Debug\le\BabyMonitor.exe', Symbols loaded.
The thread '<No Name>' (0x2) has exited with code 0 (0x0).
    #### Exception System.ArgumentOutOfRangeException - CLR_E_OUT_OF_RANGE (1) ####
    #### Message: 
    #### System.String::Substring [IP: 0000] ####
    #### Toolbox.NETMF.NET.SMTP_Client::.ctor [IP: 002e] ####
    #### BabyMonitor.Program::SendAlert [IP: 006a] ####
    #### BabyMonitor.Program::Main [IP: 002e] ####
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
    #### Exception System.ArgumentOutOfRangeException - CLR_E_OUT_OF_RANGE (1) ####
    #### Message: 
    #### System.String::Substring [IP: 0000] ####
    #### Toolbox.NETMF.NET.SMTP_Client::.ctor [IP: 002e] ####
    #### BabyMonitor.Program::SendAlert [IP: 006a] ####
    #### BabyMonitor.Program::Main [IP: 002e] ####
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
System.String::Substring
Toolbox.NETMF.NET.SMTP_Client::.ctor
BabyMonitor.Program::SendAlert
BabyMonitor.Program::Main
 
The program '[8] Micro Framework application: Managed' has exited with code 0 (0x0).
 
 
Can you pllease help me out?



#58820 SMTP_Client throws System.ArgumentOutOfRangeException

Posted by brikesh987 on 21 June 2014 - 06:46 AM in Netduino Plus 2 (and Netduino Plus 1)

I am also getting this error. Looks like this bug is not fixed. Did you guys find any other ways to send email?




#58817 Sound Sensor, Wifi Shield and BreadBoard

Posted by brikesh987 on 21 June 2014 - 01:18 AM in Netduino Plus 2 (and Netduino Plus 1)

Thanks for the response. Quite explanatory. Thanks again :)




#58773 Sound Sensor, Wifi Shield and BreadBoard

Posted by brikesh987 on 19 June 2014 - 06:08 AM in Netduino Plus 2 (and Netduino Plus 1)

Thanks for responding. I got the sensors, breadboard, connectors from radio shack. However I am still not able to find a netduino plus compatible wifi shield. Can you help me out?




#58762 Sound Sensor, Wifi Shield and BreadBoard

Posted by brikesh987 on 18 June 2014 - 02:16 AM in Netduino Plus 2 (and Netduino Plus 1)

Hello Friends,

 

I am fairly new to Netduino Plus platform. I bought one recently and have started playing around with it.

 

I am starting off a project which I need following :

 

1. A sound sensor compatible with Netduino Plus

2. A breadboard

3. A Wifi Shield

 

For Wifi shield, I saw Edimax been suggested on the forum (http://forums.netdui...56-wifi-shield/)

 

Can you please suggest me, for the above three, where can can I purchase them and which one to purchase. If it integrates with the Netduino board with minimum fuss.

 

Any help would be greatly appreciated.

 

Thanks,

Brikesh





home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.