2

I should send email trough app but I want send it from another mail account (no gmail). I've coded a class Mail and I set host="mail@xxxxxx.xx" but in debug mode I've seen that variable host is = "smtp.gmail.com". How is possible? There is a trick?

Claudio Pomo
  • 2,282
  • 6
  • 40
  • 68

1 Answers1

0

You're using the JavaMail API to send the mail, right?

Check the JavaMail FAQ, there's several ways to specify the host you want to connect to, including setting a property or passing it explicitly in the call to the connect method. Without more detail on what exactly you're doing, it's hard to say where you went wrong.

Bill Shannon
  • 28,939
  • 5
  • 37
  • 39