Angularjs contact form

2,871 views
Skip to first unread message

nonyck

unread,
Aug 31, 2012, 3:37:44 AM8/31/12
to ang...@googlegroups.com
Hi all, and grats for the great comunity !!!

I love angularjs, and want know how to make a contact form with angularjs, so users on my web can send me an email from a form. I was searching and looks like its not a way to do it with angularjs, and its need a serverside coding.

It is true ???

Te nodejs server from - > https://github.com/angular/angular-seed, can be that server modificated for real deployment and add the logic of the sendemail in the server ???

Im a littl lost here, how nodejs and angularjs comunicates, and I saw diferent examples of angualjs + nodejs API, and found some people put the api in nodejs and other in angularjs, so w one Its the right place ???

If that server from the angular seed on github its perfect for deploy, how to deploy the app ??? In heroku ???, I think this final steps ( how nodejs and angularjs comunicates, and deployment of angularjs + nodejs) are missing. So I will apreciate tutorials ,links, guides, videos whatever for learn to do  it.

Thx alot

nonyck

unread,
Aug 31, 2012, 9:36:42 AM8/31/12
to ang...@googlegroups.com
No one knwo how to send emails w angularjs ?? Just a working example plz

Roy Truelove

unread,
Aug 31, 2012, 10:04:53 AM8/31/12
to ang...@googlegroups.com
Don't think you're getting much traction on this question because it's not really an Angular question - it's really a 'how do I write a webapp question', which is well beyond the scope of this forum.

If want the *client*, eg your browser, to send an email, check out this link:


If you want the *server* to send an email, as is ultimately recommended by the article, that's not going to involve angular at all.  You'll need to read up on how to create a webservice, and angular can communicate with that webservice (using the $http service).
Message has been deleted
Message has been deleted

Peter Smith

unread,
Aug 31, 2012, 2:47:16 PM8/31/12
to ang...@googlegroups.com
It's easy to send email from the client side. Check out this fiddle  http://jsfiddle.net/pjstarifa/Q462m/6/

Peter

nonyck

unread,
Sep 2, 2012, 2:23:59 PM9/2/12
to ang...@googlegroups.com
mmm thats not really the one I was looking for, its the one aks you for name, email and content, and directly sends the email without invoque the client email

Will Kriski

unread,
Sep 2, 2012, 5:38:04 PM9/2/12
to ang...@googlegroups.com
Just submit form to server via controller eg. http://stackoverflow.com/questions/6082520/how-do-i-submit-a-form-to-a-controller-on-the-server

Server code would do email in whatever language you choose eg. php, etc

nonick nonick

unread,
Sep 2, 2012, 5:45:13 PM9/2/12
to ang...@googlegroups.com

I like angular-seed for test my app and develop it, but I see I need swithc to php ruby rails etc so I can send emails and use authentication, cause that project ( angular-seed) Its not able to do it.

Dam I really liked how to test my app with that test server and e2e

Will Kriski

unread,
Sep 2, 2012, 6:06:14 PM9/2/12
to ang...@googlegroups.com
Yes angularJS is client-side so you still need a server side component.

anderson guilherme

unread,
Jun 23, 2016, 2:21:45 PM6/23/16
to AngularJS, nony...@gmail.com
But.... can i connect directly to a smtp server using the client-side javascript ?
Reply all
Reply to author
Forward
0 new messages