w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
ZF2 Server Requirements/Recommendations
This type of answer is really only one you'll be able to answer yourself by loading up your application and testing. Depending on your application you may need more resources than the typical application would. You mentioned Magento so here is a link to their requirements: http://www.magentocommerce.com/system-requirements However this still won't fully answer your question. There are many factors involved here such as the web server you will be running. Other applications running on the same machine. The amount of users you will have at any given type. There really is no true calculator to define what resources you'll need. ZF2 specifically does not have many system requirements but you can find more information on that here: http://zf2.readthedocs.org/en/latest/user-guide/overview.htm

Categories : Apache

Recommendations regarding nested transactions in SQL Server
When you do a BEGIN TRANSACTION an internal counter is incremented @@TRANCOUNT. ROLLBACK TRANSACTION will rollback all BEGIN TRANSACTIONS setting @@TRANCOUNT to 0. Doing a commit transaction will only decrement @@TRANCOUNT, it will do a full commit when @@TRANCOUNT is 1 before setting it to 0. With that in mind, Assuming you have paired BEGIN and COMMIT TRANSACTIONS in your Book and UnBook procedures I would do the RescheduleBooking procedure something like the following which will maintain the first book even if the unbook fails... CREATE PROCEDURE RescheduleBooking ... AS BEGIN BEGIN TRY BEGIN TRANSACTION EXEC BookAVehicle ... COMMIT TRANSACTION END TRY BEGIN CATCH IF @@TRANCOUNT > 0 BEGIN ROLLBACK TRANSACTI

Categories : Sql Server

Warning: mail(): SMTP server response: 550 This is a submission only port. You must authenticate before sending mail in
php.ini & SMTP= - how do you pass username & password PHP mail() command does not support authentication. Your options: ...

Categories : Email

Switched exchange servers, kept the same e-mail but some incoming mail is still going to the old server
I'm assuming that you changed the MX records for your domain, so that they now point to Microsoft 365's mail servers, correct? If so, it may take a day or two for the DNS changes to propagate.

Categories : Email

Unable to get emails sent by PHP mail function because of another mail server
The first thing to establish is how you are sending emails (sendmail or SMTP). Then, whether your emails are a) not sent at all or b) getting rejected by the destination mail server. I'd check all available logs (source and destination mail servers and daemons). See if mail() itself is erroring. Try using sendmail/smtp directly. If its the destination server rejecting the mail based on its spam score, try setting SPF records to enable the web server to send mail legally.

Categories : PHP

What is the point of adding "IP domain.tld" to the ( /etc/hosts ) file if the server is not gonna be used as a mail server?
/etc/hosts file is an alternative to DNS host name resolution. It has nothing specifically to do with mail servers. But, to use a mail server it has to be found on the network. /etc/hosts is a local lookup file that computer uses as specified in /etc/nsswitch.conf. DNS is a network service provided for each domain. For example, BIND. Domain zone files are configured and hosted on the domains primary DNS servers. You can configure domain searches in /etc/resolv.conf.

Categories : Linux

MX Records for Google Apps for Businesses Server + Another Mail server
To anyone seeing this post, I'll answer my own question: yes it's possible. You need to set up "Split delivery" in your Google Apps account. More about this here: http://support.google.com/a/bin/answer.py?hl=en&answer=173534

Categories : Misc

How to send emails from my server with a mail server and nodejs
I just had to do this as well, but I am running my node server on an Azure virtual Ubuntu Linux server. I imagine the same steps would work from your home server if you're running Ubuntu. Here is what I found worked: I installed the postfix email server using this guide: https://help.ubuntu.com/community/Postfix It looked like a lot of work at first, but it worked for me pretty easily. I found the easiest way to send the outgoing email from node.js was to use emailjs: http://github.com/eleith/emailjs.git I found that emails sent often end up being marked as spam. To help avoid this, you can go to wherever you manage your domain name (I use enom) and then configure an SPF record to help make your outgoing email look legit. Here is my node.js module to send emails using emailjs:

Categories : Javascript

E-mail app/filter that copies E-mail from the body of the letter and auto replies to that e-mail
I would suggest checking out Google Apps Script. You can create a script just like you would create any other Google Document in Drive by adding the Scripts module from the app store (Scripts is free and created by google). You can also use the gmail API to do the same thing. Both are very well documented and provide a surprisingly high level of access to your emails and their content.

Categories : Email

