I created a C# email API using smtp google, but I can’t publish it

Asked

Viewed 108 times

-1

The API is working properly with google smtp, rescuing data from a page form and sending the email (tested by Postman and running locally), the only problem is that I am not able to publish, I have the access data to the ftp server where the site is published, the website is hosted at Locaweb. I am a beginner in the area and would like your help if it is necessary more information (codes) to clarify my question, please comment. Thank you in advance, thank you very much!

Note: I used Microsoft Visual Studio IDE and used ASP.NET(. NET Framework).

Publication process:

Step 1 - In Visual Studio

inserir a descrição da imagem aqui

Step 2 - I am posting the API in a local folder

inserir a descrição da imagem aqui

Step 3 - With Filezilla I transferred the files to the ftp server (where the site is already published) in a separate folder I called api

inserir a descrição da imagem aqui

Archives: inserir a descrição da imagem aqui

Step 4 - My question is which URL to use in Postman to test it

inserir a descrição da imagem aqui

Would it be/api/Sendmail(controller name)? because this way is giving error 404 not found

inserir a descrição da imagem aqui

Once again I thank you for your patience.

  • 1

    Look... you gave away all the unnecessary information and none needed. You did not enter any data about the framework used, about the.host server, publishing process, errors, ..., ...

  • I will edit the publication, try to clarify with images of the publishing process and the hosting server is Locaweb.

  • "the only problem is that I am not able to publish" what does that mean? can connect to the server and upload the files there?

  • Yes Ricardo Pontual, I can access the server and upload files, but unfortunately I do not know how to publish the Api there and in case which URL to use to work the same.

  • And what is the version of the framework? What are the characteristics of the server?

  • vc said the site already exists, so just publish locally and copy the files to the server

  • Hi Marceloawq, blz? So I did just that, the site already exists and is in the air, I posted the api locally in a folder and transferred the files of the same on the ftp server in a separate folder that I created and called api, but I’m not sure which way (Urlbase) use to make use of the API in a javascript file where the API is being consumed by Ajax. Could you explain this to me? The responses of the staff are making me more confused, because I am beginner in this area still. Thank you for your personal patience. I will do a new issue in the post to explain what I am doing so far.

Show 2 more comments

1 answer

-3

next to make application run you need to have installed the IIS and the version of the framework you used of . net If you have created a console-like application, just run it after publishing

  • Hi Westfall, blz? So that’s exactly what I’m having trouble understanding, sorry I can’t make my problem very clear, but your answer I think has left me more confused

Browser other questions tagged

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