FAQ Database Discussion Community


Disconnect Client connected to cgi application

c++,windows,apache,email,cgi
I have a simple C++ CGI Application that receives form data from client. The client is written in C# and uses WWWForm to send and receive data to the C++ CGI Application and everything seems to be working with one exception. For example, when I send a registration form to...

How can I send an input type email between 2 files php?

php,mysql,email,web
I have used this method in one php: $user = mysql_fetch_assoc($result); $user1 = $user['Email']; header (Location: modify_email.php?user1=$user1); And in the other .php: Email: <input name="email" value="<?php echo $_GET['user1'];?>" required="" autofocus="" type="email"> But I only obtain the first part, to @, no more. Example: If I have [email protected] I received user1...

PHP email form without Refreshing Page

php,jquery,ajax,forms,email
I am trying to set up my page so that when I a form is submitted it emails and a message is displayed without refreshing the page. I have tried to do this using jQuery/Ajax however I cannot get any emails sent now Without the Ajax/jQuery, the PHP works just...

Sending smtp in rails using gmail

ruby-on-rails,ruby,email,actionmailer
I am trying to send an activation email in development mode, i am using application.yml to enter my smtp credentials not sure what I am missing but for some reason i'm not able to send the activation email. here is the application.yml SMTP_PORT: 587 SMTP_DOMAIN: localhost:3000 SMTP_ADDRESS: smtp.gmail.com SMTP_USERNAME: [email protected]..

Process ALL incoming e-mails with PHP script [closed]

php,email,inbound,email-processing
For a project I'm working on right now I want users to be able to send e-mails to [email protected] Those e-mails or to be more specific ALL e-mails send to sub.domain.com shall be processed by a PHP script. In that script I need to be able to get the username...

Postfix rewrites my return-path

email,subdomain,postfix-mta,return-path
I have been changing my mailing addresses from "example.com" to sub domains - say "mail.example.com" to configure no-reply addresses there. I use "sendmail -f [email protected]" to send emails making sur ethe Return-Path is correct. My mail delivery chain looks as follows: SENDING SERVER --> relay_server --> gateway out For unknown...

VBA Email with pasted chart and text in body

excel,vba,email,excel-vba,outlook
The goal of the following code is to paste the selected chart into the email body below my text. However, it continues to paste it above my text. How can I change it to make it paste below? Thanks! Set OutApp = CreateObject("Outlook.Application") Set OutMail = OutApp.CreateItem(0) With OutMail .CC...

SPF and DKIM records for Mandrill on DigitalOcean

email,dns,vps,spf,dkim
I have a VPS with DigitalOcean and I’m setting up SPF and DKIM records as per the Mandrill guide. However, it tells me my DKIM record is not valid. The error message that I get is: This TXT record doesn's look like a valid DKIM record. Try changing v=spf1 include:spf.mandrillapp.com...

IMAP migration and changes to folder structure

email,imap,dovecot
I am using imapcopy on a ubuntu 14.04 server and telnet to migrate and respectively edit heavy imap inboxes accounts. I would like to flatten the folder structure, meaning that I want to select and copy all emails from all children folders into one "Import" folder. I cant seem to...

fopen multiple files to send mail with mail() php