Why I send a mail with PHP, but receiver get a mail with attachment named "mail.html"?
Did you use any headers? $headers = 'MIME-Version: 1.0' . " "; $headers .= 'Content-type: text/html; charset=iso-8859-1' . " "; // Mail it mail($to, $subject, $message, $headers); Don't use foxmail so no clue if it works...but if you didn't send headers it's worth a try.

Categories : PHP

PHP + mail server
On most cPanel hosts, you can set a forwarder to forward an email to a script when it is received. As long as your email is managed on the same cPanel account, it will work great ... When you create the forwarder, you will set the forward to address as |/home/username/path/to/script.php Then the first thing you need to do in the script is receive the email from stdin: //Receive the email from stdin ... $fd = fopen("php://stdin","r"); $data = ''; while(!feof($fd)){ $data .= fread($fd,1024); } fclose($fd); //process email data ... I've done this on a number of cPanel hosts with great success.

Categories : PHP

Complex SQL query for recommendations
This is what I think you're looking for: Given a user John, find all movies B such that there exists a movie A, a user Simon, and a genre G where: John rated movie A a 5 Simon rated movie A a 5 Simon is not John Simon rated movie B a 5 movie A is of genre G movie B is of genre G Phrased this way, I think it's pretty easy to come up with a query: select B.* from user John join rating JohnA on JohnA.userid = John.id and JohnA.value = 5 join movie A on A.id = JohnA.movieid join rating ASimon on ASimon.movieid = A.id and ASimon.value = 5 join user Simon on Simon.id = ASimon.userid and Simon.id <> John.id join rating SimonB on SimonB.userid = Simon.id and SimonB.value =5 join movie B on B.id = SimonB.movieid join movie_genre Agenre on Agrenre.movieID = A.id join genre G on G.id = A

Categories : SQL

Python Geo-database recommendations
Yes indeed. You will have to make a use of the Search API and more specifically of the Location-Based Searches.

Categories : Python

How are you integrating help into your WPF application. Any recommendations?
My current preference is to use a third party help authorizing system to generate HTML based help. We then use a WebBrowser to display this help as needed. The authoring system we use makes it fairly easy to extract out a single page from the main help (each "topic" is a single HTML file, and can be included with full contents or not as desired). Granted, this definitely felt like a bit of a nasty hack at first - but once we wrote the basic plumbing (some attached properties for xaml to specify attributes for context location and add behavior to trigger help, etc), it's fairly clean. One very nice advantage to this approach, however, is a single help system build works perfectly in all contexts - we can include the documentation online, expose it locally for use in a browser, and use i

Categories : Wpf

How to setup a mail server?
Install and configure an SMTP server. SMTP servers can usually be configured quite extensively, what to do with mails that should be deliverd locally. One such option would be to deliver the mail locally by invoking a ruby script. Popular SMTP servers are postfix, courier and qmail. The details about how to setup the mail server depends on which one you use.

Categories : Ruby

A simple mail server in C++
POP3 is a protocol (read RFC 1939), so you have to implement it in order use it. After connecting, the other side won't send you anything until you send the greeting message ("+OK your message here"). After that, you must establish a POP "conversation" with the remote client. Also, POP is used for retrieving messages from a server, so a client will connect to your proccess and try to download messages. You have to implement the SMTP protocol (read RFC 5321) in order to receive messages sent to you. SMTP is also a protocol, so you must implement it if you want the other side to send you the data.

Categories : C++

Setting up mail server in pc
PHPMailer is a full featured email transfer Class for PHP supporting SMTP and POP3. So you not need to setup mail server on your pc. It works on localhost too. Class Features Probably the world's most popular code for sending email from PHP! Used by many open-source projects: Drupal, SugarCRM, Yii, Joomla! and many more Integrated SMTP support - send without a local mail server Send emails with multiple TOs, CCs, BCCs and REPLY-TOs Multipart/alternative emails for mail clients that do not read HTML email Support for 8bit, base64, binary, and quoted-printable encoding SMTP authentication with LOGIN, PLAIN, NTLM and CRAM-MD5 mechanisms Native language support Compatible with PHP 5.0 and later Much more! Githup Repo and more about it

Categories : Email

Using gmx smtp server with java mail
First, clean up and simplify your program by fixing these common mistakes. Then, turn on JavaMail session debugging and examine the protocol trace. It should show you which SMTP command with which address the server is complaining about. (The property "mail.smtp.debug" is not a property JavaMail understands.)

Categories : Java

Connecting to my company mail server
You could you outlook.com's web based interface to connect to POP3 accounts, similar to what you do in outlook express. Similarly you could add your email as additional account in gmail too.

