Alex Solanos wrote: > I am trying to send an email through SMTP and gmail. I get output error 'Login denied' (see attached screenshot for output). > I am sure that the login and the password are correct. I triple-tested them! I am trying to make a simple program > in C++ in order to automate a bit the mailing process (there are good tools for this but I found them "heavy" for > any system!), so I want to make something "light" for my own purposes only! Note that I am trying to attach a file to > this email (my_attachment.tar.gz)
!!!!!!!!!!! Your attached screenshot tells the whole universe what your password is !!! CHANGE IT ASAP !!!!!!!!!! > This is the code I use: > #define FROM "[email protected]" > #define TO "[email protected]" Your authentication has been accepted by the gmail server (235 2.7.0 accepted), but the "MAIL FROM command has a syntax error: you have to enclose e-mail addresses in <>. Try: #define FROM "<[email protected]>" #define TO "<[email protected]>" ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
