Wordpress ContactForm 7 Error Sending message - wordpress

I installed the plugin contactform 7 on my wordpress. Everytime I try to send the message the error :
There was an error trying to send your message. Please try again later.
will appear.
I checked all my settings, desinstall and reinstall the plugin but always the same problem.
My form:
<label> Your Name (required)
[text* your-name] </label>
<label> Your Email (required)
[email* your-email] </label>
<label> Subject
[text your-subject] </label>
<label> Your Message
[textarea your-message] </label>
[submit "Send"]
My mail option:
To: info#mycompany.com
From: [your-name] <info#mycompany.com>
Subject: Company "[your-subject]"
Additional Headers: Reply-To: [your-email]
Message body: From: [your-name] <[your-email]>
Subject: [your-subject]
Message Body:
[your-message]
--
This e-mail was sent from a contact form on Company (https://company.com)
I did not find any answer to this problem in the docs file

You need to install smtp plugin to send email template.
There are many smtp plugins are available email setting in WordPress.
You can also use below plugin, It will work for you.
https://wordpress.org/plugins/wp-mail-smtp/

Related

Using Python Requests with just a password

I'm trying to use Requests to login to a website that only has a password field, no username. Anytime I try and do a request using simply:
response = requests.get(URL, auth = ('password'), verify=False)
All I get is the HTML formatting of the page asking for the password, which is the following:
'<html><head>\t<title>Relay Diagnostics Login page</title></head><body>\t<form action="/rd" method="POST">\t\tPlease, enter the password to access the Relay Diagnostics page:\t\t<br />\t\t<input type="password" placeholder="Password" name="password" />\t\t<br />\t\t<input type="submit" value="Login" />\t\t<input type="hidden" name="rnd" value="WtKEYTI64T3InibBmG+OKVM9dIo" />\t</form></body></html>'
Is there anyway to pass auth with just a password?
Thanks
Its rare for site to only have password. Try auth=('','password') or auth=(None,'password')

Testing Paypal IPN locally

based on Paypal tutorial, this is the form they provide for testing the IPN:
<form target="_new" method="post" action="https://www.YourDomain.com/Path/YourIPNHandler.php">
<input type="hidden" name="SomePayPalVar" value="SomeValue1"/>
<input type="hidden" name="SomeOtherPPVar" value="SomeValue2"/>
<!-- code for other variables to be tested ... -->
<input type="submit"/>
</form>
I got my IPN listener code in server/routing.js and used iron router and specified the path to /ipn. here is the code for it
Router.map(function () {
this.route('ipn', {
path: '/ipn',
where: 'server',
so my question now, what URL should i put in the form instead of "https://www.YourDomain.com/Path/YourIPNHandler.php" URL? Because am testing it in my local machine "localhost:3000"
I had the same problem friend. The solution was very simple.
Paypal does not allow test in your local machine: Paypal says: We're sorry, URL with port number is not allowed for IPN.
You must have a server with your "www.YourDomain.com". In my case for development tests I downloaded a "tunnel" application called NGROK which gives to you a testing domain. You can get it from here.
Then will be enought just open the ngrok console and write the command:
> ngrok http -host-header=localhost 3000
After that execute your web application. After you've started ngrok, just open http://localhost:4040 in a web browser to review your domain provided by ngrok.
When you go to localhost:4040 in your browser ngrok show to you a http and http domains like they show in the examples.
http://92832de0.ngrok.io
https://92832de0.ngrok.io
Now just replace "www.YourDomain.com" with this ngrok URL.
Hope this helps to you. Regards!

Meteor Mailgun response to emails not going to "from" address

I have the following Meteor code, with Meteor's default Mailgun SMTP settings:
Email.send({
to: "customer#gmail.com,
from: "company#gmail.com",
replyTo: "company#gmail.com",
subject: 'Test',
text: "Test"
});
The email sends fine, but when the customer clicks "reply" in Gmail, it replies to "customer#gmail.com" instead of "company#gmail.com".
Make sure you're not hitting "reply all" instead of "reply".
I have just tested and it's working as expected on my end with the latest meteor and the email module.
Best,

How to include mailto link within model error message

What is the correct syntax to add mailto to this ASP.NET MVC3 code. This doesn't work and neither does using double-quotes:
ModelState.AddModelError("", "We could not locate the email address you entered. Please check the email address. If you believe it is correct, please contact us by sending an email to <a href='mailto:support#abc.com'>Support</a> from the email address you are attempting to use.");
I am not that good at Razor but this can solve your problem for now
#Html.Raw(Html.ValidationSummary().ToString().Replace("[mailto]", "<a href='mailto:support#abc.com'>Support</a>"))
and your message will contain this
ModelState.AddModelError("", "We could not locate the email address you entered. Please
check the email address. If you believe it is correct, please contact us by sending an
email to [mailto] from the email address you are attempting to use.");
The link is now added in the view instead from the server/controller, replacing your [mailto] with actual link and calling Html.Raw to render the html in the browser
try to use
add this NamesPace :Using System.Text
StringBuilder s=new StringBuilder ();
s.Append(We could not locate the email address you entered. Please check the email address. If you believe it is correct, please contact us by sending an email to ");
s.Append("<a href='mailto:support#abc.com'>Support</a>");
s.Append("from the email address you are attempting to use.");
ModelState.AddModelError("", s.ToString());

Magnolia CMS's built-in Form: SMTP configuration overriding "From" input

On the following page http://documentation.magnolia-cms.com/modules/mail.html#ConfiguringSMTP
In the section "Sending messages >> Plain text and HTML messages", we can read:
From:[...]Regardless of the address entered here, Magnolia CMS will use the smtpUser to send the email but the address here is displayed as the sender to the recipient. This means you can send an email from fake#address.com and it will appear to come from this address
However, when I receive the email I can still see the smtpUser config's email and my "fake#address.com" email address is not displayed (it is ignored!?)
Am I missing something? Thanks
I just tried this on the demo site at http://demoauthor.magnolia-cms.com/demo-project/service/contact.html and it seemed to work as expected.
Are you using a fresh install of Magnolia 4.4.5? Could you verify that you're hitting the "Edit Form Settings" button on the page, going to the "E-Mail" tab, and entering "fake#address.com" into the From field there? If you're then trying the form on a public instance, you'll need to be sure that the form page has been activated so that the public version of it has your "From" setting as well.

Resources