Forums

[Plugin: SimpleModal Contact Form (SMCF)] Not getting sender's mail (11 posts)

  1. cocobongo
    Member
    Posted 2 years ago #

    Hi, I'm getting some trouble with SMCF, I get the messages and everything, but I don't get the mail from the sender, so I can't reply messages. Is there a way to change this? In the contact form, the mail is there and on top of that is required, but when I get the message that field just isn't there

    Thanx in advance! :)

  2. Eric Martin
    Member
    Posted 2 years ago #

    Have you modified the script at all? Can you share the URL?

  3. cocobongo
    Member
    Posted 2 years ago #

    no, you can see it at http://victoriadondaperez.org.ar/2009/

    and this is how I get mails:
    -------------------------------------------
    From: Someone

    Message: Some message.
    -------------------------------------------

    nothing else :(

  4. kreegah
    Member
    Posted 1 year ago #

    Did you ever find out why this is Cocobongo? Cause I am having the same issue, the only thing I've altered is some css values (not removed anything, only changed colors)

  5. Eric Martin
    Member
    Posted 1 year ago #

    Perhaps it is an issue with other plugins or the content you are trying to send?

  6. kreegah
    Member
    Posted 1 year ago #

    Previous messages came like this:
    ----
    From: NAME

    Message: BLA BLA
    ---
    although the e-mail is a required field.

    So I searched around a bit and saw that the code was missing
    $body = "E-post: $email\n\n";
    from // Set and wordwrap message body in smcf_data.php

    so I altered the code to this:

    // Set and wordwrap message body
    	$body = "From: $name\n\n";
            $body = "E-mail: $email\n\n";
    	$body .= "Message: $message";
    	$body = wordwrap($body); // default is 75 characters

    Afaik it works perfectly now, but how the code was missing...I have no idea

  7. Dimonira
    Member
    Posted 1 year ago #

    2 kreegah:

    The point is missing, the correct line looks like this:

    $body .= "E-mail: $email\n\n";

    -------------------------------------------------------------
    For localization users I wrote code like this:

    // Set and wordwrap message body
    $body = __("Name", "smcf") . ": $name\n\n";
    $body .= __("Email", "smcf") . ": $email\n\n";
    $body .= __("Message", "smcf") . ": $message";
    $body = wordwrap($body); // default is 75 characters

  8. Eric Martin
    Member
    Posted 1 year ago #

    In re-reading this, there are a couple of different issues/questions.

    cocobongo - the email of the person who is sending the contact form is not in the body of the message, but in the actual From field in the email itself, correct?

  9. Dimonira
    Member
    Posted 1 year ago #

    2 Eric Martin
    Strange that you ask. When submitting a form you send email to yourself.

  10. Dimonira
    Member
    Posted 1 year ago #

    I think I understand (?) Everything is determined by used smtp server.
    I'm using smtp.gmail.com (with login/password). This smtp server sends mail only from my behalf. So no matter what is written in the "From:" (before call @mail function), it will be replaced by a smtp server to my email as the sender (in the actual "From" field in the email).

  11. yashmistrey
    Member
    Posted 1 year ago #

    can you help me because it's not working in my site i am using wp smtp plugin, how to use smtp with this ?

Topic Closed

This topic has been closed to new replies.

About this Topic