Well, how do you know who the message is coming from? Either it is predefined, in which case you should already know the SMTP server or you need to get a "From" address from the user at which time you would need to get the SMTP connect info from the user as well.