Contact Form Email

  • Started
  • Last post
  • 3 Responses
  • oey

    I have two issues in the Website I'm working on not directly I suppose to do with the coding:

    1) I created the Email address . The emails sent to this address are forwarded to . Instead of showing it sent by it shows that the Emails are sent by the default web provider admin Email address ().

    I tried to find something Email related in the PhpMyAdmin's variables without success.

    How to change this?

    2) I created a page with a contact form in the website so visitors can send a message. I receive an Email informing me that I received a new message via contact form. It shows sent by my web providers default Email address.

    How do I get the email address of the visitor as the sender ("from") of the message instead again of the web admin Email?

    I tried to search for it everywhere and couldn't find a solution or a discussion on this topic. Can someone help me with a solution or a link or whatever? I thought it had something to do with the PHP.

    I already contacted the Hosting Provider, I'm waiting for a reply.

  • oey0

    Fuck!

    1) I created the Email address "info at mydomain dot com" The emails sent to this address are forwarded to "main at mydomain dot com". Instead of showing it sent by that Emaill address it shows that the Emails are sent by the default web provider admin Email address ("web at servername dot configcenter dot com").

    I tried to find something Email related in the PhpMyAdmin's variables without success.

    How to change this?

  • sted2

    it's just a simple php script or is this a site with a framework like wordpress?
    if it's a simple mailer script use the heders to set the from address

    $headers = "From:

    https://www.w3schools.com/php/fu…

    phpmyadmin has nothing to do with phpmailer or the servers sendmail settings.

    • From: webmaster@example.co...sted
    • thanks! it worked! I have no knowledge of PHP :-(oey
  • oey0

    Hey sted, again, thanks a lot!

    I check lots of stuff in w3schools but somehow I let that one slip.
    Now I feel like "doh!"

    I wrote php for the first time for this contact form and had two errors that were making it not send the messages. then a friend of mine helped me correct those two errors.

    It's a simple php script by the way.