PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

form notification using wrong sender's name

  1. Hi,
    We have the following problem :
    When a user fills a form, he receives a notification mail. The sender's name is wrong (we changed it in the notification part (and named it Travailler-en-Suisse.ch) but the users always receive the email with the name we used to register the product (dev2TESwp). It's the same problem with the email address (dtalerman@yahoo.fr instead of contact@travailler-en-suisse.ch).
    It's a real problem because it's absolutly not profesional.
    Can you help us managing this problem ?
    You can check it with a test form in :
    http://www.travailler-en-suisse.ch/formulaire-test
    (to access the form -> password : testingForm)
    Many thanks in advance.
    Regards
    David Talerman

    Posted 13 years ago on Wednesday June 15, 2011 | Permalink
  2. This is a web server issue. Your web server sends the email. If you configured the send from and reply-to email addresses in the Notifications and they aren't being used when the email is sent, then your web server is overriding theses settings. You may need to discuss this with your we host and explain to them you are setting the send from address using PHP but the web server isn't using what is passed to the sendmail function.

    Posted 13 years ago on Wednesday June 15, 2011 | Permalink
  3. Hi Carl,

    Many thanks for your quick answer. Are you 100% sure ? In fact, before GF, we used Contact form 7 on the same server and site, which uses, more or less, the same function, and we did not have any problem. I will ask the host as you suggest, but I am still wondering why it does not work any more.

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  4. Hi again Carl,

    The host answered there is no problem for them using PHP to send mails.
    Do you think it could be a conflict between 2 plugins ? FYI, we had recently installed : Magic Members, All in one SEO pack, Banner rotator, WP Table reloaded.
    Other solution : if we install again Gravity forms, can we use the same key ? Can we save the forms and data we have currently ?
    Many thanks in advance.
    Regards
    David

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  5. Nobody else is having this issue so it's going to be something specific to your site. Typically it's a web server configuration issue related to sending mail from unapproved From addresses that the web server overrides to prevent spoofing. It's not an issue of using PHP to send emails, it's an issue of using a Send From address that the web server doesn't approve of.

    Gravity Forms uses the wp_mail() function to send email. All it does is pass a To, From Subject and Body to the wp_mail() function and your web server sends the email.

    When discussing this with the host, did you discuss what Send From address you were trying to use? Because the issue is the web server isn't letting you Send From those addresses and is substituting it's own.

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  6. Hi Carl,

    Ok. It seems neither the host nor you can help us resolving this problem, each of you saying it's the other responsability.
    I have a problem to solve, and I have to resolve it quickly. We can not get into the code to try to anderstand why it does not work.

    Thus, I see 2 options :

    1/ installing GF again : if we install again Gravity forms, can we use the same key ? Can we save the forms and data we have currently ? Do you have a process for that ?

    2/ purchasing GF another time, with the "right" mail and "right" name.

    Do you think we can bypass the problem with one of these options ?
    Do you have another idea ?

    Many thanks
    Regards
    David

    Posted 13 years ago on Friday June 17, 2011 | Permalink
  7. The issue is the web server is not setting the Send To address, it's setting it's own. Your Gravity Forms plugin doesn't know what email you used to purchase Gravity Forms with. It isn't stored anywhere on your local plugin install and the plugin doesn't communicate with our servers to send email... so it isn't going to set this email for you automatically because it doesn't know or store this information.

    It's going to use whatever you configured in your Notification when it calls the wp_mail() function. But it's up to your web server to then send the email.

    We encountered a similar issue ourselves with BlueHost, and it was due to the fact we were sending From an email address that was not associated with our hosting account so it wouldn't allow us to use a different email address. BlueHost had to make a change on their end.

    Installing and re-installing Gravity Forms isn't going to correct this issue. It's an issue with how your web server is sending email. It isn't an issue with Gravity Forms itself, so re-installing won't resolve it.

    If you send us a WordPress admin login for the site we can take a look and create a test form with our own email, but if it's a web server issue related to sending email there isn't going to be anything we can do on our end to correct it. It's related to using Send From addresses that aren't associated with the domain name hosted on your web server.

    Another option you could try is to configure your site to send email using the WP Mail SMTP plugin which will use SMTP to send email. You can find this plugin here:

    http://wordpress.org/extend/plugins/wp-mail-smtp/

    You will have to install, activate and properly configure the SMTP settings for that plugin. It includes a Test Email feature that you can use to test to make sure the SMTP plugin is sending email properly.

    Posted 13 years ago on Friday June 17, 2011 | Permalink
  8. Hi Carl,

    Many thanks for your answer. We will try to discuss with the host.
    Regards
    David

    Posted 13 years ago on Monday June 20, 2011 | Permalink
  9. Hi Carl,

    FYI and for your customers, the problem was due to Magic Members. When you install the plugin MM, it automaticaly takes the control of all the mail sent. You need to change the settings in the Menu "MISC Settings".
    Many thanks again for your help.
    Regards
    David

    Posted 13 years ago on Tuesday June 21, 2011 | Permalink
  10. That explains it then. What is happening is the way Magic Members is setting the send to address for it's emails is entirely wrong, the way they are doing it is overriding it for all mail being sent with the wp_mail() function. Terrible.

    I'd suggest dropping the Magic Members support team a line and suggesting they changes this so it doesn't do this by default. There are better ways to set the Send To address, they shouldn't be doing it the way they are doing it.

    Posted 13 years ago on Tuesday June 21, 2011 | Permalink