Hi all
I'm writing a small app that needs to be in C++ and needs to send email
from inside the program. I can do this easily in PHP, Perl and Java,
but have no clue how to do it in C++.
Does anyone know of free code I look at that incorporates this
function? Basically, I need to send a simple email to the system
support if something goes wrong in the program. The program will be
running on Windows and I'll be compiling it under MinGW.
Any and all help is much appreciated.
Thanks 14 6533
Rostau wrote: I'm writing a small app that needs to be in C++ and needs to send email from inside the program. I can do this easily in PHP, Perl and Java, but have no clue how to do it in C++.
Well, that's understandable. There is no way to do it in C++. You need
to use some kind of OS-specific facility.
Does anyone know of free code I look at that incorporates this function?
Plenty. Have you ever heard of www.google.com?
Basically, I need [..]
Whatever.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
"Rostau" <ev********@ana nzi.co.za> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. . Hi all
I'm writing a small app that needs to be in C++ and needs to send email from inside the program. I can do this easily in PHP, Perl and Java, but have no clue how to do it in C++.
Does anyone know of free code I look at that incorporates this function? Basically, I need to send a simple email to the system support if something goes wrong in the program. The program will be running on Windows and I'll be compiling it under MinGW.
A few ways depending on how you want to do it. One way is to open a socket
connection to your SMTP server and send the message that way. The otherway
is to interface with some system e-mail software.
Both are rather off topic here though. Start googling for both solutions
and pick the one you want. If you have problems implementing it because
you're code isn't working, that's on topic.
Thanks for basically being a rude git. If you didn't have anything to
contribute, why did you bother posting? Techno-arrogance is for
wankers. Way to encourage people to learn things, dickhead.
Thanks for this. For the record, I have googled. I was hoping someone
had knowledge of a piece of working code that does this simple task and
was free to distribute. Google throws up a variety of libraries, most
of which seem to do far more than what I want, which is simply build
email, connect to server, send mail.
Thanks anyway.
Rostau schrieb: Hi all
I'm writing a small app that needs to be in C++ and needs to send email from inside the program. I can do this easily in PHP, Perl and Java, but have no clue how to do it in C++.
Does anyone know of free code I look at that incorporates this function? Basically, I need to send a simple email to the system support if something goes wrong in the program. The program will be running on Windows and I'll be compiling it under MinGW.
Any and all help is much appreciated.
Maybe this has what you need: http://www.appinf.com/docs/poco/
( http://www.appinf.com/docs/poco/Net....ntSession.html)
HTH
Stefan
--
Stefan Naewe
naewe.s_AT_atla s_DOT_de
Looks great. Thanks a lot :-)
Rostau wrote: Thanks for basically being a rude git. If you didn't have anything to contribute, why did you bother posting? Techno-arrogance is for wankers. Way to encourage people to learn things, dickhead.
You do know that your posts are archived for posterity, don't you? I
really want to congratulate you on your success for potentially screwing
your career when a prospective employer of yours reads your posts. Name
calling is for children. Way to behave on the 'net with strangers.
FOr the record, I did contribute. At least now you know that if you
misbehave, you will face unpleasantness, even if it's just in the form of
irritation after reading replies to your messages. Read the FAQ, read
the newsgroup before continuing to embarrass yourself. Learn what
topicality is and how to communicate with other people without offending
them. And meanwhile, welcome to my killfile.
"Rostau" <ev********@ana nzi.co.za> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. . Thanks for this. For the record, I have googled. I was hoping someone had knowledge of a piece of working code that does this simple task and was free to distribute. Google throws up a variety of libraries, most of which seem to do far more than what I want, which is simply build email, connect to server, send mail.
Thanks anyway.
Try sourceforge.
Rostau wrote: Thanks for basically being a rude git. If you didn't have anything to contribute, why did you bother posting? Techno-arrogance is for wankers. Way to encourage people to learn things, dickhead.
*plonk*
Brian This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike Gorgone |
last post by:
Hi All,
I'm currently sending email with a backend program that is being used
to monitor data in a SQL2000 database.
Basically I'm trying to figure out how to add a link to the email body
that has text instead of the really, really, long "http://..." string
that is generated by the program. The "http://" string shows up fine
and you can click on it but a nice hyperlink version that read "Click
here" (or something like that would be...
|
by: Ron Harter |
last post by:
I am developing a C# windows application that will allow a user to send an
e-mail to an SMS server when events happen in the system. I was going to use
System.Web.Mail namespace and use the smtpmail class to compose and send the
mail.
The application is a windows based application and when I build the
application I get an error on the using System.Web.Mail line.
Does the application have to be run on a server? I am working on XP...
|
by: joe215 |
last post by:
I want my users to send emails from a Windows app that I am developing in
Visual Basic.NET 2003. I found a good example of sending email to a SMTP
server using the SmtpMail class. However, using this, it seems, that the
user must install IIS on their computer. Isn't there a class that will
detect whatever mail server is available on a computer and use that? How do
I create this functionality without having the user add any other...
|
by: Nathan Sokalski |
last post by:
I would like to be able to send the user to another URL programmatically.
Because the destination URL is not known until runtime, I cannot use the
Response.Redirect method. I do not want to use the Server.Transfer method
because I need the new URL to be displayed in the browser's address bar.
Does anybody have any ideas? Thanks.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/
|
by: UJ |
last post by:
I'm way out of my league here but I'm having problems sending e-mails
programmatically. I have a web app that will allow users to have e-mail sent
to them (forgotten password/resetting password, ...) When I send it to the
same domain as our company, it works fine. When it's outside the company, I
get an error message saying '550 not local host <domain name>, not a
gateway.
So for instance - if I am trying to send an e-mail from our...
| |
by: trevisc |
last post by:
Good afternoon everyone.
I'm currently trying to build an automated invoice system that
collects dynamic data and automatically sends out invoices. In my
test database I have 23 companies that i'm trying to send out.
I am currently using Web.Mail.MailMessage with my cable internet SMTP
as the server to send out to. I've noticed that if I just run it
straight through it will time out (almost like the server detects it's
being over...
|
by: squishy |
last post by:
I want to check an emailbox (that does not offer forwarding functions) and
forward the mail in it to my new account. That's not a problem.
But, I want the mails that I forward to my new email account to look and act
like they came from the original sender (i.e. when I click reply, I want the
original senders address in my Outlook's "To" field).
How do I send these messages as though they came from the original sender?
|
by: =?Utf-8?B?VG9ueSBXaXNzbGVy?= |
last post by:
Hello everyone-
I am hoping a couple of you will have some ideas on this one...
I have a webform created in visual basic 2005.
Basically, the webform gather answers to the questions asked on the form and
included a couple free type multine textboxes.
When the user presses submit an message is created with the responses and
fired off to a MS Exchange mail enabled public folder.
|
by: sasnien |
last post by:
Hello All,
I have an Access '97 application that I currently have mail enabled
and sending properly. However, I want to add functionality to
effectively create a 30 day tickler, that would walk the end-user
through the process of creating the memo, but not send the email until
30 days from the current date. I can't seem to find any property that
would (hopefully) mimic this capability.
I am familiar with the basic .subject, .to,...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |