w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to use EWS to retrieve mail-related information about Exchange mail-enabled public folders
I'm able to get it with the following, you'll need to translate it to c#. The result is a folder object extended with an Email property. $PR_PF_PROXY = New-Object Microsoft.Exchange.WebServices.Data.ExtendedPropertyDefinition 26397,[Microsoft.Exchange.WebServices.Data.MapiPropertyType]::Binary $view.PropertySet.Add($PR_PF_PROXY) $foldersResult = $ExchangeService.FindFolders(Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::PublicFoldersRoot,$view) foreach($folder in $foldersResult.Folders) { $folder = $folder | Add-Member -MemberType NoteProperty -Name Email -Value $null -PassThru $guid=$null if($folder.TryGetProperty($PR_PF_PROXY,[ref]$guid)) { $dn=[bitconverter]::ToString($guid) -replace '-' $folder.Email = ([

Categories : C#

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

Mount S3 (s3fs) on EC2 with dynamic files - Persistent Public Permission
In my php script that PUT files to S3 using AWK SDK for PHP, I had to add in the meta data, as shown below, which did the trick: $response = $s3->create_object('bucketname', 'mountpoint/'.$filename, array( 'body' => $json_data, 'contentType' => 'application/json', 'acl' => AmazonS3::ACL_PUBLIC, 'meta' => array( 'mode' => '33188', // x-amz-meta-mode ) )); The mode "33188" defined the permissions "rw-r--r--" instead of "---------" in S3 bucket (but reflected only in the EC2 mounted folder), which was later inherited by the EC2 mounted drive. Hope this helps someone. Let me know!

Categories : Amazon

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

adding dynamic content within body of an email (database mail) with sp_send_dbmail
You could create a stored procedure to send this email[s] thus: CREATE PROCEDURE MySchema.MyProcedure ( @arg1 type1, ... ) AS BEGIN DECLARE @style TINYINT; SET @style = 108 -- hh:mm:ss ; For other style please visit http://technet.microsoft.com/en-us/library/ms187928.aspx DECLARE @body_content NVARCHAR(MAX); SET @body_content = 'Please check the attached file for Providers with Many unsuccessful calls between the time ' + CONVERT(VARCHAR(25),GETDATE(),@style) + ' and ' + CONVERT(VARCHAR(25),DATEADD(MINUTE, -150, GETDATE()),@style) ; EXEC msdb.dbo.sp_send_dbmail @profile_name = 'TEST_DEV', @recipients = 'xxx@gmail.com', @query = ' select Percentage = CONVERT(DECIMAL(10,1),100 - (CAST(COUNT(DISTINCT case when PD.Exception != '' '' then PD.Id END) as float)/C

Categories : Sql Server

Print out server's own public key using PHP
well I am not aware of any pre-built function that does that. To answer your question correctly, you should provide more information about the server and especially what you mean by your server's public key. Any server can generate as many SSH key-pairs as he likes. Just a guess that might help you: Look in the .ssh folder. If there is a file called id_rsa.pub, I would go for that one. Then use a pre-build PHP function to read the contents of that file. Cheers

Categories : PHP

Public access on my own git server
Indeed, if your group is http then change the instructions to http. Secondly, gitserver in the tutorial is the domain name. Change it to whatever you want.

Categories : GIT

Is there any public SQL Server with sample databases
SQLFiddle.com If you want help with a tricky query, and you'd like to post a question. If you need to build a representative database (schema and data) and post a link to it in your question. If you want (a) unique URL(s) for each database (and each query) will be generated as you use the site. If you want to compare and contrast SQL statements in different database back-ends. If you do not have a particular database platform readily available, but you would like to see what a given query would look like in that environment.

Categories : Sql Server

GWT client communicates with public server
You cannot make XHR requests to a different server from where you download your page, unless you enable CORS in the server. google.com has not enabled CORS, so you cannot request their pages usin XHR. If you own the domain you want to request enable CORS, here you have a filter example for a java backend. If you simply want to display a 3party web in your ui you can insert it as an iframe, but be aware that you cannot read the iframe content because it is in a different domain. Note that CORS works in almost browsers, but for IE/8-9 you have to use XDomainRequest

Categories : Gwt

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

Server refused public-key signature despite accepting key
By means of the tags from your question i assume that you're using git as source control provider. That error message is from git and means that you're trying to authenticate with SSH and your git does not send the required ssh pubkey. The problem could be that your ccnet is runni ng as service under a user that does not has the required ssh pubkey loaded or access to. Please refer to the Git Configuration Wiki Page for further information or update your question with some more details.

Categories : GIT

CodeIgniter giving a 404 not found on public server only
You need to install a .htaccess on the server root RewriteEngine on RewriteCond $1 !^(index.php|images|robots.txt) RewriteRule ^(.*)$ /index.php/$1 [L] Also make sure your /application/config/config.php is set up properly (these can by left blank and should still work properly) $config['base_url'] = ''; $config['index_page'] = '';

Categories : Codeigniter

Run Django development server as public website
If you mean, you want to deploy your Django project, you should use something like NGINX etc. If you just want to tell, what if a development server is public, you have the same risks with any another project written in any platform.

Categories : Django

C# - Public Global connection to SQL Server 2005
Try this. So you have the SQLConnection in the class and not in the function. If you declare something in a function it will only be accessible in that function. public class sqlConn { public SqlConnection myConnection; public void connectionMethod() { myConnection = new SqlConnection("user id=ID;password=PASS;server=SERVER;database=DB;"); try { myConnection.Open(); } catch { MessageBox.Show("Невозможно подключиться к Базе данных. Пожалуйста обратитесь к программистам!", "Ошибка подключения к Базе данных", MessageBoxButtons.OK, MessageBoxIcon.Error); } finally { myConnection.C

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

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++

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

Can users edit the notebooks on a public notebook server?
Yes, that's right. A public iPython notebook server provides the full funcionality to everyone who connects to it via a browser. So everyone who has the server's password can edit/create/delete notebooks on this server. As far as I know, there's no possibility to prevent users from persistently changing the notebooks on the server. A dirty workaround would be: Every student copies your central notebook (File --> Make a copy) and works in the copied notebook only. This, however, doesn't prevent abuse/unintentional changes by the students in the central notebook.

Categories : Python

Make Django development server a public website
Try: python manage.py runserver 0.0.0.0:8000 Because runserver will bind to address 127.0.0.1 by default, which is not accessible by other computers.

Categories : Django

How to allow public or private downloads of static files with PHP 5.4 Web Server?
if(php_sapi_name() === 'cli-server') { if(is_file(__DIR__.preg_replace('#(?.*)$#', '', $_SERVER['REQUEST_URI']))) { return false; } } The solution for PHP 5.4 web server, along with starting the server itself with: php -S localhost: 80 -t /path/to/web /path/to/web/index.php This way, if /css/style.css exists it will be served statically, but /files/dynamic.css will pass through the front controller.

Categories : PHP

Giving public access to chat server on node.js
If you really want to let others use this chat through telnet over the internet (which I recommend against), you will need to forward a port through your router (I assume you use a router) to port 8000 on your local machine. Give your friends your IP address and the port you mapped, and they should be able to telnet in as well. It's hard to answer this question without more information, however. Do you use a firewall? Modem? Etc.

Categories : Node Js

How to query a STUN server with JavaScript to get public IP and Port?
Very late answer. Have a look at this mini project: https://diafygi.github.io/webrtc-ips/ It does give you the IP, but doesn't seem to give the port. However, if you look at these lines: //match just the IP address var ip_regex = /([0-9]{1,3}(.[0-9]{1,3}){3})/ var ip_addr = ip_regex.exec(candidate)[1]; It seems that they remove the port. I am not sure, but you can play with it to find out.

Categories : Javascript

Google Maps API Suddenly Not working On Public Server
For most applications, it is recommended to do any geocoding on the client side. This not only helps you avoid the usage limit, which is based on IP address, but it keeps some stress off your server. If geocoding on your application happens when people enter an address through a search field, this is a great option, and you can still send any info you need back to your server through an ajax call. For further strategies, see here: https://developers.google.com/maps/articles/geocodestrat

Categories : Ruby On Rails

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

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

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

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

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

Issue when using linked server to pass a parameterized dynamic query from SQL Server to a MySQL database
You need to prepare the a statement and then execute it: SET @Params = '1000001289,1000001294,1000001296,1000001303,1000001304,1000001306,1000001308'; SET @SQL = CONCAT('SELECT LoanNumber FROM plms.vw__bid_dd_overlay WHERE LoanNumber IN (' , @MyParams , ' );'; PREPARE statement FROM @SQL; EXECUTE statement; Reference to the mySQL manual

Categories : Mysql

How to upload a file to server and create a public URL from java program
You can use HttpRequest object to upload file to web server. You don't want to create a custom url to download. Just create a common url and pass file name or file id as parameter, write a class to download it manually. HttpURLConnection enables to create a connection to server.

Categories : Java

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

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

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



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