Hi all,
I am writing a simple mail program with C++.
Here is ths code:
//MAIL command to server
write(sock, "MAIL FROM:", 10);
write(sock, this->sender.c_str(), sizeof(this->sender.c_str()));
write(sock, "\n", 1);
And here is the error I get when I run it:
To Server: MAIL FROM:<fakeName@fake.com>
From Server: 500 5.5.1 Command unrecognized: ""
I've been stuck on this for a while, I'm hoping someone will see something I cannot.
Thanks!
Slo-No
The trouble with programmers is that they get high on their own supply. -Dimandja
I am writing a simple mail program with C++.
Here is ths code:
//MAIL command to server
write(sock, "MAIL FROM:", 10);
write(sock, this->sender.c_str(), sizeof(this->sender.c_str()));
write(sock, "\n", 1);
And here is the error I get when I run it:
To Server: MAIL FROM:<fakeName@fake.com>
From Server: 500 5.5.1 Command unrecognized: ""
I've been stuck on this for a while, I'm hoping someone will see something I cannot.
Thanks!
Slo-No
The trouble with programmers is that they get high on their own supply. -Dimandja