
Originally Posted by
B1ackAnge1
SMTP requires authentication if the server is setup that way (99.9999% nowadays are). there are some public ones floating around, but spammers knocked that amount down to next to nothing.
It all depends on what you're really trying to do:
a) If you run an app on their computer for them to send a 'newsletter' they write to people they know (so you wrote a mailing app for them) it should be no problem to ask them for a SMTP server address & credentials. In fact that'd be the expected behavior since you don't know who/what they use for their email. Also you'd want the option to save those somewhere (config files, registry etc) so that they won't have to enter them every time if they so choose.
b) If you want to send other people a 'newsletter' you write then just run it on your computer, use your own credentials and call it good..
c) of course if you want to use their computer and email something without them knowing - basically trojan/spam (which really sounds more like it

) you'll have to use a server with a username/pw you provide in code or find a SMTP server that's public. You could always create a dummy gmail account or whatever, but then you have to remember they may have flood control enabled etc preventing the sending of too many emails at once and if the account gets blocked your program is dead in the water. (that's when getting updated credentials from online somewhere or a list of alternating logins come into play)
d) Spam SUCKS

so if it's C don't do it man

this was part of a exercise i got, the objective was to create 2 app's:
1 one)
A thing for people to register saying that they want to receive a newsletter.. bla bla bla, registering for something (not defined, just had to register).
Then it would save those e-mail's and things on a .txt file (or w/e).
2 one)
this one should get that .txt file created before, see the people that wanted the newsletter, and then send the email to them.
The program should be running on a "Company".
One person from it should like run the program every time a newsletter was needed to be send, see from the registered people who had newsletter active, and send it.
edit:
im not quite sure what you mean with option B, because it would ask for the credentials of the guy that is going to receive the mail right? or am i wrong?
If right, probably i have no access to those credentials.
edit2: oh and im not into those things on hacking , send trojans, spams, etc.. im just trying to expand my knowledge (just learn.. at least for now).
