Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6950249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:04:11+00:00 2026-05-27T14:04:11+00:00

I have a simple php email form where the form is validated and submitted

  • 0

I have a simple php email form where the form is validated and submitted through an ajax call to an email.php. It works fine on my own server, but on Amazon S3 I get the error: MethodNotAllowedThe specified method is not allowed against this resource.OBJECTPOST2871412DE... and then a continuing string of numbers and letters.

my php file is as follows

<?php

$to = "person@domain.com";
$subject = "Message from ".$_POST['my_name'];

$person = $_POST['my_name'];
$email = $_POST['my_email'];
$comments = $_POST['my_comments'];



$headers = "From: ".$email."\r\n" .
         "Reply-To: ".$email. "\r\n";

$message = "Entry from: ".$person." (".$email.")\n\n Comments: ".$comments;

$result = mail($to, $subject, $message, $headers);


?>

Here is the ajax call (w the absolute php url censored):

$(document).ready(function(){

    $("#emailSubmitBtn").click(function(){

        if ( $("#contactForm").valid() ) {

            var myName = $('#my_name').val();
            var myEmail = $('#my_email').val();
            var myComments = $('#my_comments').val(); 

            var dataString = 'my_name='+ myName + '&my_email=' + myEmail + '&my_comments=' + myComments;

            $.ajax({
                type: "POST",
                url: "http://####.s3.amazonaws.com/email.php",
                data: dataString,
                success: function() {
                    $('#contact').html("<div id='message'></div>");
                    $('#message').html("<p>Thank you for submitting the form!</p>")
                    .hide()
                    .fadeIn(1500);
                }
            });
            return false;
        }


    });

});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:04:12+00:00Added an answer on May 27, 2026 at 2:04 pm

    Amazon S3 can’t execute PHP files, so what you’re trying to do simply won’t work.

    You can post a file to an S3 bucket (rather than a specific file URL, hence the allowed method error), but you can’t run code there. It’s the Simple Storage Service.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have developed a simple php contact form, that's working fine, but i am
I have a simple email form: <form method=post action=process-form.php id=emailForm name=emailForm target=_self> <h4>Sign up
I have a simple PHP mailer script that takes values from a form submitted
I have a simple PHP form that sends an email to its visitors from
I have a simple php form, like this: <?php if(isset($_POST['myform'])) // email... else //
I have a simple php script on my domain that sends me an email:
I have a page called send.email.php which sends an email - pretty simple stuff
I have a page called send.email.php which sends an email - pretty simple stuff
I have a simple php script on a server that's using fsockopen to connect
I have simple form. <form target=_blank action=somescript.php method=Post id=simpleForm> <input type=hidden name=url value=http://...> <input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.