• 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! ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • Have you modified the script at all? Can you share the URL?

    Thread Starter cocobongo

    (@cocobongo)

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

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

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

    nothing else ??

    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)

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

    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

    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

    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?

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

    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).

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: SimpleModal Contact Form (SMCF)] Not getting sender’s mail’ is closed to new replies.