w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Detect email move using Exchange Web Service Managed API?
You can use Streaming Notifications with EWS to listen for changes to items on the Exchange Server. Here is an example on how to set up Streaming Notifications: http://blogs.msdn.com/b/exchangedev/archive/2010/12/22/working-with-streaming-notifications-by-using-the-ews-managed-api.aspx In your case you should handle the EventType.Moved event. When you are handling the events you are given an object of type ItemEvent (as shown in the above example) which has two properties OldParentFolderId and ParentFolderId which identify the folder the item was moved from and to.

Categories : C#

What email server or online email service allows for creating unlimited email alias for an inbox (via API)
One option to consider is to setup a mail server using qmail, configured as a catch-all for your domain, such that all mail to *@yourdomain.tld forwards to a script which parses each incoming message, scrapes the to, from, subject, etc. logs the messages in your database, etc. It's easier than it sounds to setup. See How to setup a mail server?. This can be done fairly inexpensively on a Rackspace or AWS cloud server.

Categories : Email

How to Host a WCF Service in a Managed Windows Service?
Read This Article In this Construct the service and provide the hosting code http://msdn.microsoft.com/en-us/library/ms733069.aspx

Categories : C#

Save email WITH attachments using EWS Managed API 2.0
To my surprise, the email (saved as .eml) actually contains the attachments!! The problem was that I was opening this from IE (through a link to the filesystem), that was trying to work as Email Viewer, but wasn't showing the attachments! If you save the email (.eml) on the disk (in my case, force download) and open it with Outlook 2010, it will be with attachments and everything!!

Categories : Dotnet

Get a managed bean reference in a restful web service
This is not the right approach. A JSF managed bean is intented to act as a controller for a JSF view, not as a business service. You should make use of a business service API which can be shared by all kinds of front-ends (JSF, JAX-RS, etc). Such an API is already offered by Java EE: EJB. Replace that eagerly initialized application scoped managed bean by a @Startup @Singleton EJB which you can inject everywhere (your JSF managed bean and your JAX-RS webservice) via @EJB.

Categories : Java

Update appointments in one service call using EWS managed API 2.0
I got asnwer how to solve my probem i msdn forum: update appointments in one service call I need to set property for one appoitment at the time and then add it to batch, after i set properties for all appointments i need to use _service.UpdateItems() method for my appointments batch: pulic void UpdateAppointments(List<Item> _updateBatch) { Service.UpdateItems(upUpdateBatch, Folder.Id, ConflictResolutionMode.AlwaysOverwrite, MessageDisposition.SaveOnly, SendInvitationsOrCancellationsMode.SendToNone); }

Categories : C#

How to inject spring managed service beans to Apache CXF Servlet
Add a namespace to your's Spring config file: xmlns:jaxrs="http://cxf.apache.org/jaxrs" and also schema location for it: http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd Also you are going to need some dependencies for CXF Rest web service: <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxrs</artifactId> <version>${cxf.version}</version> </dependency> And then configure your JAX-RS server in your Spring config something like this: <jaxrs:server id="yourJaxRsServer" address="/testService"> <jaxrs:serviceBeans> <ref bean="serviceBean"/> </jaxrs:serviceBeans> </jaxrs:server> <bean id="serviceBean" class="service.TestService"/&

Categories : Spring

Why doesn't my managed object see the other managed objects that are in a to many relationship to it?
In a recent application I wrote I noticed that the setter for my relationship was not working and I had to write my own implementation based on another S.O. answer. Try adding the custom setter to your model and see if it works. -(void)add{objectName}Object:({ObjectName} *)value{ NSMutableSet* tempSet = [NSMutableSet setWithSet:self.{objectName}]; [tempSet addObject:value]; self.{objectName} = tempSet; }

Categories : IOS

Spring JSF integration: how to inject a Spring component/service in JSF managed bean?
@ManagedBean vs @Controller First of all, you should choose one framework to manage your beans. You should choose either JSF or Spring (or CDI) to manage your beans. Whilst the following works, it is fundamentally wrong: @ManagedBean // JSF-managed. @Controller // Spring-managed. public class BadBean {} You end up with two completely separate instances of the very same managed bean class, one managed by JSF and another one managed by Spring. It's not directly clear which one would actually be used in EL when you reference it as #{someBean}. If you have the SpringBeanFacesELResolver registered in faces-config.xml, then it would be the Spring-managed one, not the JSF-managed one. If you don't have that, then it would be the JSF-managed one. Also, when you declare a JSF managed bean spec

Categories : Spring

send email with web service
I think you need to do some server side scripting for that, that would be the solution for your issue. also you can check below answer Best practices for sending automated daily emails from web service

