How can I configure the SMTP in .NET

Hello everybody, I’m creating a web application in .NET wich i need to use the SMTP server from Hubspot, I already have the addon, I also generated a token, but I dont know wich host and port to use, the bellow dont work:

2024-03-05 14_43_56-WebApplication1 - Microsoft Visual Studio.png

Hi @EOliveira6, I hope that you are well!
I have moved your post in the Developers Forum so that you can get help from experts in this field!
I understand that you are trying to create a web application in .NET but you don’t know which host nor port to use.
I’d like to invite a couple of subject matter experts and some of our Community Members to this conversation: Hi @ryhonda, @jmichaelTest, @louischausse, @Teun and @zach_threadint do you have suggestions to help @EOliveira6, please?
Also, if anybody else has anything to add and/or share, please feel free to join in the conversation :slightly_smiling_face:
Thank you and have a nice day!
Best,
Bérangère

Hi @EOliveira6 :waving_hand:

I’ve not used this API personally, but happy to try to point you in the right direction.

Have you reviewed this documentation?: Transactional Email (SMTP API)

There’s specific guidance given for deciding on which SMTP Hostname and Port to use in there.

I hope that proves helpful. Please let me know if you have any follow up questions.