FAQ Database Discussion Community


Alternative to mail or mutt in Linux to send mail?

linux,sendmail,centos6,mutt
I have a CentOS server which does not have the mail client. I do not have sudo access to install it or to install mutt. What may be the best alternative that I can use to send myself an email to notify a failure/success of a process that I run...

'DbBackend' object has no attribute 'use_ssl' django

django,sendmail,backend
I had a django app with version 1.6.5 and updated it to django 1.8 and got the below error when trying to send an email Traceback: File "/Users/user/.virtualenvs/env/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 132. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/user/user_name/apps/proj/project_name/app_name/core/views.py" in contact_page 54. send_mail('Contact from web', body, 'Directories', ["[email protected]"], fail_silently=False) File...

Query MySQL for an email address and send an email to that address

php,mysql,email,variables,sendmail
I am trying to retrieve an email address from a table where the username is a known value. That value will be passed from the previous page but I have made it a constant in this example. I don't know how to give the result a variable name and call...

Laravel Mail::send() illegal offet 'name'

php,email,laravel,sendmail,mail-sender
I'm sure there is a simple solution, but I am having trouble with an error for "illegal string offset" when processing form input for use with the Laravel Mail::send(). This is the code which processes the form input, as it has to be an array. $msg = array( 'name'=>Input::get('name'), 'email'=>Input::get('email'),...

Sending email using standard gmail app without chooser

android,android-intent,sendmail
I'm trying send email from my app using standard gmail app. But I get chooser all the time. How can I open standard gmail app immediately without chooser? I don't need a chooser with any application which can send email. I need only GMAIL. Thank you! Here is my code....

PHP send mail show name instead of an email [duplicate]

php,apache2,sendmail
This question already has an answer here: PHP E-mail Form Sender Name Instead Of E-mail? 7 answers //send email $to = $_POST['email']; $subject = "Welcome!"; $body = "Contains sensitive information that activates users so I've removed it."; $additionalheaders = "From: <".SITEEMAIL.">\r\n"; $additionalheaders .= "Reply-To: ".SITEEMAIL.""; mail($to, $subject, $body, $additionalheaders);...

How to get the google forms responds into mail

javascript,forms,email,google-spreadsheet,sendmail
I am very new to google scripting and just saw the light (I think). I have found some code on the Internet (thanks a lot) that I use to trigger an email whenever a form is entered. I use google form to collect data for my job and when I...

Testing a domain for a catchAll email in node js

node.js,email,dns,sendmail,telnet
I am trying to programatically test if a domain has a catch all email address hosted on it. I would like to know if a particular domain - ie. facebook.com - would receive an email sent to [email protected] I am currently using node DNS to see if the domain first...

Laravel put foreach inside mail

php,laravel,laravel-5,sendmail,swiftmailer
i want use a foreach inside my mail function, but i'm not sure how to do that, (i'm using swiftmailer, but that's not really relevant i think) here is my code: Mail::send('emails.bestelling', array( 'mededeling' => $bestelcode, 'rekeningnummer' => '000/000000/00', 'naam' => $userNaam, 'totaal' => $totaal, 'producten' => foreach ($mand as...

How to configure exim with docker for sendmail

linux,ubuntu,docker,sendmail,exim
I am using docker container for emails using this exim image https://registry.hub.docker.com/u/tianon/exim4/ This works fine if i use smtp host as conatiner name in other website and Now my joomla site is using sendmail and i am not able to figure out how to link sendmail with exim container I...

Automation of email sending process through corporate webmail

ruby,smtp,sendmail,webmail
I am in need of a script which automatically sends particular data from my corporate webmail email id . Till now I am able to send automatic emails from a gmail id. But Iam unable to configure it for my webmail id. Please let me know if any configuration changes...

Send email from MySQL trigger when a table updated

mysql,sql,email,triggers,sendmail
Consider a table as table2, i like to add a trigger on this table update as select Num into num from table1 where ID=new.id; BEGIN DECLARE done int default false; DECLARE cur1 CURSOR FOR select EmailId from users where Num=num; DECLARE continue handler for not found set done = true;...

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

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

how to use designed template in django using sendgrid API?

python,django,sendmail,sendgrid
I have integrate the send-grid with my Django application and mails also sent successfully. But now I want to send email with designed template from my django application. I have read the docs also, but not get any idea how to use it programatically. This is my first time to...

send mail as non root user

email,sendmail,tuleap
I am trying to send a mail with a non root user (also by tuleap application) but i have some trouble. when we use a root user with command echo “TR : This is a test of sending mail” | mail -s Test <mail> it return this log and my email...

PHP Mailer Script Not Printing Variables In Email

php,sendmail
The issue I am having is in the message portion of the email. The email sends just fine, the outline is there but no name email or message is printed from the variable. I can't seem to see what the issue is. Any help is appreciated. <?php session_start(); $name=$_POST['name']; $email=$_POST['email'];...

How to mail a log file to yourself using PHP from a Windows machine ?

php,email,sendmail
Situation: I run a PHP script from a windows 7 machine using CLI. My script will do its thing and then generate 1 log file at the end. I already got all that part working. In addition to that, I want to email myself that log file every time the...

send mail in android via java mail AuthenticationFailedException

android,javamail,sendmail
i want to send email in android in my app by javamail and i get AuthenticationFailedException can anyone help me i use this link for sen mail Sending Email in Android using JavaMail API without using the default/built-in app

Pear Mail sends email without attachment

php,email,sendmail,pear
I am trying to send mail using PHP PEAR Mail with some attached files. I am reading a text file to get the filenames and then using this to create a filePath from which I can attach the file as per the PEAR addAttachment() syntax. But when I receive the...

smtp.SendMail cannot send mail to multiple recipent golang

