smtp

Programmatically use Gmail to receive e-mail?

牧云@^-^@ 提交于 2019-12-05 01:38:08
问题 I'd like to use a C# program to poll a gmail account and automatically download new messages. I know you can use gmail as an outbound SMTP server, but is there any way to access new messages sent to the account? EDIT: Thanks for the rapid feedback....so I have two options, POP or IMAP. Which one should I use? And why? EDIT #2: Looks like IMAP allows me to not have to poll. Looks like the way to go. 回答1: Use Gmail with IMAP. 回答2: You can configure GMail to let you get at your mail with a POP3

Sending email from inside unity3d

╄→尐↘猪︶ㄣ 提交于 2019-12-05 01:31:05
问题 I am trying to send an email from inside unity on smartphones using the SmtpClient class. I have achieved this quite simple task on iOS but the exact same code does not work on android. Here's the code: private IEnumerator sendAutoMail (string textBody,string title) { MailMessage mail = new MailMessage(); mail.From = new MailAddress(sender); mail.To.Add(receiver); mail.Subject = "R4UL " + title; mail.Body = textBody; Debug.Log("Connecting to SMTP server"); SmtpClient smtpServer = new

.NET System.Net.Mail.SmtpClient class doesn't issue QUIT command to SMTP transaction

无人久伴 提交于 2019-12-05 01:04:28
问题 Has anybody had issues with this? If so, how do you get around it? We are getting sporadic timeout issues and this is getting blamed. The same issue is reported here as well: http://www.vbforums.com/showthread.php?p=3609268 回答1: I don't know if there's an easier way to work around this specific problem, but one option would be to download the source for Mono's SmtpClient and use that (modifying if necessary). Their version definitely does send a QUIT command. One project that I work on

Sending Email in Android using JavaMail API

可紊 提交于 2019-12-05 00:34:38
问题 I have referred to previous answers to similar question of mine but it gives an example using the outgoing server configuration of Gmail. However I want to use the JavaMail API for the webmail that my company is using: Outgoing server: smtp.softcellindia.com port: 25 Type of encryption: none I have tried using the following code. But it seems to send no mails. import javax.activation.DataHandler; import javax.activation.DataSource; import javax.mail.Message; import javax.mail

SMTP configuration not working in production

▼魔方 西西 提交于 2019-12-04 23:56:36
I'm trying to send an email when a form is submitted. I'm using PHPMailer to send the mail using the below configuration. $mail = new PHPMailer; $mail->isSMTP(); $mail->Host = 'mail.example.in'; $mail->Port = 25; $mail->SMTPAuth = true; $mail->Username = 'user@example.in'; $mail->Password = 'password'; $mail->setFrom("user@example.in" , "User"); $mail->addAddress('receiver@example.in', 'Receiver'); $mail->addBCC('anotheruser@somedomain.com', 'Another user'); $mail->AddReplyTo('user@example.in', 'User'); $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = $message; if($mail->send())

How do I use Gmail SMTP with port 587 on AWS EC2?

眉间皱痕 提交于 2019-12-04 22:52:57
问题 I have used Gmail SMTP service with port 587 on the local server and it's working fine. But it's not working on AWS EC2 instance. So I added SMTP rules on EC2 instance security inbound rules see below image but SMTP port can not be editable. Now the issue is if your domain does not configure secured connections. Gmail does not offer port 25 in an unsecured connection. So, there is any way to use SMTP on unsecured connection with 25 port or any other way. 回答1: I have fixed issue as of now for

VBScript SMTP Auto Email

会有一股神秘感。 提交于 2019-12-04 22:52:36
I have a script to auto email a list of address' stored in Excel, but it is only sending to the first address and not looping to the rest, I cannot seem to fix it: Set objMessage = CreateObject("CDO.Message") Set app = CreateObject("Excel.Application") Set fso = CreateObject("Scripting.FileSystemObject") For Each f In fso.GetFolder("Y:\Billing_Common\autoemail").Files If LCase(fso.GetExtensionName(f)) = "xls" Then Set wb = app.Workbooks.Open(f.Path) set sh = wb.Sheets("Auto Email Script") row = 2 email = sh.Range("A" & row) LastRow = sh.UsedRange.Rows.Count Const ForReading = 1, ForWriting = 2

Send email from my custom mailgun SMTP address

允我心安 提交于 2019-12-04 22:21:16
Sorry if I have not understood something but (I believe) I have searched enough for this. First things first: I have successfully set up my domain ( mydomain.gr ) which has been verified. I have created a custom SMTP address ( contact@mydomain.gr ). I have created a route which forwards everything sent at *@mydomain.gr to my personal Gmail address. Test 1: If I send an email from an external address (something@something.eu) to contact@mydomain.gr it is forwarded to my personal Gmail. OK! Test 2: If I send from contact@mydomain.gr to any external address (something@something.eu) I get the error

Mails Sent via SMTP should get reflected in the Sent folder on the Email Server too? [closed]

霸气de小男生 提交于 2019-12-04 22:18:24
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . When using SMTP to send mails (email client or via a script), mails are normally not seen in the Sent folder on the email provider's server. But it does get reflected in the Sent folders of Gmail (Google Apps). Is is not mandatory to save the mail in the Sent folder of the server too ? I consider Sent mails as my log for mails sent automatically. Jason Hynds Usually, an e-mail client such as Microsoft Outlook

Sending email using xampp localhost

我只是一个虾纸丫 提交于 2019-12-04 22:05:35
Please help me send email using php, I searched trough google and found out that I need to reconfigure/edit my php.ini and change SMTP value and smtp_port, I dont know what exactly what will I put on those lines. Thanks for helping! It would be a lot easier to use a phpmailer script like this , but you can also do it without that by setting: smtp_ssl = ssl and configure the sendmail.ini so that it connects with your @gmail.com account credentials, or it will not be able to connect. 来源: https://stackoverflow.com/questions/10344580/sending-email-using-xampp-localhost