php,email,send,multiple-files
i have problems to send mail with multiple files with mail() php. Until now, only send the first file, so i need your help please. Give you my code: HTML: <form action="colabora.php" method="post" enctype="multipart/form-data"> [...] <div id="adjuntos"> <input type="file" name="archivos[]" class="form-control"/> </div> [...] PHP: [...] if (isset ($_FILES["archivos"])) { $tot...

Launching email client programatically in android and passing email address to client

android,email,android-intent
In my app I have a contacts page that when the user clicks on the contacts name a drop down appears with the email and phone number of the contact. I am launching the email client in the onClick method of the text view that contains the email address, using...

PHPMailer not sending e-mail through Gmail, returns blank page

php,email,gmail,phpmailer,send
I am trying to set up a contact form at the bottom of my page. I am using PHPMailer and trying to receive emails at my gmail account. Every time I submit the form, my url changes to url/email.php and I get a blank page. What am I doing wrong?...

Mail with html content shows break lines or ignores newlines

email,templates,go,mandrill
I am sending mail to users via mandrill and I using both smtp and mandrill api to send. Content of the mail is rendered go template (.tpl) When I put template like Hi {{.name}}, <br/> This is support. <br/> it sends via mandrill api ok, but is visible when I...

Trying to send “alternative” with MIME but it also shows up in capable mail client

java,python,email,content-type,mime
I'm trying to send nice MIME emails, where html will be displayed whenever possible, and when not possible it should have a textual fallback. That is, when html contains an image, the "alternative" part should show "img ... should be here". The problem is that I see everything, also the...

Laravel 4.2 Sending email error

php,email,laravel,laravel-4
Hello everyone I have an error in laravel when I am sending an email. I have a form with a select tag and when I select the user and click submit I need to send him a mail after I select it. Here is my Controller method: public function store()...

semicolon separated email validation in javascript only [duplicate]

javascript,regex,email
This question already has an answer here: Using a regular expression to validate an email address 65 answers I know there are so many repeated questions in stack but i didn't found any help, so please help me. Email should be like this, "[email protected];[email protected]; [email protected] ; [email protected] ;[email protected];" I...

Java String Parser to find string, save it and print it

java,email,parsing,set
I wrote this little part down here to find tags in email subjects, extract them and save them to my Set. I.e. if email subject is "Hello there #bro #senpai" it should find and extract both 'bro' and 'senpai' and put it into m_aTags (which is just custom type Set...

How to get google app engine admin mail address?

java,google-app-engine,email
Is there a way in Google App Engine (Java) to get the the email address of the admin that is allowed to send mails without hardcoding it somewhere? Currently I use the Java System property in the appengine-web.xml. Something like the uploader of the app would be fine, too. Background...

How to check for an @ in an email address from a form post

php,forms,email,login,verification
I have a form with login and registration. My Form <form method="POST" action="login.php"> <input type="text" name="mail" value="Input your email"/> <input type="submit" value="Check"/> </form> Now, if someone enters their email, I want to check if there is an "@" in the address. I have tried using an array, but that´s not...

How to attach several files in mail using unix command?

mysql,email,ubuntu,sendmail,ubuntu-14.04
I'm implementing a script to backup my MySQL database. All process is OK and I send an email when it finish. But I want to attach the file in that email and I don't know how to do it. My command line is: mail -s "$1" -a "MIME-Version: 1.0;" -a...

Send email with template (Mandrill JSON)

json,email,html-email,velocity,mandrill
Hi I've created an html email template using Apache Velocity . I'm trying to send email through Mandrill Json API. There is something known as html template in Mandrill. But is there a way to send my html subject content generated by velocity to be passed as a String value...

Referencing form data to php script and inserting it into database

php,mysql,forms,email
Okay, I've looked everywhere. To begin with I have a form, a newsletter, that users enter their email into. Once they hit submit it checks a php form that takes that email and inputs it into an SQL database that stores the email. The problem is I get this error...

How to send a mail by postfix mail server with rails?

ruby-on-rails,email,mailer
On my local host, I followed this article made a mail server and it works well. https://www.digitalocean.com/community/tutorials/how-to-install-postfix-on-centos-6 I want to develop a mailer feature with rails framework. Here are my settings: # mailer config.action_mailer.default_url_options = { :host => 'example.com' } config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { address: 'localhost', port: 25,...

How do I send an email of the current page using a button?

javascript,php,html,email,xampp
I am trying to send an email of my html page. This is the code I have so far: <script language="javascript"> function emailCurrentPage() { window.location.href = "mailto:?subject=" + document.title + "&body=" + encodeURI(document.location); } </script> <button onclick="emailCurrentPage()">Email page</button> Which sends the link of the current page but I want the...

javax.mail.MessagingException: [duplicate]

java,email,javamail
This question is an exact duplicate of: getting errors even after importing jars for sending email 1 answer package com.mca2b; import java.util.Properties; import javax.mail.util.*; import javax.mail.*; import javax.mail.internet.*; import javax.activation.*; public class SampleMail { public static void main(String [] args) throws Exception{ String to = "[email protected]";//change accordingly String from...

Sending email using smtplib doesn't work anymore

python,email,smtplib
So yesterday I had this bit of code written out and it worked perfectly fine, but today it's not sending e-mails anymore. Can someone explain why? import smtplib SERVER = 'owa.server.com' FROM = [email protected]' TO = [[email protected]', [email protected]'] name = 'Mr. Man' SUBJECT = 'Recent Information for: %s' % (name)...

php file with HTML mail does not send image files

php,html,email
I want to send an email to the user folowed in my php function with the body of the email in HTML. Like this... <?php //new function require_once '../PHPMailer/class.phpmailer.php'; $to = "[email protected]"; $nameto = "Alessandro Nardinelli"; $from = "[email protected]"; $namefrom = "AAA"; $subject = "BBB"; $corpo = '<html xmlns="http://www.w3.org/1999/xhtml"> <head>...

Gmail API: Insufficient Permission

php,email,google-api,gmail,gmail-api
THE SITUATION: I am testing the Gmail API for my app. I have tested some requests and they are working fine. For example get messages, get user history, get draft list etc.. Basically all the read only requests are working fine. I have instead some issues related with permission with...

TypeError: object of type 'method' has no len() | Trying to attach file to email msg

python,email,smtp,mime
I'm using Python 3 and I'm trying to attach a file to an email message. I'm pretty new at MIME and SMTP stuff. So this is my function: def func(): path = mypath for file in glob.glob(path + "\\happy*"): print(file) sender = myemail senderto = someonesemail msg = MIMEMultipart('alternative') msg['Subject']...

How do you unblock the 993 port if your firewall settings is blocking it?

php,email,ssl
I am trying to retrieve my emails from Gmail using php. for writing the host name, this is my code: $hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; I am getting this error: Warning: imap_open(): Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in /home1/mtc/public_html/mtcerp/emailparser/email.php on line 10 Cannot connect to Gmail: Can not authenticate to IMAP server: [CLOSED]...

How can I decode the content of the email?

email,gmail,gmail-api
I have received an email: Dear xxx, Thank you. You have just ordered the ultimate treat for your taste buds. Your yummy, lip smacking delight is being prepared with utmost love and attention at your own neighbouring Pizza Hut – Bengaluru - Airport Road.... but when I say "show original"...

AngularJS PHP contact cannot read property name

php,angularjs,email
Basically I have a contact form made with angularJS and PHP. and thats hosted on 000webhost. When I'm sending a mail the mail goes through but it also gives me an error. I think thats the reason it doesnt display MessageSuccess or MessageError messages. TypeError: Cannot read property 'name' of...

Android Studio javax.mail jar build error

java,android,email,android-studio
I'm trying to use the Gmail API to send emails. I've followed the Google documentation on how to do this. I need access to MimeMessage which is from the import: javax.mail.internet.MimeMessage; Since this is not included by default in Android Studio I downloaded the .jar files and did. File ->...

Collapsing table cells in media query for emailing

html,css,email,responsive-design
I had to create an emailing html and I can say it is definitely a hard thing to do. Now, making sure it is responsive is beyond obnoxious. I'm stuck right now on a seemingly unsolvable problem. Here is the problem : I have a table with 3 columns (column...

Piping echo into sendmail in rc.local fails

linux,shell,email,sendmail,boot
I'm trying to get my system to send me an email when the system boots. Using the following command works as intended: echo -e "TO:[email protected] \nSUBJECT:System Booted \n\nBeware I live! \n"$1 | sendmail -t -vs But if I add it to rc.local like so: #!/bin/sh -e # # rc.local #...

Symfony2 service unable to find template

php,email,symfony2,templates,twig
I've just pulled an all-nighter trying to get this to work, and I'm probably missing something foolish, but help me out. I have a symfony2 service which sends emails. I have injected the @templating service into my service's constructor like so: services.yml order_service: class: AppBundle\Services\OrderService arguments: [ "@doctrine.orm.entity_manager", "@mailer", "@templating"...

How to use PHPMailer only for checking login password?

linux,email,smtp,phpmailer
I want to use PHPMailer to send email. However, the first step I only want to check whether user's password is correct. If it is correct, next step is to notice user to write receiver's email address. For example: <?php include('snail_database.txt'); require_once('/var/www/PHPMailer_5.2.4/class.phpmailer.php'); $mail = new PHPMailer(); $mail -> CharSet='utf-8'; $mail...

Outlook VBA - set sentonbehalf and Refresh ActiveInspector

vba,email,outlook,outlook-vba
I frequently want to change the sender data in the currently open Mail This is well done by following code: Sub AktiveMailSetVonHotline() Dim oMail As Outlook.MailItem Set oMail = ActiveInspector.CurrentItem oMail.SentOnBehalfOfName = "[email protected]" End Sub` Only question / disadvantage is: After running that macro I can not see that the...

send email according time and date [closed]

php,apache,email,server
I am facing a problem with sending email about status. Basically I want to create script which send email every morning with some data from database. My goal is to write PHP file which will send email. I can create this file but I dont know how to call this...

Change the displayname of the sender when sending mail via o365?

email,office365
Is it possible to control the display name of the sender when sending mails with the office 365 OutlookServicesClient? I.e., I want to use, say [email protected] as the sender which is configured with the name some [email protected] in office 365. But for a given mail I want the from name...

How may i create Email accounts on my own server and receive emails to that account using PHP?

php,email
I can easily send emails from my script using following code: <?php mail("receiver1,receiver2,...","subject","body","From: [email protected]") ?> Am i able to create an email account on my server such as [email protected] and read email on that account using PHP without manually going to cpanel and create the account there? Thank you for...

PHP - how to send e-mail after successful file upload? [duplicate]

php,email,file-upload
This question already has an answer here: PHP mail form doesn't complete sending e-mail 10 answers I need a PHP to send an email if a file was uploaded successfully. My code is working fine like this: <?php $target_dir = "gallery-sys/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1;...

php - Gmail doesn't accept emails that contains links

php,email,gmail,phpmailer
I am using PHPmailer to send emails that contain activation codes to the people who have signed up on my website. Everything worked fine with Yahoo! but not with Gmail. There is no errors in my PHP script. Everything looked okay. I tried to remove all the links from the...

How to send email to registered user (MVC)

asp.net-mvc,email,asp.net-identity
My problem is this one, I have users that are registered in a basic MVC 5 application, when they register they provide email address and a username. In the application userA can see what userB created (ie a product or whatever), what I want to do is that for userA...

Attaching .mov to MFMailComposeViewController

ios,objective-c,email,email-attachments,mfmailcomposeviewcontroll
I want to send .mov file via email. So I am using MFMailComposeViewController. After spending some time for searching I finally wrote below code. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *myPathDocs = [documentsDirectory stringByAppendingPathComponent: [NSString stringWithFormat:@"/Saved Video/%@",[player.contentURL lastPathComponent]]]; MFMailComposeViewController *mail = [[MFMailComposeViewController alloc] init];...

Open mail in python

python,email
I'm trying to do a python code to open a Mailbox and reading them.. All I can do for now is to do a connection to a mailbox (a gmail or a hotmail for example) and getting my mail but I got something like this : I think it's the...

javax.mail.AuthenticationFailedException: 535 Authentication failed: Error: Not enough credit

java,email,smtp
sorry for the noob question. but this was working before, then now it is not. i don't understand why. please see the codes below we have a smtp server. it was working properly, but after afew testing it was like that already. I could ping the smtp server, it is...

php mail awkward change to sent content

php,json,email
i'm sending a list of url's with php mail. The problem is that exactly one link gets transformed. However, when i try to send only this one link - it works. Result at the moment: .... https://scontent! .cdninst agram.com/hphotos-xpf1/t51.2885-15/s150x150/e15/11049164_453900378092870_2016147159_n.jpg .... Wanted Result ... https://scontent.cdninstagram.com/hphotos-xpf1/t51.2885-15/s150x150/e15/11049164_453900378092870_2016147159_n.jpg .... As you can see the...

Eclipse Selenium Facebook login issue (new page email) driver.findElement(By.id(“email”)).sendKeys(“”); Java

java,eclipse,email,selenium,facebook-login
I am trying to login facebook but there is a problem. I want to write "email" to facebook login page, but it's writing to my website's login page. i don't want to write email to email input of site.com, i want to write email to facebook login input which is...

Retrieving Blank Excel upon attaching excel in Mail

c#,asp.net,email
Im using this code to Send a Mail with excel attachment from gridview, it works fine for the mail part but the excel attachment is always blank i have already debugged the code and sure that the datasource of the Gridview passes the data it needed to the gridview, it...

Can I dynamically set the recipient of mailto: using only HTML and JavaScript depending on URL used to access the site?

javascript,html,email,dynamic,mailto
I have 5 different websites that all use the same privacy html page but depending on which site they accessed it from I want the email to change dynamically. For example, lets say I access the privacy page from Site A and click the [email protected] to send an email I...

How to convert a file name when using Java Mail API

java,file,email
I wrote an adapter between an SQL database and mail server. I used a POP3 connection. Thereafter, I encountered the following problem - when the adapter receives a Russian file name this error occurs. Example input file name: =?UTF-8?B?0KHQutGA0LjQv9C60LAg0JzQsNGA0LjRjy5kb2N4?= The coded format is Base64. I tried to convert Base64 to...

Plain text emails displayed as attachment on some email clients

perl,email,attachment,mime,plaintext
The email can be viewed normally using some email clients (Evolution, Thunderbird), but with other clients (e.g., GMX) the body of the message remains empty and an attachment containing the body of the message is sent. I would like to know how I can prevent this from happening, since the...

Outlook 2010 scripted rule using VBA

vba,email,outlook,rule,inbox
I am trying to create a very simple (because I'm new and learning) scripted rule in Outlook 2010. The RULE is: If a new mail item comes in from a particular email address, run my script and stop processing rules. The SCRIPT checks the body for a string. If the...

javax.mail.getValidSentAddresses()

java,email,javax.mail,javax.mail.address
Here is my code: public static void send(String from, String to, String subject, String content) throws AddressException, MessagingException{ ErrorCheck ec = new ErrorCheck(); try{ String smtp = "smtp.TestDomain.com"; String host = "localhost"; Properties props=new Properties(); props.put(smtp,host); props.put("mail.smtp.reportsuccess","true"); Session session1 = Session.getInstance(props,null); Message msg =new MimeMessage(session1); msg.setHeader("Content-Type", "text/plain; charset=UTF-8"); msg.setHeader("Content-Transfer-Encoding",...

PHP email not echoing a foreach loop

php,email,foreach
I'm trying to send out a php email that lists all of the products the customer ordered. At first I was just listing the variables for the quantity, products, details, etc. It worked, but only one of the products were being included in the email. So I figured a foreach...

Gmail API: Get list of messages labelled with a specific label in php

php,email,gmail,google-api-php-client,gmail-api
THE SITUATION I am setting up Gmail API for my app. I need to import all the emails labelled with a specific label, for example TRASH, SPAM, SENT, UNREAD, STARRED etc.. I am able to get the inbox emails list and single message info. And i can get the list...

Get email address from email body in outlook vba

vba,email,excel-vba,outlook-vba
I've been working on a macro to get the email addresses from emails contained in a specific folder. I am able to get to that folder and get all the items (emails) in it, and while the code executes fine, extracting what I need, it stops at around 1273 email...

Emails sent from a cronjob to a local mailbox

email,crontab,sendmail
I have some cronjobs. These cronjobs send emails but I dont want to disable them with (>/dev/null 2>&1). I would like to know how can I deliver these emails to a local mailbox? Server doesnt accept connections from outside. So the port 25 is open only on localhost/127.0.0.1. A solution...

Email Validation in jQuery using RegExp

javascript,jquery,regex,email
I have to validate a email field which can contain multiple email address separated by (;). The following is the code i used $("body").find(".reqEmail").filter(function(){ var regex = new RegExp(/^[_A-Za-z0-9-]+[^(),:;<>\\[\\]@]*@[^(),:;<>\\[\\]@]*(\\.[A-Za-z]{2,})+$/);///^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; var email=$(this).val() if(regex.test(email)==false){ e.preventDefault(); $(this).css("border","solid 1px red"); $(this).parent().find("#ReceAppEmail").html("Invalid Email!!"); } else{return...

Contact Form fails to send out an email [duplicate]

php,email,contact-form
This question already has an answer here: PHP mail form doesn't complete sending e-mail 10 answers After filling up the contact form with valid information, and hitting submit, I get a message of success! But, on checking the my inbox, I don't the email. What is wrong ? P.S....

Laravel SMTP driver with TLS encryption

php,email,laravel,phpmailer
I'm trying to send an email with this configuration: return [ 'driver' => 'smtp', 'host' => 'mail.mydomain.com', 'port' => 26, 'from' => ['address' => [email protected]', 'name' => 'Mailer'], 'encryption' => 'tls', 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), 'sendmail' => '/usr/sbin/sendmail -bs', 'pretend' => false, ]; When I submit the form...

SSRS Subscription: newly defined fails, old one works

email,sql-server-2012,subscriptions,reporting-services-2012
Newly Created subscription for new report fails with error " Failure sending mail: The specified string is not in the form required for an e-mail address.Mail will not be resent." It is defined in the same way the existing one, using same ReportServer with unchanged config since it started working....

Accessing shared outlook inbox in python

python,email,outlook
I have a shared inbox in outlook and I want to write some code that would get me the emails from the shared inbox. Right now I can get the emails from my main inbox, but I want to do it for another inbox. This is the code so far:...

How can I fetch emails on Android?

java,android,email,javamail
I'm trying to develop an app that fetches emails from a POP3 server that is not Google and I'm facing many problems. I'm using JavaMail library and following TutorialsPoint tutorial. Their example for pop3 works fine on Eclipse/desktop but when I move the code on Android it never works and...

Sending MailChimp email with Rails

ruby-on-rails,email,devise,mailchimp,mandrill
((I've found similar questions to mine, but they are specific to a 3rd party mandrill gem, or Heroku. I'm not using any of those, just the mandrill-api itself.)) I'm trying to use email confirmation (we use Devise) for account creation. I've set up confirmable, everything with that works well. Initially,...

use formail to get last email of an email file

linux,bash,email,mutt
I would like to get the last email of an email file. I found question that splits emails: How to split mailbox into single file per message? But I would like something more efficient. Ideally, I would like to get the message id of the last email. For one email,...

How do I use VB.NET to send an email from an Outlook account?

vb.net,email
I'm trying to send an email via an outlook email account through a vb.net program. When I run the code I get an error telling me that I don't have a secure connection. I've been searching online and have tried all the adjustments I've found but I'm still not having...

How to add image slider in email newsletter?

javascript,jquery,html,email,newsletter
I have been created email newsletter using mailchimp Now i want to add image slider with responsive design, But i have been searched lot online.. Some online docs says can't able to add image slider in email newsletter. For example this link told., its impossible. So, may i know, what...

Add image in email not as linked resource but should be visible in outlook

c#,html,email,outlook
I want to add image to email. I tried several ways the final solution I am having is to add image as linkedResource but it will increase the size of email and I don't want that as email is already having several attachments.I am using xslt file to get html...

Automatically export incoming emails from Outlook to existing Google spreadsheet [closed]

email,outlook,google-spreadsheet,export
Is it possible at all to automatically export incoming emails from Outlook to existing Google spreadsheet (and be able to edit the spreadsheet, insert new data)? If it is so, where would you start? We want to manage our inbox this way and keep track of assignments. Thank you!...

How to read mail and insert into database using Mule?

java,email,mule,javamail
I have to create an application in Mule which will read the mail from a store and save it's details in a database. I know how to insert the data into the database but I am unable to find any solution about the mail. How do I read the mail...

Spring Integration: SMTP server

java,spring,email,smtp,spring-integration
I am using Spring Integration 4.1.2. In the program flow, at the end of a process I need to send an email. I am using the following: <int:payload-type-router input-channel="response.in"> <int:mapping type="java.lang.String" channel="response.out"/> <int:mapping type="org.springframework.mail.SimpleMailMessage" channel="mail.out"/> </int:payload-type-router> <mail:outbound-channel-adapter channel="mail.out" mail-sender="mailSender"/> This is working fine. I want to also handle the situation...

Rails 4.2.1 Action mailer not delivering the emails

ruby-on-rails,ruby,email,sendmail,actionmailer
Actionmailer does not seem to deliver my emails, my app is in production environment. I have the following set in my config/environments/production.rb config.action_mailer.delivery_method = :sendmail config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true config.action_mailer.default_options = {from: [email protected]'} config.action_mailer.default_url_options = { host: 'http://domain.com' } Sending the mail UserMailer.welcome(self).deliver_now Rails version: 4.2.1 In my...

how to disable phpmailer showing configuration details on browser

php,email
I've no idea why the email configuration details and status shown on my page upon successful email sending..How to disable it? The messages are as below: SERVER -> CLIENT: 220 mx.google.com ESMTP ss3sm18138445pab.43 - gsmtp CLIENT -> SERVER: EHLO localhost SERVER -> CLIENT: 250-mx.google.com at your service, [IP ADDRESS]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250...

Send email with body consisting of objects

email,powershell,foreach
I am trying to write a script to search through AD and look for any stale computers and then sends an email to me. However, there are 3 requirements: get the lastlogondate for any pc that is older than 90 days once I get that list, I do a ping...

Validator EmailAddress can validate an array of email

php,validation,email,zend-framework2,jquery-select2
I have a select2 field (tags) wich need to be validated with EmailAddress validator from Zend framework 2. the post from select2 field is like this : [email protected], [email protected]' From here, my form has an input filter wich looks like this : public function getInputFilterSpecification() { return array( 'name' =>...

Email a db file Android

android,email,attachment
Trying to send a SQLite db via email. The email send successfully but there is no attachment with it. My code is : Uri uri; if(android.os.Build.VERSION.SDK_INT >= 4.2) { uri = Uri.fromFile ( new File ( getApplicationContext().getApplicationInfo().dataDir + "/databases/"+ MainActivity.accounts.getUserName()+ "D"+"/Dentist.db" ) ); } else { uri = Uri.fromFile (...

PHP mail() function & PHMailer doubts

php,email,phpmailer
I have few doubts regarding the mail options in PHP. Whatever I have read, I can not send mail from localhost without SMTP. Is it correct ? For sending the mail from localhost using the PHP mail() function, I need to make few changes in these two files. one is...

How to send automatic mail from java Servlet using gmail id?

java,email,servlets
I am trying to send an automatic mail from java servlet to the gmail id.i used the following class for it. import javax.mail.*; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import java.util.Properties; public class EmailTest { public void sendEmail(){ String to="[email protected]"; String host="mail.javatpoint.com"; final String user="[email protected]"; final String password="password"; //Get the session object...

How to log in user to my web application when he click on some link in his email

php,mysql,email,login,yii2
Every day I need to send emails to my users with links for articles that they may be interested in on my news site. Example of link: <a href="http://example.com/article/5/some-seo-title>title of article </a> I am keeping data about users in my user table: id, username, email ... When user clicks some...

Timeout handle email php

php,email,redirect,location,sleep
I would like to redirect my user to a new page, but the current site continues to run a script that sends a threaded message 10 minutes later at a specified address. I tried something like this: Header('Location: xy.com'); sleep(100); do_the_email_sending_here(); But actually it doesn't worked,because the site waited for...

How to exclude guest users from getting emailed Rails 4 Devise

ruby-on-rails,email,ruby-on-rails-4,devise,mailer
Just set up my first mailer on Rails 4. I have a welcome email sent to new users as soon as they sign up (create) for a new account using devise. I also have devise set up so that if a current_user is not found, a guest user will be...

SMTP Sendmail With PEAR not using formating from database

php,mysql,email
I am using PEAR to send an email with smtp authentication. Currently i store the email with formatting in a database and then send it out from there. The email is sending perfectly. But the email body is not being formatted. instead it is taking whatever is in the database...

Create order sales_email_order_items html file

email,magento
I am creating order from backend in magento and user is getting email of order details, in that email product details are coming from variable sales_email_order_items. I want to modify that table(totals of order tax, subtotal etc.). I have tried changing in file app/design/adminhtml/default/default/template/email/order/items.phtml but it do not shows any...

Sending mail by Unauthorised sender in Google AppEngine

python,google-app-engine,email,sendmail
I've got a Google AppEngine Python application connected with my domain. I want to be able to send emails from any email, like: [email protected] So I use sendmail() and set mailobject.sender = "[email protected]", but it does not work. Also I made a receive function, but I don't want to receive...

php form mail function

php,email,variables,concatenation
I am using a mail function to mail it to my email adress, but i want it to send me a message with variables in it. (I have tried to concatenate it with concatenation point, but it doesn't seem to work, or I did not use it right) The code:...

Change ActiveX email font

email,outlook,activex,activexobject
Would anyone know how to change the font in an email generated by new ActiveXObject("Outlook.Application")? This seems to default to Times New Roman regardless of the default settings in the mail client. Thanks...

Pass parameters into an email

ruby-on-rails,email
I have User and Admin, when users publish a post, all the admin receive a mail to be informed. I would like to pass parameters like the title of the post or the name of the user who published the post. At the moment, I'm just able to pass the...

php mail multiple email with same emails

php,email
It is my code $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $headers .= "From: [email protected]\r\n"; $subject = SITE_TITLE ." Account Upgrade Email!"; $to_email = [email protected],[email protected],[email protected]; mail($to_email, $subject, $message, $headers); I sending mail to same email id three times.... three different emails will be sent or only...

Limit cron from sending a mail for 5 mins in linux/shell

linux,shell,email,cron
I have a shell script that I am running as a cron every minute. My script checks for logs generated in the last one minute and send me a mail if logs generated are more than a certain limit. Now, in times of an issue there could hundreds of files...

Codeigniter PHP Mailer, Sender Info

php,email,codeigniter-2,phpmailer,contact-form
I'm using Codeigniter PHP Mailer which is hosted here: https://github.com/ivantcholakov/codeigniter-phpmailer/ and with gmail smtp it works flawless. However,using it for a standard contact form, when visitors use that contact form and send us an email, they basically send mails from our mail address to our another mail addess. When they...

JavaMail MimeMessage.getContent unsupported encoding

email,encoding,javamail
I´m having a problem with parsing some type of mail encoding with charset=t.101-g2 I´m using JavaMail in Grails directly using the lib, getting the unread emails from IMAP, and for each message try to get the content with Object msgContent = msg.getContent() And that line is throwing the error. The...

Outlook: Move item from me to a folder

vba,email,outlook
I create reminders for myself by sending an email to me and moving them to a folder named [email protected]' under Inbox. I wish to automate this so that every email that is addressed to me only will be moved to [email protected]'. I tried using rules, but I don't think there...

How to obtain email address associated to Apple's ID

swift,email,apple
I'm doing a Swift App and I Want to know the email associated to the Apple ID who downloaded/bought the application to use it to identificate himself or herself. So for instance, if a person buy my app, he will be the unique person who can login/register because it will...

Attachment not sent using Gmail and CDO in Excel/VBA

excel,vba,email,excel-vba
I am trying to send the active worksheet via CDO and gmail to all people entered in some textboxes during the process of sending them away. I use the following code: Sub CommandButton1_Click() 'Working in Excel 2000-2013 'For Tips see: http://www.rondebruin.nl/win/winmail/Outlook/tips.htm Dim FileExtStr As String Dim FileFormatNum As Long Dim...

Android URL connection java.io.FileNotFoundException

java,android,email,httprequest,bufferedreader
I try to send a normal Http Request to a WordlPress Website. This is the URL: "http://localhost.com/api/submit_comment/?post_id=12345&name=Max&[email protected]&content=hallo" If I open this with my Web-Browser all works fine. If I open it over this over an Android App it throws a java.io.FileNotFoundException. The Android Code: class SendComment extends AsyncTask<String, Void, String>...

PHP Contact Form returning Error Message [duplicate]

php,html,forms,email,contact
This question already has an answer here: PHP mail form doesn't complete sending e-mail 10 answers I have these exact same PHP contact form codes on 2 different servers. 1 is working as intended, but the other is returning the error message instead of the success message. Also, email...

Extract emails from comma separated file using ruby

ruby-on-rails,ruby,email
So I purchased an email list in a txt file and of course there's a bunch of email addresses, albeit, they are intermingled with other text that I could care less about. Ultimately, I'd like to extract ONLY the email addresses and save them to a new file. How might...

Encrypted Querystring in URL getting changed to lowercase in Outlook

c#,asp.net,email,url,encryption
I am providing a CANCEL button in a registration email, so that the user can click the link and cancel their registration. This works fine except Outlook is converting links to lowercase. So when the user clicks the link, I can't decrypt the URL because the encrypted querystring is now...