email,go,sendmail
I want to send mail to multiple recipients in Go, with my yahoo mail, but I from all recipients only I get mail. Code: err := smtp.SendMail( "smtp.mail.yahoo.com:25", auth, "[email protected]", []string{"[email protected], [email protected]"}, []byte("test") message: From: "testMail1" <[email protected]> To: testMail1 <[email protected]>, testMail2 <[email protected]>, Subject: "mail" MIME-Version: 1.0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding:...

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

error no 10061 in django when sending mail

python,html,django,gmail,sendmail
I already use 10061 server. My code is like, setting.py: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' views.py: def trying(request): message = request.POST.get('message', '') if message: try: send_mail("Testing", message, "[email protected]",['[email protected]']) except BadHeaderError: return HttpResponse('Invalid header found.') return HttpResponse('Send Successfully...1') else: # In reality we'd use a form class # to get proper validation errors....

Zend Framework 2 - Sending form using Zend\Mail

php,jquery,ajax,zend-framework,sendmail
So i'm making a contact page. Of course it will have a form, which needs to be sent. I made the class to send email: <?php namespace Site\Mail; use Zend\Mail\Message; use Zend\Mail\Transport\Sendmail; class SendEMail { public function SendEMail($to, $from, $subject, $body) { $message = new Message(); $message->addTo($to) ->addFrom($from) ->setSubject($subject) ->setBody($body);...

C# EWS Searching SentItems

c#,search,sendmail,ews
I'm new with C# and i'm making one *.exe that have to search emails with a specific subject in my Exchange. For Inbox and Other Folders i use the code bellow (with no problems): FindFoldersResults allEmailFolders_Inbox = service.FindFolders(WellKnownFolderName.Inbox, new FolderView(int.MaxValue) { Traversal = FolderTraversal.Shallow }); FindFoldersResults allEmailFolders = service.FindFolders(WellKnownFolderName.Inbox, new...

PDF as mail attachment - Laravel

laravel,pdf,sendmail
I want to create a PDF using the barryvdh/laravel-dompdf package and send this with an email as attachment. The code I have now is: $pdf = PDF::loadView('layouts.factuur', array('factuur' => $factuur)); Mail::queue('emails.factuur', array('factuur' => $factuur), function($message) use ($pdf) { $message->to(Input::get('email'), Input::get('naam'))->subject('Onderwerp'); $message->attach($pdf->output()); }); But now I get the following error: Serialization...

gmail still shows html tags with php mail(); [closed]

php,html,email,sendmail
I looked up on this website and on the php.net website which tags I should send with my php mail() function to correctly send html mail. Somehow my gmail still shows the html tags. What am I doing wrong on this? $to = "$email"; $subject = "order placed"; $from =...

How to Take a photo and attach the photo in an e-mail and send

android-camera,sendmail,android-camera-intent
I want to achieve the following In my app, there will be a screen which allows you to take a picture Once user has taken the picture, he will get an option to send the picture to the predefined email Id as an attachment. Can someone throw some light or...

how to return false when mail transport failed in zend framework 2?

php,exception,zend-framework2,sendmail
I am trying to return fail message with json if the mail sending is failed, here is my code: $transport = new SmtpTransport(); $options = new SmtpOptions(array( 'name' => 'localhost', 'host' => 'localhost', 'connection_class' => 'login', 'connection_config' => array( 'username' => 'cscsacsac', 'password' => 'csdca', //'ssl'=>'ssl', //'port' => '465', ),...

ping one device after the other and check availability

bash,if-statement,for-loop,raspberry-pi,sendmail
I want to run a bash-script on my raspi. The script's purpose is to check one device in my network for availability (with ping). If this device is responding, script should end. If it's not responding it has to go further and check the availability of 3 specific devices: if...

My php mail function is sending blank messages

php,email,sendmail
So as the title states I receive blank emails from my contact form. The php code is below. I've checked the value of $msg and it appears correctly, I've also googled a ton and I can't find anything standard cause that apply to me. <?php main(); function main() { $posted...

Send 2 different emails using 'function sendMail()'

javascript,php,email,sendmail
I have a site with some data to be chosen by users. Depending on choice, I would like to send an email. Therefore I have 2 buttons: The first should send some data to one email, the other one should send some other data to another email. I use this...

jQuery/PHP Send email on mousedown link event

php,jquery,sendmail
Here my code. I could not display errors message. Simply mail is not sent. What's wrong with this approach ? <a id="target" href="http://www.mylink.wav">mylink</a> <script type="text/javascript"> $(function() { $("#target").mousedown(function() { $.post( "sendemail.php", { name: "John" } ); }); }); </script> <?php if($_POST) { $mail = "myemail.email.com" $name = $_POST['name']; $subject =...

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

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 #...

PHP mail()- can't send mails to Gmail from localhost(xampp)

php,localhost,sendmail
For a schoolproject i need to send e-mails from localhost to gmail. i've downloaded and copied all of the files from http://glob.com.au/sendmail/ and pasted them into my xampp/sendmail folder. I just can't find the problem, any help is appreciated. here are my settings which should technically work. <--sendmail.ini file--> smtp_server=smtp.gmail.com...

How to Send email with High Importance in asp.net VB

asp.net,vb.net,sendmail
How do I set the code below to generate email with high priority in the subject line? Thank you for any guidance. Private Sub SendEmail(ByVal pharmEmail As String, ByVal backupEmail As String) Dim smtpClient As New System.Net.Mail.SmtpClient() Dim message As New System.Net.Mail.MailMessage() Try Dim fromAddress As New System.Net.Mail.MailAddress(WebConfigurationManager.AppSettings("EmailFromAddr"), WebConfigurationManager.AppSettings("EmailFromName")) message.From...