HTML Website, Email issues - javascript

Hi I need some code to send e-mail directly with javascript, without load the information on a outlook server, or any other email server.
I am using HTML as its a static website. Is there any way to achieve this or do I have to move to asp.net just to get the system.mail library.
Any help will be highly appreciated.
Regards

No, in javascript all you can do is to open the mail client (if any).
To send a mail directly you must use a server side language

IF you don't have server side access to a mail server, and if it's about sending a form / feedback, on plain html you can use a 3rd party email form system. There are numerous companies who offer free email forms, you submit the html form to their server, and they send the form to the address you wish.
For example, you can try this one: http://www.emailmeform.com/

You have different options, unfortunately no one fits perfectly your definition
you can use a third party email form system. You basically set up a contact form (fields, tos, ccs...) that is than loaded to your page.
You call a server-side method that is managing your request (so you should go for ASP.NET or any other server side language)
You have a WebService way to contact your mail server and submit email requests, than you'll just need an ajax call to perform the operation
Call the user mail client (i.e Outlook, Thunderbird)

There is no way to do it in client side without calling the user mail client (i.e Outlook, Thunderbird). You can use asp.net or PHP for this issue.

Email functionality is a server-side function. So, yes, you will need to revert to a server-side technology like asp.net.
How about using ajax controls? that way you can give the impression of "client-side" emailing without page flicker.

Related

Is there a way to instantly send an e-mail using "mailto" in CSS (or any language-related to web development) without opening Outlook or Apple Mail?

I'm trying to create a personal website that has a contact form -- message box, for example -- but whenever I click submit or send, it opens up my Outlook e-mail, collects all the data I wrote down and then I have to click send again in Outlook to finally deliver that e-mail to someone. I'm new to webDev, so I'm just wondering if it's possible.
mailto: URLs are very unreliable and (when they work) always interact with the mail client on the user's machine.
Any solution involving submitting a form to a web server and sending email using server-side programming won't.
Use a server-side solution. Third-party hosted options exist if you don't want to do any server-side programming yourself.
The way to do this is to use a form to send data to your server. Your server then connects to an SMTP server to send the email.
If web pages could send emails on behalf of people without interaction, this would be used for spam.
It is not possible to directly send email from the web browser, whether it is CSS, HTML, nor Javascript.
I'm assuming that you'd like a contact page which would allow anyone visiting to fill in a small form which notifies you by email when they submit it?
unfortunately, this isn't possible using only css, html or javascript - which are the tools available to you in the web browser.
If you're willing to go a little deeper, then this is entirely possible given a server-side application. It's common to do this kind of thing in PHP, but any server-side language would be able to do this. You would need to do some set-up if you wanted to do it yourself, things like setting up a mail server to send outgoing mail. These things can be tricky. I'm sure that there are also many hosted options available, but I'm afraid I don't know of any.

Send e-mail via Javascript inside AngularJS with Parse.com

There is one way to send e-mails via Javascript inside AngularJS? I am use parse.com too but I don't now how to do this function. Isn't required to do with parse.com.
I have read that it can to be possible if I use SendGrid or Mandrill but I need pay to use it?
AngularJS is a client side JavaScript framework.
That said, you may want to do two things :
provide a mailto: link, which will call the client's email application
or provide a form which permit to send the email content to a web service on back end
If you was thinking about the second option (I can't tell, your question isn't what I called "complet"), try to search an API online.
What you're trying to do (use a client side application to send email via a app account) is a really wrong approach,
This site have the resolution: https://sendgrid.com/blog/send-email-static-websites-using-parse/

Is there a way I can have my website send an email without executing a script

I want to add a contact page on my webpage. However, I'm apparently not allowed to execute a script on my site since it's hosted on a protected school server.
Is there a work-around where I could send an email on the client side? (maybe some ajax trick?)
All I've found so far is a way to use javascript to open the default mail client and prefill all the data. However, I don't really like that. I'd really like a way to send an email directly from my site. I was even thinking that I could create a java applet to create my email page if that's possible.
There is no way to send an E-Mail from the client without the user's consent.
It would be a horrendous security problem if it were possible.
You could make use of a remote form mailing service like FormToEmail, though.

Email Using HTML and JavaScript

I am trying to create webpage where user can entered its detail like first name, last name, address and phone number. Once they have entered details and click on Send button it should send email to my email address and it should redirect to another page.
I am able to send email using mailto:email#gmail.com but it opens outlook with user details and then they need to click on send button to send email. I don't want outlook to be open and it should directly send email when they click on send button on form.
I am using JavaScript for validation and basic HTML tag to create form. Can anyone help me how to send email directly using HTML/JavaScript?
Thanks.
No, it is not possible to send an email with just JavaScript and HTML, you'll need some server side code to use a mailing protocol to send it out automatically. If you have web server setup you can then a server side language like PHP to create a script to send the data, see http://php.net/manual/en/function.mail.php.
There is no reliable way to send an email using client side code.
You need to submit the data to a server and process it with a server side program.
You can't send an email directly from client-side HTML/JS. You need to do it on the server.
As everyone else has said, you can't send email from the client side. However, you can use JavaScript to call a server-side script using an XMLHttpRequest, or jsonp if you're restricted by the same origin policy.
If you're new to serverside scripting, I'd suggest checking out PHP and its mail() function.

Send mail through client-side without launching an e-mail client (Silent email)

I want to send the email for html page. Is there any method to send the email silently i.e without opening the email client.
Can i have some method/way to do this using javascript or jquery ??
In this html page I dont want to show the client that any email is sending.
Any any help????
This isn't possible. And even if it was, it wouldn't be a cool thing to do.
If you want to send a web page via email why not just ask the user for their email address and then send it yourself server-side? You can use Ajax if you don't want to have a page refresh be required for this to work.
It is possible. SquareSend is one example. MailerJs is another. You only embed a tiny javascript in your webpage and you do not need a server.

Categories