Questions tagged [smtp]

0

votes
0

answer
3

Views

Postfix on Ubuntu - Can't configure gmail as mail relay

I have a fresh installed Ubuntu 16.04.5. I am trying to install and configure Postfix to send E-mail using gmail as the mail relay server. So... I install mailutils to execute "mail" command in the future apt install mailutils Install postfix sudo apt update && sudo apt -y install libsasl2-modules p...
Ilya Bogomolnyy
1

votes
4

answer
1.1k

Views

Add Subject header to server.sendmail() in Python

I'm writing a python script to send emails from the terminal. In the mail which I currently send, it is without a subject. How do we add a subject to this email? My current code: import smtplib msg = """From: [email protected] To: [email protected]\n Here's my message!\nIt is lovely! """ server = smtplib.SMTP...
user248884
1

votes
1

answer
692

Views

FQDN with SmtpClient in Powershell

I am using the .Net class System.Net.Mail.SmtpClient in Powershell to send a mail with some attached documents. It all works great in our test environment, but fails in production. The problem is, that a fully specified domain name is required in production to send the mails. However the SmtpClient...
G_hi3
0

votes
0

answer
2

Views

.NET project stopped sending emails after server migration

I migrated a .NET Framework REST API project into a new server and new domain. The OS on both the previous and the new server are Windows Server 2016. I'm using gmail smtp server over SSL/TLS. The relevant ports are open in AWS (where I migrated to). I am able to send emails manually using powershel...
yohairosen
0

votes
0

answer
18

Views

Mail from a Laravel application not working from Server; Works fine from local

enter image description here I have a Laravel application hosted in Godaddy. But when I tested the mail functionality, it gives the error "Connection could not be established with host smtp.gmail.com [Connection refused #111]" The same application works fine in localhost:8000 I tried changing MAIL_...
Abhijit Kazi
1

votes
1

answer
7.7k

Views

The following From address failed Called Mail() without being connected

Hello guys I get this error: The following From address failed: [email protected] : Called Mail() without being connected How can I fix it? Thanks! I send email from localhost running XAMPP in PHP using Gmail mail server.
Cava
1

votes
2

answer
558

Views

Nodejs, email send using Nodemailer using Bluehost SMTP not being delivered, no error

I am trying to send email from my Nodejs application. I'm using the package Nodemailer for this. Here's the code I use for sending email; let smtpTransport = nodemailer.createTransport({ host: "box***.bluehost.com", port: 465, secure: true, auth: { user: , pass: } }); let sendResetPasswordEmail =...
Shabin Muhammed
5

votes
0

answer
21

Views

How does it send slight different emails to multiple recipients, though having them in common 'to' section?

So I was trying mixmax - the chrome extension and got to know it tracks email open event even though the same mail is sent to multiple recipients and it is able to identify receivers properly. I checked and found that it adds different pixel URLs for all receivers, mail looks same (that's not my con...
Karan Shah
1

votes
2

answer
876

Views

(grails) com.sun.mail.smtp.SMTPSendFailedException: 553 Relaying disallowed as zoho mail

I am trying to configure zoho mail service in grails mail-plugin. Here is my configuration so far, grails { mail { host = "smtp.zoho.com" port = 465 username = "[email protected]" password = "some-valid-password" props = ["mail.smtp.auth":"true", "mail.smtp.starttls.enable":"true", "mail.smtp.socketFa...
Balkrishna
1

votes
1

answer
3.3k

Views

JavaMail Exception : STOREDRV.Submission.Exception:OutboundSpamException

I used java mail API to send email from Gmail, Hotmail and Outlook account. It worked well with Gmail and Hotmail, but not work on Outlook . Code for Outlook Sender Class public class OutlookSender extends javax.mail.Authenticator { private String mailhost = "smtp-mail.outlook.com"; private String u...
CauCuKien
1

votes
1

answer
585

Views

Error 535 while setting up nodemailer with GoDaddy

I'm wondering if anyone has figured out how to use GoDaddy hosted email with nodemailer. I have an email submission box from my contact form, and it triggers the following script: function sendEmail ( to, subject, body ) { var transporter = nodemailer.createTransport({ service: 'Godaddy', host: "rel...
Alex Morris
1

votes
2

answer
173

Views

send email with lumen, without set smtp credential in env file

I want to send email with lumen, I have many different smtp credentials from where I have to send email with laravel, it is more then 1000 so I am not able to setup it from env file. I have to define every time new credential before send email. then how to pass it to lumen before send email because...
hetal gohel
1

votes
2

answer
32

Views

How does SMTP escape an RSET command after a DATA command?

In RFC 821, it says that a reset (RSET) command can be sent after a DATA command and some mail data has been sent: However, what distinguishes between a mail client sending an RSET command after DATA, and a mail that contains the word "RSET" on a line by itself? I've checked RFC 5321 as well and I c...
Trevor
1

votes
7

answer
961

Views

PHP mail problem

I am trying to implement a password reset functionality on my company website where if a user needs to reset her password, she can click on a link and a new, randomly generated password will be sent to her inbox. I am using the PHP mail() function. Now, I am running PHP5 on an Ubuntu machine. In php...
1

votes
4

answer
9k

Views

SMTP Bad sequence of commands. The server response was: You must authenticate first (#5.5.1)

I am trying to send email to some of my colleagues using a program. This program is working fine at my own desktop but is giving an error Bad sequence of commands. The server response was: You must authenticate first (#5.5.1) on one of our servers in remote location. Can someone point out the error...
puneet
1

votes
3

answer
483

Views

Is there a way to send an email using c# without setting an smtp server?

I would like my application's users to be able to use all possible emails. Now if I think about it setting up if clauses to track their email provider in order to set an SmtpServer and SmtpServer.Port would be inefficient. Is there an easier way to do this?
John Ernest Guadalupe
1

votes
1

answer
1.5k

Views

Proper email sending class asp.net 4.0 IIS 7.5 SMTP

Does anybody have proper email sending class for asp.net 4.0 c# ? Currently i have something like below What suggestions would you make this below class ? public static string sendEmail(string srEmailAddress, string srFrom, string srSubject, string srBodyHTML, string srBodyText) { using (MailMessage...
MonsterMMORPG
1

votes
1

answer
122

Views

C++ to call python script to handle emailing

On a server I have a C++ program which takes some input and writes some output to a file. After the file is generated, I want to send an email to a person with the corresponding link to the file. I'd rather avoid dealing with SMTP from C++ itself, so I thought about having C++ using a system call to...
Aaron
1

votes
2

answer
1.8k

Views

Sending a mail with php: Script is waiting for the answer?

I am using the class PHPMailer to send Mails via SMTP: My Questions: Whats the best way to send to a lot of Mails (same Mailtext, only the appellation is different (Hello $NAME)? Is the PHP script waiting until every mail is delivered? Because sometimes I want to send a mail to some hundreds people,...
user1711384
1

votes
1

answer
1.2k

Views

Sendgrid connection refused

I am developing a Ruby on Rails 3.2 application on Heroku. I added the sendgrid addon with heroku addons:add sendgrid:starter and then restarted with heroku restart However, if I try to send a password email in my application (I am using the devise login gem), I get this in the logs 2013-01-24T17:35...
highBandWidth
1

votes
1

answer
2k

Views

php @mail is not sending mail

my php mail function was working fine and sending mail just fine but since past few days it is not sending any emails. i have tested following from whm,php form, cpanel webmail and these are my observations when i used cpanel webmail to send emails to my gmail account it got delivered instantly when...
james
1

votes
2

answer
314

Views

Send Image Using web service or Email using Smtp? [closed]

In my application i want to send images to user without their interaction.which option is better Through Web service or Through Smtp email if user press home button while image sending is in progress.apple provides 10 minutes to complete your small tasks. which of them will perform better ? is there...
user1780632
1

votes
2

answer
284

Views

Exchange 2003 with C# smtpclient

I am currently trying to use SmtpClient to send an email with exchange 2003. Using the code below it will not send an email, but it does not throw an exception which i assume means it is making a connection to the exchange server because. Also for the server setting I tried mail.server.com as well a...
h8a
1

votes
2

answer
820

Views

sending emails in python weird behaviour

I am working on a piece of code that regularly sends emails from 4 different accounts, 2 of them are gmail accounts and the other 2 are yahoo accounts. When I started writing the code I was able to send all the emails from both the gmail accounts using the following piece of code: def sendGmail(self...
PepperoniPizza
1

votes
3

answer
4.1k

Views

Java Send mail failure, gmail with SMTP

I have written java code for send mail which is giving exception when i use port number 587 and is still running without stoping when i use port 465. I use Tomcat, and I do not know if there is a configuration to make. Mail.java public class Mail { String to; String from; String message; String s...
ftning
1

votes
1

answer
6.3k

Views

SMTP Timeout. Using our own server and swiftmailer. How can I increase the timeout? Error included

I'm looping through a list of customers, and sending files to them. The page often times out. Here is the exact error generated, minus my domain name. Fatal error: Uncaught exception 'Swift_IoException' with message 'Connection to smtp.example.com:25 Timed Out' in C:\inetpub\wwwroot\inc\lib\classes\...
user1424232
1

votes
3

answer
3.5k

Views

Should I use AWS SES, sendmail or setup SMTP for my node.js application?

My web (Node.js) application has a form that people fill out and send the inquiry to web admin (myself @ gmail). I use nodemailer before when I wasn't on AWS. The old server has SMTP. The amount of emails sending out from the server to my gmail is small, very small. Now, I've moved to AWS EC2....
murvinlai
1

votes
3

answer
22.1k

Views

Smtp error 451 Temporary local - please try later on Cpanel Server

I have a Cpanel Server. It send emails correctly expect from 1 domain which hosted on the server , so when I try to send email from that domain using roundcube or Horde I got the errror SMTP Error (451): Failed to add recipient "[email protected]" (Temporary local problem - please try later). doe...
uidroot0
1

votes
2

answer
1.2k

Views

SMTP 450 when sending mail with Net::SMTP

SO. I'm failing at sending mail from my Perl script. This is what my code looks like: use Net::SMTP; $smtp = Net::SMTP->new("smtpserver.mydomain.com"); $smtp->mail("myemail\@mydomain.com"); $smtp->to("myemail\@mydomain.com"); $smtp->data(); $smtp->datasend("From: myema...
romeroqj
1

votes
2

answer
4.9k

Views

Unable to get a email from mantis when test on signing up

I am using a mantis 1.2.15 with xampp I went through the step in the post which is discussed here , able to get a e-mail with the testmail.php, but still unable to get a email from mantis when test on signing up. So what could the problem? Thank you. Here is the config_inc.php /************** CONF...
mehmetozer
1

votes
1

answer
225

Views

smtp won't work in production, Unauthenticated even with credentials

I am having a hell of a time here. My code works on the local instance (OSX) with this config: mail.host = smtp.gmail.com mail.port = 25 mail.from = mysite.com mail.username = [email protected] But says it is unauthenticated in production (Ubuntu 12.0.1): Here is my code (and you can find all of it at...
timanema
1

votes
2

answer
616

Views

java bulk email sender

I need to design an application in java which can send like 200-300 mails/sec. How to get it done. I tried the simple Transport.send() which sends one mail at a time but that takes around 2-3 secs in itself. Also will google smtp allow me to send this much number of mails per second ?! How to implem...
Ankit Gupta
1

votes
3

answer
838

Views

Sending activation emails on EC2 server using SMTP

This is my first question on here, so thanks everyone for reading this. I'm following the tutorials by PHP academy on the Register & Login part. I'm using Amazon's EC2 service (Which is working great so far) and I would like to know how to change my code to use my SMTP server (From another webhost)...
Enrico Eusman
1

votes
1

answer
925

Views

unable to send email via smtp over ssl

i am writing a ruby script to send email using 'mail' gem. and my smtp settings on my local machine: mailer_options: address: smtp.gmail.com port: 587 domain: gmail.com user_name: [email protected] password: example_password authentication: :login enable_starttls_auto: true ssl: true when i try to s...
Sachin Singh
1

votes
2

answer
271

Views

Drop e-mails into a specified folder instead of sending them via SMTP server c#

i was reading an article from this link http://sampathloku.blogspot.in/2010/12/how-to-check-email-functionality.html about How to check Email functionality without using SMTP Server and there i have seen that email is not sent rather saved in local folder. so i like to know why anyone would like to...
Thomas
1

votes
4

answer
8.3k

Views

SocketException when connecting to SMTP server, but with telnet it's working

I want to send an email via Java but unfortunately I'm getting the following exception: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.SocketException: Permission denied: connect I'm using this little example program to send my emai...
Harold L. Brown
1

votes
1

answer
966

Views

cpanel sending email using gmail smtp in wordpress plugin

I'm using wordpress 3.8, Mail SMTP plugin to send emails, and cpanel. In my local it works fine as my host is gmail. And once I uploaded it live I get authentication failed and I'm sure I typed my gmail username and password correctly. Is there any configuration that must be done? In cpanel perhaps?...
Boy Pasmo
1

votes
1

answer
577

Views

Send AND receive email in an python application (no IMAP or POP3)

I'm building a application that needs to send and receive emails. However I do not want to have a separate email server (or use IMAP and POP3), since I need to create/delete/manage inboxes on the fly, with no email inbox passwords, etc. I have an email storage database in place, and I can receive em...
Isidoro
1

votes
2

answer
605

Views

Does Umbraco have the ability for Umbraco administrators to login, and write regular emails that could be sent out to subscribed users daily/weekly?

Here is an outline of the technologies were are using for our project at work : ASP.NET MVC 4 Visual Studio 2012 and Visual Studio 2010 Entity Framework Version 4 Umbraco 6.1.6 We want the application to send out daily/weekly emails to subscribed users. Basically, I believe we need to setup cron jo...
user1338998
1

votes
1

answer
427

Views

SMTPClient.Send crashes production application

I have used the System.Net.Mail.SMTPClient class in virtually every application I have developed. I have never had any issues with it. However, I am encountering an extremely annoying situation in which a call to SMTPClient.Send causes my production application to crash EVEN WITHIN A TRY/CATCH BLOCK...
field_b

View additional questions