Categories : Jquery

IIS 7.5 SMTP Email from WCF Service
Needed to install service after configuring. This gives the details: http://social.msdn.microsoft.com/Forums/vstudio/en-US/ad9e940b-fe29-49fc-9bc4-6e572d505b2f/how-to-install-and-configure-smtp-server-in-windows-7

Categories : Dotnet

Running a service when email arrives
Exchange has the ability to run event sinks when certain things occur on the server. http://support.microsoft.com/kb/324021 shows an example of doing this to create a catchall email address. Details of the exchange 2003 SDK are at: http://msdn.microsoft.com/en-us/library/ms986138(v=exchg.65).aspx

Categories : Windows

how to implements an async email service in spring
Try replacing: <bean id="executorService" class="java.util.concurrent.Executors" factory-method="newFixedThreadPool"> <constructor-arg value="10" /> </bean> <task:executor id="threadPoolTaskExecutor" pool-size="10" /> <task:annotation-driven executor="executorService" /> WITH <task:executor id="executorService" pool-size="10" /> <task:annotation-driven executor="executorService" /> It worked for me pretty well

Categories : Spring

Send email in background service without a popup
Sending the mail without popup/user interaction is possible with JavaMail. I tried it myself. There is a lot of good documentation for that. I think it doesn't matter if you send the image by mail or upload it somewhere or use some other solution. The traffic will be in all cases the same because of the same filesize. If you want to reduce the traffic you can zip the image, reduce quality...

Categories : Android

Service for testing bounced email handling
http://www.socketlabs.com/blog/bounce-and-feedback-loop-test-addresses/ bounce-test@service.socketlabs.com

Categories : Email

Email Service With Differently Encoded Attachments
In this test that string UTF8 encodes and decodes properly. Why are you encoding to default and converting rather than just load the string into UTF8 directly? string current_month = @"<?xml version=""1.0"" encoding=""utf-8""?> <test> ABCDEFGHIJKLMNOPQRSTUVWXYZ /0123456789 abcdefghijklmnopqrstuvwxyz £©µÀÆÖÞßéöÿ –—‘“”„†•…‰™œŠŸž€ ΑΒΓΔΩαβγδω АБВГДабвгд ∀∂∈ℝ∧∪≡∞ ↑↗↨↻⇣ ┐┼╔╘░►☺♀ fi�⑀₂ἠḂӥẄɐː⍎אԱა Οὐχὶ ταὐτὰ παρίσταταί μοι γιγνώσκειν, ὦ ἄνδρες ᾿Αθηναῖοι, ὅταν τ

Categories : Dotnet

How to override the service now's email notification onclick event
As long as you are ok w/ all this validation being done client side you could modify the onClick event on the email notification link and add an additional function to check the value of the field and if not null, then call the original email onClick function. Prototype is available in ServiceNow Forms clients side and provides a method to update attributes on elements. You would need to modify the onClick function on the element with id='email_client_open', add a new onClick function to check that the field in question is populated and if so call the original function 'emailClientOpen(this, 'incident')' with the appropriate parameters.

Categories : Misc

AppEngine User Service Email Address returns null always
UserService.getCurrentUser() will return the a User object if the user is logged in, and null otherwise. You can call UserService.isUserLoggedIn() to test if the user is logged in. https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/users/UserService#getCurrentUser()

Categories : Google App Engine

Run Powershell script as a service, watching log files and reporting via email
have you tried Get-Content System.log -wait | {$_-match "some regex"} | foreach { send-email -message $_ } I don't know if the result of the where will be piped until get-content -wait exits but give it a go. As for running it as a service you can call a powershell script from FireDaemon or SvrAny but you could also use a schedule task to keep restarting the script.

Categories : Regex

Rails: How to pass sender email and receiver email with unsubscribe link in email
Just add whatever it is that identifies your subscription to the url as a GET parameter, then generate the page accordingly. You might want to use some sort of token system if you want to prevent anyone from being able to unsubscribe anyone else just by inputting the target email in the url though.

Categories : Ruby On Rails

Save in one managed context only of there are no changes in the other managed object context
Just save changes, make sure that each thread is observing NSManagedObjectContextDidSaveNotification for the other thread's context, and make sure you use the right merge policy. When the background thread saves changes, the main thread gets the notification and calls mergeChangesFromContextDidSaveNotification:. Then: If there are no changes on "MMC": Done. Nothing else happens, but if MMC loads an updated object, it gets the value received from the server. If there are changes on "MMC": If the merge policy for "MMC" is NSMergeByPropertyObjectTrumpMergePolicy, the unsaved changes in MMC are maintained. The persistent store has the value from the server, but as soon as you save changes on MMC, MMC's value overwrites those values. As a result, although you'll save changes form the server

