Send email to different servers

Asked

Viewed 331 times

-2

I want my program, done in C# using a web service, to send an email every day with an attachment to some email addresses from different servers. I was watching a tutorial and I had a question. The guy set up the Hotmail server (smtp.live.com:587) because the email would be sent and received from Hotmail. How can I set this up so that my program can send the email to several different email addresses on several different servers like, Hotmail, gmail, internal company server. Does the configured server serve the sender and recipient account or the sender only? If this is only the case of the sender account only need to configure your server?

Follow a video tutorial print for better understanding:

inserir a descrição da imagem aqui

Thanks in advance.

  • 1

    Come on, if I got your question right, you want to know how to send multiple emails to several different email addresses. That’s it? I do not understand the reason to deny the question, because it is well written @kaamis instead of sharing an image, share the comic, get better understood.

  • That’s right @Pedrocamarajunior I haven’t done anything yet related to sending the email, for now I’m just looking for some tutorials because I had never sent the email via C#.

  • Tip: Post the code instead of a screenshot of it. Everyone hates having to write code in order to test or make changes.

1 answer

-1


The configured server serves the sender and receiver account or sender only?

You will configure only the sender, and with this sender you can send e-mail to any other server and how many times you need.

Behold that question here at Sopt which explains how to send using gmail, you can use any email server to send.

  • 2

    Pedro, I’m sorry to disagree with your answer, but if there is already something that answers here on the site then mark the question as duplicate instead of answer. I’m sure you’ll take this as a constructive criticism.

  • I didn’t judge it as duplicate because it doesn’t ask "how to do", her question in my point of view is whether she needs to set up multiple servers for sending, one for each domain. What I answered at the beginning of the reply, the second part is just a complement.

  • I did not judge this by the question but by your answer, if another answer explains the how to do and your answer here sounds more like a comment, so the best way is just to duplicate. I hope you understand what I mean :)

  • 1

    I think I understand what you mean now. In this case, I should just comment on the question itself , because it is a comment. Thanks for the tip. ;)

  • 1

    That’s right Pedro, another tip, always use @[nome do usuário que você quer se comunicar], example @GuilhermeNascimento :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.