0

Hi,

I'm using winxp with the latest version of Dev-cpp (none of that dotnet please) and I was wondering what is the easiest way to send an email.

Are there any libraries I could use?

2
Contributors
10
Replies
12
Views
9 Years
Discussion Span
Last Post by iamthwee
1

The simplest thing I can think of is to use some kind of pop3 library... I'm sure there are probably some available. ( first hit -- http://www.marshallsoft.com/see_4c.htm No idea on how good it is )

If not I reckon you should be able to do something with libcurl ... I'm guessing here ( http://curl.haxx.se )

Also, a buddy of mine made a VB script before to spam people that annoyed him. It sent emails from his gmail account. I know VB probably isn't your ideal solution, but it's an option if all else fails.

Failing all this you could write a library yourself :) Like sockets?

What OS? XP?

Edit: First one is not free, alas. Search around and I'm sure you'll find something.

Votes + Comments
Thank you sir.
0

That curl looks like the one I need. Can you show me an example.

I'm just wondering if it might be easier to use something like python ... no that won't work I need this to be a stand alone program.

0

>> Can you show me an example.
Now what would you do if a newb asked this, huh? However, here is a link with a number of sample programs -- http://curl.haxx.se/libcurl/c/example.html Not sure if what you want is exactly there. It's fairly straightforward to use, libcurl. Playing around with it should suffice.

As for python, I have no idea. You could possibly compile it to a dll and link from that...

Also, if you do decide on using libcurl you're going to have to build it with openssl and zib so it will have https access, as far as I remember.

0

>As for python, I have no idea. You could possibly compile it to a dll and link from that...

Please can you explain how to compile it to a dll. I was under the impression you can only use a python script if the OS has the python files installed.

>Also, if you do decide on using libcurl you're going to have to build it with openssl and zib so it will have https access, as far as I remember.

I've had a quick look. What I think might be easier is if I download the curl exe and then call the program with the relevant command line arguments. Then I don't need to compile the source...

0

>> Please can you explain how to compile it to a dll.
I've no idea. Try here. I was just thinking on my keyboard.

>> I was under the impression you can only use a python script if the OS has the python files installed.
Well, python's a scripting language, right? One that uses an interpreter to perform some function. In that respect it's similar to Perl, which I have used, and I have heard of (not used), some programs which will convert the script to a stand alone executable. So I assume scripts could be converted to dlls too. Then my mind suggested that this might be feasible with Python too.

The source isn't too hard to compile. And it brings advantages with it too rather than using the exe straight.

Edit: This seems encouraging: http://www.velocityreviews.com/forums/t343251-making-a-dll-with-python.html

0

Hmm, I'm looking through the manual, but I can't find any example about actually sending an email from curl?

Ok Let me put this simply.

Let's say I want to send an email message "hi it's me" to 'iamthwee@hotmail.com', how would I do this using cURL?

0

I don't know.
I haven't done it.
I was suggesting methods that should work. Effort will need to be expended. As we say: Show some work and we'll help.

-2

LOL please don't patronize me.

Ok, let's forget the whole python thing.

I'm using the curl exe,
http://curl.haxx.se/dlwiz/?type=bin&os=Win32&flav=-&ver=2000%2FXP (you can download this too to help me)

and I'm reading the manual, now how do I do something like send an email message "hi it's me" to 'iamthwee@hotmail.com', purely using cURL, i.e no PHP or PYTHON scripts. I understand it would be trivial to do using PHP, PYTHON, or PERL, but I want this to be a stand alone application for windows xp.

Thanks for your help.

0

I came across this - http://curl.haxx.se/mail/lib-2004-10/0032.html which suggests that some email servers can work with libcurl. But those that do work because of happy chance rather than plan.

If you have a mailing sending service that you can trigger using one of the
protocols libcurl supports, then yes. libcurl has no SMTP or similar support.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.