Categories : IOS

Cant access property of managed bean from another managed bean
It's not possible to access an injected dependency in the constructor. You're basically expecting that Java is able to do something like this: SecondBean secondBean; // Declare. secondBean.firstBean = new FirstBean(); // Inject. secondBean = new SecondBean(); // Construct. It's absolutely not possible to set an instance variable if the instance is not constructed yet. Instead, it works as follows: SecondBean secondBean; // Declare. secondBean = new SecondBean(); // Construct. secondBean.firstBean = new FirstBean(); // Inject. Then, in order to perform business actions based on injected dependencies, use a method annotated with @PostConstruct. It will be invoked by the dependency injection manager directly after construction and dependency injection. So, just replace public SecondBe

Categories : JSF

Jenkins email configuration - Test email configuration succeeds but email is not recieved by user
In order to get this to work, a valid email must be entered into the "System Admin e-mail address" field. That field is on the same page but is located in another section higher up. Without doing so, I too received a message that the email was successfully sent but I never received it. Once I set it, the test emails started to be received properly.

Categories : Jenkins

Should My Class Translate to Core Data Managed Object, or Be Core Data Managed Object
I would say that both solutions are good. If you only want to save your Recorder object to a persistent store (so that you can refetch it when your app is killed for instance) the first solution is great but you'll have two classes : Recorder and RecorderCoreData let's say. If you think it's too complicated to maintain code with these two classes then convert your Recorder class to a managed object. The only thing you should be aware of is since AudioRecorder is a subclass of Recorder, AudioRecorder will also have to be a managed object ! But there's no perfect answer, just pick the one that looks easy and better depending on your needs. I hope it will help you.

Categories : Iphone

Rails 3.2: Devise signup breaks when name or email not unique or email is fake (FriendlyID)
So FriendlyId was choking on creating multiple iterations of a certain slug (got stuck after henry and henry--2, henry--3 was throwing an error) for some unknown reason. I fixed the issue by changing the slug attribute to email, running a find_each(&:save) to clear out the current slugs and then doing the same after returning the slug back to name. This fixed the issue it seems. Going forward I am going to switch to unique usernames because using names (which do not have to be unique) is too ugly. Thanks for the help @bdares and @vinodadhikary

Categories : Ruby On Rails

How to use matlab to send email through Outlook and with some excel tables shown in the body of email
I recommend you take a look at function xlsread, documented here. After reading the desired contents of the xlsx page, you can format them as an html table and put it in mail.HTMLBody.

Categories : Excel

send email button not working, either opens desired url or sends email, not both simultaneously
In the third html block, the redirection works because it is a simple hyperlink because <input type=button> defines a clickable button (mostly used with a JavaScript to activate a script). Therefore no form will be submitted but the hyperlink will work. In the second html block, the hyperlink wont work because <input type=submit> will make it a submit button with a default behavior of submitting the form to the action file and so the hyperlink won't work. I know this doesn't answer the question but just felt like telling you the reasons.

Categories : PHP

Email: legitimate duplicate email header keys with mutually exclusive values
Ya there are other headers that can appear more than once and is clearly explained here in RFC 5322 Headers that can appear more then once comments keywords optional-field trace resent-date resent-from resent-sender resent-to resent-cc resent-bcc resent-msg-id Check the link above for more clarity.

Categories : Email

Is there an implementable (non-theoretical) way to prove if email address belong to real email account?
email admins may elect to have all attempt to send an "OK" even if the the address you are sending to does not exist. I do this in part to make it harder for spammers to "learn" the address in my domain. A better practice would be to require registration via a web form with captcha (of some kind) that then sends a verification email, rather then accepting mass registration via email. (if you are not doing this already). If you have a sufficient history to build off of, you might want to create a black list of known bad email address to reference prior to sending. How many of your registrants are mailadmin@yourdomain.com or root@google.com? For my business, we host a SMTP server locally to avoid costs associated with failed delivery on legitimate email campaigns. Otherwise I would be

Categories : Java

Facebook Session object has "email" permission but Request.executeMeRequestAsync(...) returns no email
The issue is described here: https://developers.facebook.com/bugs/482815835078469/ and one of the commenters, Mai Khánh, writes: I found why this happened, please thumbs up so that support team can be noticed. 1/ Go to this link: https://www.facebook.com/settings?tab=account&section=email&view. 2/ Look at Primary email editing form, if the radio button isn't checked by default, the bug will appear. I think this is cause by facebook system sometime confusing when a facebook account has more than 1 email. My temp solution: Add more random email to that account -> the form will ask you to select primary email -> choose primary email -> fill in passwork, then submit -> done. The point is if you just check primary account without adding another random ema