Categories : Email

Server error when sending mail via jsp
GAE comes with it's own SMTP server, so you do not need to set your own SMTP parameters: https://developers.google.com/appengine/docs/java/mail/usingjavamail However, if you do set your own SMTP parameters then GAE will use sockets which have this limitations. These apply in your case: Sockets are available only for paid apps - this is the one producing Error. Port 25 (SMTP) is blocked Google IP ranges are blocked, except Gmail SMTPS: smtp.gmail.com port 465 and 587

Categories : Java

Sending PHP mail from Windows server
In a windows environment PHP uses SMTP insted of the Linux binary sendmail (or replacement) You need to edit php.ini according to this page to be able to send e-mail via the mail() function.

Categories : Email

connection refused from mail server
Try connecting to port 25 via telnet from the box that is giving you problems Check firewall and iptable settings on the mail server View the related logs on the mail server

Categories : Java

asp .net mail function for godaddy server
The issue you're experiencing with your script can be narrowed down to this code snippet: smtp.Host ="smtp.gmail.com";`` smtp.Port = 587;`` smtp.EnableSsl = false;`` smtp.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network;`` smtp.Credentials = new NetworkCredential("mail@gmail.com", "password");`` smtp.Timeout = 20000;`` You would be unable to use a 3rd party mail server. You're currently trying to pass data to a gmail.com account which is not allowed within GoDaddy's network. You would need to use an email address other than one created from the larger free email accounts (such as gmail.com/yahoo.com/msn.com/live.com or the like) you would want to create an email from say within your account and utilize that. After you have done that, you would then

Categories : Asp Net

Android: UI Recommendations about Exit button in Applications
This video will help your customers to understand: https://www.youtube.com/watch?v=631T7B8HOv4 Basically, the back button is an exit button. So, there is already an exit button! Show it to your customer and ask him if he wants to look stupid with duplicate button that takes precious space on a small screen. His app will never look professional.

Categories : Android

Eclipse e3 to e4 migration/adaption(preferred) - recommendations
solving this required creation of an e3 Application in an e4 workspace. then create POJO views and use the Wrapper Class to enable DI. detailed solution for building it up can be found here

Categories : Java

How do you find the IP address of a specific mail server?
nslookup is what you're after, or dig. Since you want a mail server you'll want to add the option '-type=mx' (Mail eXchange). nslookup -type=mx gmail.com

Categories : Email

Mail function not working on online server
yes i make a mistake on From first i write this $headers .= 'From: domain' . " "; Now this is correct $headers .= 'From: Domain <info@domain.com>' . " "; Thanx to all of u specially "RiggsFolly" & "Dale"

Categories : PHP

sending mail working locally but not in server
First thing change this <? to this <?php, some server cannot support short tags After if npt work, try to change this: mail ($mail_to,$assunto,$texto); to this: mail($mail_to,$assunto,$texto); There is a blank space between the function name and brackets UPDATE change this: $padrao = mysql_connect($servidor, $utilizador, $password) or die("Erro ao ligar a $servidor"); to this: $padrao = mysql_connect($servidor, $utilizador, $password) if (!$padrao) { die('Could not connect: ' . mysql_error()); } same thing for the variable $seleccao

Categories : PHP

Sending mail without smtp server and credentials in asp.net
SmtpClient uses MailMessage to send emails. MailMessage has From property. See the link, it has code example http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.from.aspx

Categories : Asp Net

Not able to search the email server with searchTerm using Mail API
Since you're using pop3, all the searching is done by downloading all the messages to the client and searching them there. If you want the server to do the searching, use imap. If the new message arrives while you have the pop3 folder open, you won't be able to see it. You need to close the folder and reopen it. That's a limitation of the pop3 protocol. If none of that helps with your problem, I would need to know exactly which search term you're using, exactly what value you're searching for, and exactly what value appears in the email header.

Categories : Java

Data Model for Generating recommendations using Apache Mahout
Preference data can be accessed from the database using JDBCDataModel. Take a look at MySQLJDBCDataModel

Categories : Java

Recommendations of bypassing show/hide javascript with anchors
What I've done in the past is to use anchors to trigger the javascript that shows/hides data. So every action that can happen is triggered by an anchor tag with the href as "#<whatever>". Whenever an anchor (hyperlink) is clicked, it updates the url with the proper anchor and triggers the hashchange event in window. Whenever that event fires I just have a switch statement that analyzes the hashtag and figures out what dynamic content needs to be changed. The last part of this is to call the function with the switch statement at the dom ready event so that if somebody bookmarked the page with an anchor, it will know to load whatever dynamic content that specific hash triggers.

