electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Help needed to send email from simple C program


Post new topic  Reply to topic    EDAboard.com Forum Index -> Software Problems, Hints and Reviews -> Help needed to send email from simple C program
Author Message
E-design



Joined: 01 Jun 2002
Posts: 947
Helped: 68


Post16 Aug 2007 3:37   

sending email from a c program


I need to send a message as soon as a simple C program produced a wanted result. I need to include the value of a variable in the email message. I am not sure how to go about this. Please help.

I found this on Google but it won't compile with an error about MailMessage mail and there's no method to attach a value in the message.

Code:
// create mail message object
MailMessage mail = new MailMessage();
mail.From = " ";           // put the from address here
mail.To = " ";             // put to address here
mail.Subject = " ";        // put subject here   
mail.Body = " ";           // put body of email here
SmtpMail.SmtpServer = " "; // put smtp server you will use here
// and then send the mail
SmtpMail.Send(mail);
Back to top
ship_baba



Joined: 09 Aug 2007
Posts: 88
Helped: 1


Post17 Aug 2007 3:38   

Re: Help needed to send email from simple C program


what os you are using
Back to top
Google
AdSense
Google Adsense




Post17 Aug 2007 3:38   

Ads




Back to top
E-design



Joined: 01 Jun 2002
Posts: 947
Helped: 68


Post17 Aug 2007 5:31   

Re: Help needed to send email from simple C program


It will be working with Windows XP
Back to top
vinseth



Joined: 06 Jul 2007
Posts: 37
Helped: 3


Post20 Aug 2007 9:22   

Help needed to send email from simple C program


the code you have presented is with C++,i guess.
Did you refer some network books for C codes...
Back to top
E-design



Joined: 01 Jun 2002
Posts: 947
Helped: 68


Post20 Aug 2007 17:08   

Re: Help needed to send email from simple C program


I have been looking for days for C code everywhere on the net. All I want is someone to provide a sample of code or to tell me that it can't be done with standard C code. Thanks
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Software Problems, Hints and Reviews -> Help needed to send email from simple C program
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
AT command to send SMS email? (2)
Is it possible to send an email with sim340? (1)
simple C program help (7)
Simple Program Code Help (3)
Simple application program using Microblaze..pls help.. (1)
Send data from ATmega32 to AT89S51 via SPI....help!!! (4)
send me program in java (1)
Help:Simple scheme of power conversion from 3.3V to 5V (5)
C program to send AT Commands..is it correct??? (17)
send the program in embedded c to run dc motor (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS