I recommend asking at https://wordpress.org/support/plugin/contact-form-7#postform so the plugin’s developers and support community can help you with this.
hello sir
i am not use any plugging for mail
i use simple mail function
i.e.
$admin_email = “dkdineshkumar122@gmail.com”;
$email = “pass@up.com “;
$subject = “dummy mail”;
$comment = “hello this dummy mail”;
//send email
mail($admin_email, “$subject”, $comment, “From:” . $email);
//Email response
echo “Thank you for contacting us!”;
}
it’s not working my wp
You mentioned Contact Form 7 in your subject and twice in your post.
Why did you do that if you aren’t using Contact Form 7?
@dinesh422, unless you own up.com, which I doubt, you can’t send mail from pass@up.com. Change your From address to your own email address.
change my admin mail address but not solve my problem
now i am running code only php file w/o wp area. it’s run and find mail my id. when that code insert in wp area no mail any not any error
Please check this URl
That url w/o wp area
http://yangphelguesthouse.com/demo/
I.E. under php area
http://yangphelguesthouse.com/?page_id=106
If you’re trying to send mail From a Gmail address, you need to use Google’s smtp.gmail.com server authorized with your username and password. The easiest way to configure SMTP in WordPress is with an SMTP plugin (mine or any of these).
Second, use wp_mail() instead of mail():
//send email
$headers = 'From: ' . $admin_email . "\r\n";
// call wp_mail(recipient, subject, body, headers)
$result = wp_mail( $admin_email, $subject, $comment, $headers );
//Email response
if($result) echo "Thank you for contacting us!"; else echo "Error! :-(";
That should work for you.