Categories : HTML

http/https mismatch with linkedin recommendations on a website
I had the same problem while integrating LinkeIn auth on my site. While it didn't stop the linkedin api from working, I was annoyed to see the error popping on the console. So I binded a listener to remove any iframe coming from "https://api.linkedin.com" before it loads. jQuery('body').bind("DOMSubtreeModified", function(evt) { var elemento=evt.delegateTarget.lastChild; if(elemento.tagName=='IFRAME') { if(elemento.src.indexOf('https://api.linkedin.com')!=-1) { jQuery('#'+elemento.id).remove(); } } }); Everything is still working.

Categories : Javascript

Rails Displaying Recommendations - Facebook/Linkedin style
Well, you could 'store' the decision of the user in session/cookie/database depending on how persistent you want the decision to be. After the user rejects a suggestion you could just reload the suggestions taking the decision into account. E.g. Suggestions.where(["id NOT IN (?)", User.rejected_suggestions]) (Assuming you have an m-to-n-relation between User and Suggestions called rejected_suggestions) And the way it is displayed is just javascript. You could use for example jQuery and fade the rejected suggestion into hiding and let the new one slide in. http://api.jquery.com/fadeOut/ http://api.jquery.com/slideDown/ And for reloading and storing the decision just use an ajax call. Alternatively: Load a few more suggestions (than 5) and only use JS to fade them out and slide new

Categories : Javascript

Is Myrrix a good choice for content-based recommendations?
In an indirect way, yes. You can add 'tags' as if they are users and items -- that is, a user tag is like an item that the user interacts with. This provides a way to inject information like user attributes, and vice versa for items. Under the hood, these work just like actual users and items in the algorithm. See the setTag() method and API methods.

Categories : Misc

php website mail form not getting to exchange server recipient -
Most hosted Exchange providers include filters that will check for SPF records—or MX records at a minimum—for the domain with which the sender address is associated. Since there is most likely neither an SPF nor a MX record for www.[your-domain].com (because of the "www."), the hosted Exchange provider's SPAM blocker is marking the message as SPAM because it cannot verify that the IP address from which the message is coming is actually, legitimately associated with www.[your-domain].com—or, alternately (and perhaps more likely), that www.[your-domain].com has no MX or SPF records associated with it and thus the server assumes the message must be junk (because why would a domain name not configured for email be sending email?). [your-domain].com might have those records, but that do

Categories : PHP

Kinda-mass emailing from Rails, but with own mail server
You should decouple your Rails App from the mail sending so that you don't have to wait in your view for the mails to be sent (assuming that you click on something that triggers the start of your mail sending). Use something like delayed_job or another queueing mechanism that Rails offers and only queue up the sending job of the e-mails. Then when the queue comes to execute the particular job you can customize the message with an HTML part and a text part or whatever else you need and pass them on individually to your MTA.

Categories : Ruby On Rails

Download attachment from mail using ContextIO and upload it on server
I don't don't know context.io, but I took a look at the api quickly and found this to download an attachment: http://context.io/docs/2.0/accounts/files/content Thus, to download the attachment, just try something like this in plain ruby: require 'net/http' account_id = 12345 file_id = 45678 Net::HTTP.start("https://api.context.io") do |http| resp = http.get("/2.0/accounts/#{account_id}/files/#{file_id}/content") open("attachment.extension", "wb") do |file| file.write(resp.body) end end

Categories : Ruby On Rails

SQL server variable to SSIS and mail formatting issue
I am not sure what exactly you are looking for and don't know whether the below snippet would serve the purpose DECLARE @mail_Body NVARCHAR(max) DECLARE @CRLF NCHAR(2)= CHAR(13) + CHAR(10) SET @mail_Body = 'Here is one line of text ' +@CRLF+ 'Some Text : ' --space not matching ":" in 4th line +@CRLF+ -- Not working +@CRLF+ N'Below is some data: ' + N' ' + N' ' + ISNULL(ERROR_MESSAGE(),'') PRINT @mail_Body

Categories : Sql Server

Java SendMail sends mail after server is stopped
A couple of problems: >> is shell redirection. You are running the subprocess directly, so it probably got ignored. Also, you never handled the output written from the process, so it likely got buffered and blocked the process until the UI ended.

Categories : Java



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.