While developing a site for a client a few weeks back in WordPress, I came across a problem linked to Contact Form 7 or was it? The problem was, while sending contact us form to email using contact form 7, the email was not being delivered. The issue got a bit tricky when I could send email to my account which was under a different domain, but not to email on same domain. It made me realize the culprit was not contact form 7 but something else. So, I had to find and resolve this issue.
Since my email for this website was being hosted in google apps and website hosting with godaddy I was about to create the same scenario in my website as well, just by adding a contact form 7 and using my email for same domain. So, there it was, I was also not receiving the emails now. Upon a few hours of research and few google search it was clear that any email going from my domain name in godaddy server to email address of same domain was not being propagated to the internet (google: which is where my email hosting was) rather it was being sent internally to godaddy’s email hosting and upon not finding any email under godaddy’s email hosting the email was being dumped in the background. The fix was pretty easier as I had to create a new ticket writing the whole lot down and it took them just a day to make the changes in the mail configuration (or something) to make it working for my domain.
For my client, I was actually sending a copy of mail to my email address and forwarding any contact form request coming in until the problem was resolved. Now, all I had to do was contact the server people and let them know what was happening.
Keep your contact form neat and tidy and always use a captcha.
Download this awesome plugin Contact Form 7 for your wordpress here
The idea of creating single jar file including library files netbeans came through this week as I was doing my project on Netbeans 6.5.1. Often we encounter such needs that might not seem necessary but would be good to have . While doing one of my projects in java one requirement was the final product should be provided in a single jar file which meant the library files should be added to the jar file itself. I was using netbeans for the project as I have always loved it. But since there was a restriction on java version to be used that support java 1.6 only, I had to use netbeans 6.5.1 which had not feature of making a single jar file containing all the library jar file as well. So, here is simple method that I followed to create single jar file including library files in netbeans.
Open up the build.xml file from your project root directory.
Now copy the following text before the final line i.e. </project>
<zipfileset src=”dist/yourprojname.jar” excludes=”META-INF/*” />
<zipfileset src=”dist/lib/yourlibfile1.jar” excludes=”META-INF/*” />
<zipfileset src=”dist/lib/yourlibfile2jar” excludes=”META-INF/*” />
<attribute name=”Main-Class” value=”your.main.class.file”/>
Here you’ll have to change following stuffs to your need.
- yourfinaljarfile: remember this file can be created anywhere but I’ve used dist folder for this file
- yourprojname: this is the jar file that is created for you project class files only. Should be your project name
- yourlibfile1.jar: this is the library jar file
- yourlibfile2.jar: any other library jar file
- your.main.class.file: this would be your class file name remember the pattern package.classname: eg: com.example.app
It seems pretty confusing on why it’s not builtint netbeans itself, but once you know the workaround everything is cool. 😀