Categories : Android

Checking if user's email address matches any existing email addresses in database
You have to enclose a string value in quotes, otherwise it will surely be a syntax error that you get. Your PHP syntax is fine, MySQL is not $sql = "SELECT customer_id FROM customer WHERE customer_email = '".mysqli_real_escape_string($db,$_POST['email'])."'"; Also later down in your code you have mysql_num_rows, which shuld be mysqli_num_rows like this $num_rows = mysqli_num_rows($result);

Categories : PHP

How to retrieve email address after the recipient click on a button inside email
If you generate the emails dynamically, you can add a token to the url that is unique to each email address you send to. Your landing page will use the tokens to register a hit to a database. On another note, please remember to handle information like email addresses with great care (i.e. securely), for example when storing them in a database.

Categories : Email

Forward email using Amazon SES: 554 Message rejected: Email address is not verified.
Not a lot of options here. Amazon SES is a mail notification service more than a pure SMTP server. Because of this, all of your from emails/domains must be previously verified and all of your mail sessions must be properly authenticated. The only alternative i can figure out is to configure postfix as a proxy instead of a relay, so it replaces the from header with a well known address, verified by SES, and properly authenticates in SES.

Categories : Email

Facebook Email field return null (even if the “email” permission is set and accepted)
In some cases Facebook may not have a valid email address for a user: email: string containing a valid RFC822 email address - note: this field may be null if no email address is available for the user see https://developers.facebook.com/docs/reference/api/user/

Categories : Facebook

Sharepoint 2010 Foundation SBS 2011 email error sending email
1) Check that your smtp server is setup in Central Admin > Outgoign email settings. Verify BOTH the farm and web application settings. 1a) Check the FROM address has been set. 2) verify the users have the correct SMTP address 3) Use SMTPTest Tool / Telnet to send a test email to the same SMTP server in 1 using an address from 2) I konw you've said you've done this but you've likely missed something - http://sharepointalert.info/troubleshooting-sharepoint-alerts/

Categories : Sharepoint

Outlook - Save file from email with .xls attachment and from specific sender then move email to sub folder
I have tried to set a rule in outlook but it doesn't filter on the sender nor if it has an attachment. Create a rule calling the following script. It will run on all incoming mail but only execute your code for whatever email address you look for Sub checkEmailSenderAndDoStuff(myItem As MailItem) 'set this up as a script to run on all incoming mail Dim myTargetEmailAddress As String myTargetEmailAddress = "whatever@wherever.com" 'this will check if the sender email is whatever sender 'you want to check from If myItem.SenderEmailAddress = myTargetEmailAddress Then 'do whatever you wanted to do with attachments, moving, etc End If End Sub

Categories : Vba

HTML 5 form to PHP email script sends blank email with undefined variable error
Try setting $email = ""; $author = ""; $visitor_email = ""; $comment = ""; at the beginning of your script. Also I'm wondering if you are intending to send the email even if information is not being supplied. If that is the case then the $comment = $_POST['comment']; $comment = wordwrap($comment, 70); Should move outside of the if.... if you want to only send if all of the information is supplied then you need to move everything else into the if

Categories : HTML

Trying to send email through PHP using an email address that is configured on Microsoft's SMTP servers (@live.com, @outlook.com, etc.)
PHP uses the SMTP server specified in the php.ini. Most often, it's localhost, which uses the hosting server's own SMTP server. Check the response of the mail function (true/false) to make sure that the email is going through, and check the mail log of the server to see if there's an error there. You can see http://www.phpclasses.org/blog/package/9/post/1-Sending-email-using-SMTP-servers-of-Gmail-Hotmail-or-Yahoo-with-PHP.html for information how to use Hotmail as the SMTP server.

Categories : PHP

MembershipUser.Email returns null even when email is stored in database
The methods you are using are for traditional ASP.NET membership, not SimpleMembership. Here is the way to get that information from SimpleMembership. var user = context.UserProfiles.SingleOrDefault(u => u.UserName == username); var email = user.Email; You can read more about accessing and customizing UserProfile here. There is also an article on setting up password reset for SimpleMembership here and the source code is available here.

Categories : C#

HTML Email image not showing on mobile email clients
Both iPhone and Android 4 default client support media queries, so that isn't the issue. It just seems like your media query is not firing. Not sure what you have your media queries set to, but this should work fine for those devices: @media only screen and (max-width: 479px) { display:table-cell !important; } Don't forget the !important part. There is also a difference between max-device-width and max-width, so just check what your ranges are for each device.

Categories : HTML



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