Questions tagged [mail-form]

Mail forms are a user interaction pattern where a user enters mail contents into an HTML form and some program constructs an email message from that and sends it. Typical use cases are contact forms on personal homepages, comment forms on hand-moderated weblogs, and bug reporting systems.

Mail forms are among the earliest web technologies, and popular mail form technologies include:

  1. TF Mail in Perl. The venerable FormMail was the oldest widely used CGI mail form program, but is now deprecated.
  2. PHP Mailer includes support for mail forms; there are many easily configured PHP programs to implement mail forms
  3. Wordpress plugins such as cForms
96 questions
31
votes
4 answers

Contact us functionality in Rails 3

I want to make a contact us form in Rails 3 with the following fields: Name Email Message title Message body The posted messages are intended to go to my email address so I don't neccessarily must store the messages in the database. Do I have to…
rodrigoalvesvieira
  • 7,895
  • 15
  • 63
  • 84
25
votes
6 answers

Simple PHP form: Attachment to email (code golf)

Imagine a user that would like to put a form on their website that would allow a website visitor to upload a file and a simple message, which will immediately be emailed (ie, the file is not stored on the server, or if it is then only temporarily)…
Adam Davis
  • 91,931
  • 60
  • 264
  • 330
6
votes
1 answer

PHP - Form mail inserting ! and line break into long strings

I have a form on my company's site which takes a name, telephone number, and comments (and a couple other things). The comments box lets you type up to 5000 characters - a large limit to allow for very verbose customers. A valid form has its…
Mar
  • 7,765
  • 9
  • 48
  • 82
3
votes
2 answers

file attachment form c#

I'm creating a web form that requires an user to upload a file in doc, docx or pdf format. On submit, the form gets posted to an email address along with the attached file. I have successfully implemented the posting of the form to the email address…
Rafay
  • 30,950
  • 5
  • 68
  • 101
3
votes
1 answer

Plesk Parallels can't send email to account with external MX records

My domain @thisdomain.com is sat on my VPS. This VPS is the NameServer and provides the DNS for @thisdomain.com. The mail server for @thisdomain.com is hosted with an external webmail service provided by GoDaddy. Unfortunately my mail forms on my…
Henry Aspden
  • 1,863
  • 3
  • 23
  • 45
2
votes
2 answers

Rails ActionController::RoutingError (No route matches [POST] "/"):

rails 6.0.3 I have set up a static mail form using the gem 'mail_form'. I know that it working correctly because I can send an email from the rails console. The issue is on the form, when I press submit, it is coming up with a routing…
Lorenzo_xavier
  • 147
  • 2
  • 11
2
votes
0 answers

Problem with setting up oauth2 with nodemailer

I am building mail form with react, express and nodemailer and i have a problem. How to set up oauth2? I have some Error: invalid_grant This is my code: async function main2() { const output = `Some output text...`; // create…
2
votes
1 answer

Ruby on Rails: Cannot Move URL for Contact Form Without Getting NoMethodError

I am new to rails and I am having trouble moving a contact form from "/contacts" to "/contact". Simple, I know! I followed the following guide, and got everything working:…
2
votes
2 answers

Should I use formmail or PHP mail?

I recently started working on a web project which was already in progress; the guy who built the foundation for it had the signup page sending the form fields to a formmail Perl script, so that he could get an email when a user signs up. I'm not…
Sam Dufel
  • 17,560
  • 3
  • 48
  • 51
2
votes
3 answers

Ruby on Rails: How to customise error message for MailForm when field is blank

At the moment, if I leave a field in the form blank, I get an error message that is written in the en.yml file, how can I overwrite this error message in the model? class Contact < MailForm::Base attribute :name, :validate => true attribute…
ChatNoir
  • 415
  • 8
  • 18
2
votes
1 answer

Rails: Sending email after filling contact form

I'd like to create contact form using this tutorial At the end of that is writen that I should configure SMTP, so in config/environments/developement.rb I set config.action_mailer.default_url_options = {:host => 'myproject.c9.io'} (I'm using…
adolzi
  • 671
  • 2
  • 7
  • 15
2
votes
1 answer

MailForm is not sending email

I'm trying to setup a contact form for a website. Everything seems to work fine in the console but I'm not getting any email. Could someone tell me what am I doing wrong? I checked other answers but they don't solve my problem. Console: Loading…
ellen
  • 580
  • 5
  • 9
2
votes
9 answers

Mail Function displaying HTML as Text

I have the following mail function: \r\n"; $headers .= "Reply-To: info@####.com\r\n"; $headers .= "Return-Path: info@####.com\r\n"; $headers .=…
Aaron Lee
  • 1,146
  • 3
  • 14
  • 29
1
vote
1 answer

Rails mail_form, can't send attachment

** update when I set = f.file_field to multiple: true I am not able to send attachment. If file_field is set to sent just one file - it works!. In strong parameters I have: params.require(:contact).permit(:name, :email, :message, :file) I can't…
1
vote
1 answer

Mailform works locally but not in production (Heroku, Rails)

Quick question, I am using the Mailform gem on my rails app. Submitting a contact form from my rails app WORKS LOCALLY but does not work in production (Heroku). Using heroku logs --tails , I see that Heroku successfully sends the mail. However I do…
Ilia
  • 43
  • 9
1
2 3 4 5 6 7