w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Gmail fetching mails from Sent items as well
Following is a code snippet. When I checked with gmail, there is no overlap between inbox and sent mail. (This should have been a comment, posting as answer for formatting) javax.mail.Folder[] folders = store.getDefaultFolder().list("*"); for (javax.mail.Folder folder : folders) { if ((folder.getType() & javax.mail.Folder.HOLDS_MESSAGES) != 0) { if (folder.getFullName().equalsIgnoreCase("[Gmail]/Sent Mail") || folder.getFullName().equalsIgnoreCase("Inbox")) { System.out.println(folder.getFullName() + ": " + folder.getMessageCount()); folder.open(Folder.READ_ONLY); for (Message m : folder.getMessages( folder.getMessageCount() - 5, folder.getMessageCount())) {

Categories : Java

my php mail function is not sending delevering mails in yahoo
Apart from my comments for message filtering settings- Change - $headers .= 'MIME-Version: 1.0′ . PHP_EOL'; To $headers .= 'MIME-Version: 1.0'.PHP_EOL;

Categories : PHP

Delayed_job background process not sending mails while executing mail related code with delay option
user_mailer.rb contains the following code: class UserMailer < ActionMailer::Base def author_notification(user,nfication) @recipients = user.creator.email @site_url = get_site_url(user.creator.organization) @from = "admin@#{@site_url}" @body[:body_template] = eval('"'+nfication.body+'"') @subject = eval('"'+nfication.subject+'"') content_type "text/html" end end

Categories : Ruby On Rails

Accessing GMail using AE.Net.Mail in C#
I assume the error you're getting is from the exception thrown from the ImapClient constructor which tries to connect to the remote IMAP server. That error is Winsock error 10060 (Connection timed out.) which usually happens if your connect packets are blocked or if you try to connect to a wrong host or to a wrong port. You have couple of options here: ping/traceroute imap.gmail.com and see if it's reachable 993 is IMAP SSL port so you can use openssl s_client -connect imap.gmail.com:993 to check whether you can connect to IMAP server. If you get connected, you'll be presented with gmail's IMAP server certificate and with message * OK Gimap ready for requests after which you can type IMAP login command 0 LOGIN username pass. check your proxy settings. Try to connect without using proxies

Categories : C#

How send a mail over gmail
Try public void onClick(View v) { // TODO Auto-generated method stub if(v.getId() == R.id.send) { String name = objName.getText().toString(); Intent email= new Intent(android.content.Intent.ACTION_SEND); email.setType("text/plain"); email.putExtra(Intent.EXTRA_EMAIL, new String[]{ "sgrpatel22@gmail.com"}); email.putExtra(Intent.EXTRA_SUBJECT, name); startActivity(email); } }

Categories : Android

Cannot send mail from an Azure VM using Gmail
Make sure the local VM's Firewall rules are permitting outgoing connection via port 587. Here is a good article on how to create outbound Firewall rule.

Categories : Email

PHPMailer $mail->From headers not working with gmail
With gmail you have to configure an email address as allowed "$mail->from" first. This FAQ entry explains how to do it: https://support.google.com/mail/answer/22370?hl=en

Categories : PHP

Swiftmailer config : send mail using gmail
Looks like your live server is missing OpenSSL, so you need to enable it in order to get secure connections working (i.e. enable the php_openssl module). Also check this question.

Categories : PHP

How do I fix a javax.mail.MessagingException when using SMTP through GMail?
I used the telnet smtp.gmail.com 465 and telnet smtp.gmail.com 587command in the cmd prompt and both could not connect. I assume it is associated with the network I am connected to. I cannot provide any info beyond this and will update if I find out more.

Categories : Java

Use gmail to send email: Using System.Web.Mail
Follow this url from http://msdn.microsoft.com/en-us/library/system.web.mail.mailmessage.aspx But still in this they recommend Sytem.Net.Mail.

Categories : C#

PHPMailer doesn't send mail to gmail
Try to change these lines: $mail->Port = 25; $mail->SMTPAuth = false; to $mail->Port = 485; $mail->SMTPAuth = true; Remember to change your login/password settings

Categories : PHP

sending mail in django - issue with gmail smtp
The best way to send emails from your Django application is to use Sendgrid. That's a very easy way to do what you want and to avoid problems with Gmail or other Web services. You'll find the documentation about Sendgrid for Python (Django) here.

Categories : Django

Send mail directly to new gmail inbox primary tab
avoid using addresses like "no-reply@example.com" instead use something more personalized like "[unique-user-name]@example.com" Request the user to create an conversation for the email sent out to them for first time. offer points/ perks to the subscribers for doing so. Once the user replies, Gmail is likely to treat your emails as personal/primary.

Categories : PHP

Codeigniter send mail using gmail is not working, just reloading
Put that $this->email->set_newline(" "); Between $this->load->library('email', $config); $this->email->from('dinukathilanga@gmail.com', 'Dinuka Thilanga'); So the final code looks similar to $this->load->library('email', $config); $this->email->set_newline(" "); $this->email->from('dinukathilanga@gmail.com', 'Dinuka Thilanga'); It works for me.

Categories : PHP

CPP: Writing gmail Mail Auto Reply program in CPP
CPP will do (but will definitely take some to get all the things into working state). First what you need to do is to follow the POP3 & SMTP (Post Office Protocol 3 & Simple Mail Transport Protocol) which is used by mail client to read out email meta-data (how many new mails, how many unread) and send new email using mail server. You need to get atleast basic idea of how to get - email metadata from inbox using POP3 download them (for pattern search on the text body) using POP3 reply to them using SMTP Also you will need encryption support TLS for security. Fortunately there is a great library which you have used - libcurl. You can use libcurl (built with openssl & openldap) to send reply to mail very easily. The remaining bits are 1 & 2, which I believe can be don

Categories : C++

adding attachment from form while sending mail from gmail via php
Its not quite that straight forward uploading a file from the client browser to the server. Here's a simple tutorial

Categories : PHP

Heroku + Gmail SMTP + PHP mail in popup contact form
I am afraid that gmail is blocking this service currently and there must be another route for simpler solution. unless you are using google apps (the price now is 5$ per month). The server did give a 200 (ok) answer with heroku own Sendgrid add-on. So a temporary solution is to use send-grid and migrate it to a something else in the future if necessary as it still not fully tested by me.

Categories : PHP

SMTP on CodeIgniter shows success, but e-mail is not delivered to Gmail account
Have you checked your php.ini file? Try it. If not then perhaps you could also try SPF. SPF or Sender Policy Framework is a new technology that allows easy detection of spam. Gmail honours SPF unless you manually mark those emails as not spam. Regardless of this, if you have received emails on another address then they must have reached Gmail too. Check your spam thoroughly, as Gmail does not discard emails even on very high spam suspicion rather they end up in the Spam folder. You can set up a SPF that allows your webserver to send emails which will result in Gmail accepting emails sent by your webserver as authentic. See http://www.mydigitallife.info/how-to-set-up-and-create-sender-policy-framework-spf-domain-dns-txt-record-with-wizard/ and a wizard from Microsoft.

Categories : Codeigniter

While Sending Html Mails from my web application Recieved Mails contains Symbols like &ldquo,&rdquo, ‘
Check with another constructor for htmlView: ContentType mimeType = new System.Net.Mime.ContentType("text/html"); var htmlView = AlternateView.CreateAlternateViewFromString(bodyMessage, mimeType);

Categories : Asp Net Mvc

What should I use: bulk e-mails (with MailChimp) or transactional e-mails(with Mandrill)?
Transactional emails are typically non-marketing emails. Usually they are a thank you, confirmation, invoice, receipt etc. Something that is related to a transaction your customer made. General newsletters or promotional/sales emails (anything sent in bulk to a list) is not transactional. Here is Mailchimp's What is transactional email link

Categories : Email

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

SmtpException while sending mails from a particular mailing server
This code is working for me public static string sendMail(string fromEmail, string toEmail, string subject, string body, string Name, string bcc="" , string replyTo="") { MailMessage mailer = new MailMessage { IsBodyHtml = true, From = new MailAddress(fromEmail, "yoursite.com"), Subject = subject, Body = body, BodyEncoding = Encoding.GetEncoding("utf-8") }; mailer.To.Add(new MailAddress(toEmail, toEmail)); // if (!string.IsNullOrEmpty(bcc)) {

Categories : Asp Net

Sending authenticated e-mails through ASP.NET MVC application using smtp server
You'll have to configure your Exchange Server to only allow authenticated access to the SMTP. This article and this TechNet post describe how.

Categories : Asp Net

How to send automated e-mails using server-side language
Below is a simple example of sending mail with .NET'S SMTPClient using (System.Net.Mail.MailMessage mailMessage = new System.Net.Mail.MailMessage()) { mailMessage.To.Add(new MailAddress(toAddress )); mailMessage.From = new MailAddress(fromAddress, nameToAppearFrom); mailMessage.Subject = subject; mailMessage.Body = messageText; mailMessage.IsBodyHtml = true; SmtpClient smtpClient = new SmtpClient(); smtpClient.EnableSsl = true; smtpClient.Send(mailMessage); } In order to use this you would also need Using System.Net.Mail ; in your code file and in your web config you would need <system.net> <mailSettings> <smtp from="from address"> <network host="yourt mail server" defaultCredentials="false" port="port#" userName="username"

Categories : Javascript

Retrieving mails from a remote Exchange Server. Some sort of security issue
I found the issue, which was a mission as I had to get extra information from a Server Engineer at the client. After trying a bunch os scenarios we found the issue. The problem was here: Uri myUri = new Uri("https://IPAddress/ews/exchange.asmx"); where I was using the Exchange servers's IP address. Instead I have to go via webmail and the company domian Uri myUri = new Uri("https://webmail.CompanyDomain.com/ews/exchange.asmx"); and then this service worked. Hope this can help anyone who comes along an issue like this.

Categories : C#

javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 587
I don't think you can use GMail without authentication. You need to use port 465 not 587. See http://email.about.com/od/accessinggmail/f/Gmail_SMTP_Settings.htm

Categories : Java

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

How to send mails by attaching a file (file should be taken from Sql Server Database)
Go through the bellow link http://www.c-sharpcorner.com/uploadfile/rahul4_saxena/send-email-in-Asp-Net-with-attached-file/ and http://www.codeproject.com/Articles/10828/Sending-Email-with-attachment-in-ASP-NET-using-SMT might help you..

Categories : Asp Net

How to share/attach image from server in gmail in android
It seems that the STREAM and EXTRA_STREAM intent types are not really well defined and ultimately depend on how the target app interprets them. If you want to assure the image as a binary to be in the email, the safer way will be to download the image from the server an attach it to the intent yourself. There's more light about the topic in here: "android.intent.extra.STREAM"

Categories : Android

server send emails using gmail smtp gets alerts
For anyone still interest the answer: Google have to allow your app to use your own account, to allow this google provided an easy way, just go to https://accounts.google.com/DisplayUnlockCaptcha, then click continue, then with 10 min, use your application to try to send email again, and google will remember the application/service and allow your application to access your account as long as you don't change your password. cheers

Categories : PHP

Javascript; Server-less retrieving of unread emails with Gmail API
According to the official Gmail API doc there are two ways to access emails: using IMAP/SMTP calling https://mail.google.com/mail/feed/atom Browsers doesn't provide access to TCP to JavaScript and therefore IMAP/SMTP will not help here. After trying, the server behind https://mail.google.com/mail/feed/atom doesn't seem to support CORS. So no luck here neither. Apparently, a server is needed (or something like packaged apps that gives TCP access)

Categories : Javascript

sending email (using gmail SMTP) from windows 7 server
We were able to solve the issue by opening the local security policies > IP security policies on local computer > Right click on "packet filter" and click "unassign". This worked for us. Although this might not be secure. We will look into security to figure out how we can open specific ports on our server.

Categories : C#

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

“Pushing” Gmail to GAS — using Gmail forwarding to trigger GAS script
Not possible from Google Apps Script: Google Apps Script currently available events: https://developers.google.com/apps-script/understanding_events Does Gmail have a Data API? FAQ: https://developers.google.com/gdata/faq#GmailAtomFeed Looks like IMAP is the only option, not sure if IMAP supports callback.

Categories : Google Apps Script

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



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