showing Error "Failure sending mail." please help me i used port 587 because maximum example 587 used this port how i can know the my mail port or it is right error in this line SMTP.Send(Mail) massage is:- Just "Failure sending mail." ------------------ Imports System.Net.Mail Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Mail As New MailMessage Mail.Subject = "test email" Mail.To.Add("abcd@gmail.com") Mail.From = New MailAddress("abcd@gmail.com") Mail.Body = "test mail test mail 123456789 hi" Dim SMTP As New SmtpClient("smtp.gmail.com") SMTP.EnableSsl = True SMTP.Credentials = New System.Net.NetworkCredential("abcd@gmail.com", "***********************") SMTP.Port = 587 SMTP.Send(Mail) End …

Member Avatar
Member Avatar
+0 forum 1

How can i send email using php on our hmailserver? this hmail server has a host ip for example, 192.16.1.1 and outgoing port of 110. what should i do to send email on that host? All your response are very appreciated. Thank you

Member Avatar
Member Avatar
+0 forum 1

Hello, I try to send auto mail through laravel using gmail yet getting this error: Swift_TransportException Connection could not be established with host smtp.gmail.com .env MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_USERNAME=davy.yg1@gmail.com MAIL_PASSWORD=***** MAIL_ENCRYPTION=ssl MailController.php public function SendUndangan(Request $request) { $title = "Undang Saya"; $nama = $request->input('nama'); $telp = $request->input('telp'); $email = $request->input('email'); $subject = $request->input('subject'); Mail::send('email.undangan', ['title' => $title, 'nama' => $nama, 'telp' => $telp, 'email' => $email, 'subject' => $subject], function ($message) //use ($attach) { $message->from('davy.yg1@gmail.com', 'Admin Shaklee'); $message->to(['davy_yg@yahoo.com']); //Add a subject $message->subject("Undang Saya"); }); return redirect('undang'); } Any clue why?

Member Avatar
Member Avatar
+0 forum 1

Nowadays, most of them are saying that email marketing is still an effective techniques for obtaining business lead and direct traffic for a website. Is it good to prefer email marketing for online business promotions.

Member Avatar
Member Avatar
+0 forum 12

Hello, I have a PHP email script that works I just can't figure out adding the unsubscribe link and tracking. [CODE]<?php $formMessage = ""; $senderName = ""; $senderEmail = ""; $senderMessage = ""; if (isset($_POST['cusername'])) { // Gather the posted form variables into local PHP variables $senderName = $_POST['cusername']; $senderEmail = $_POST['cemail']; $senderMessage = $_POST['msg']; // Make sure certain vars are present or else we do not send email yet if (!$senderName || !$senderEmail ) { $formMessage = "The form is incomplete, please fill in all fields."; } else { // Here is the section in which the email actually …

Member Avatar
Member Avatar
+0 forum 2

Hello guys Am not fimiliar with windows server 2008 enviroment but I learned few things last days, I want to create mail service to send and recieve messages localy, between two or three computers just for learing. How can i achieve that ? Am using windows server 2008 Tried hmailServer and Visundo but no luck Is there any missing configration i should do??

Member Avatar
Member Avatar
+0 forum 3

When i send emails from my website using the mail() function the email goes with my hosting server domain instead of mine(marlon.com or info@marlon.com). Please any help will be appreciated. Thanks

Member Avatar
Member Avatar
+0 forum 1

I'm building an API and on the aspect of sending a mail. I'm getting mail not sent error. In my API, the front-end sends a JSON request consisting of the mail parameters. { "to":"gideonappoh@gmail.com", "subject":"Testing Reviewer's Page", "body": "Hello Gideon", "headers":"oksana.v@scopicsoftware.com" } I then decode them and pass them through a PHPMail method in my controller. But its not working, and I can't find whats wrong. Can someone help me. These are my codes. public function actionSendMail() { //Getting request from frontend $request = file_get_contents('php://input'); //Decoding input into an array $input = json_decode($request, true); //Validating request if (is_null($input)) { $response …

Member Avatar
Member Avatar
+0 forum 11

Hi, I have a code in perl that does some mail things and I would like to translate it to perl can someone help me please? I dont know perl so i want it in python so i can edit it. here is the code: #!/usr/bin/perl -w # USAGE : # ICheckMail.pl <login_&_pass_list.txt> <results.txt> # <login_&_pass_list.txt> must be formatted like this: username@provider.xxx:pass # example : # ICheckMail.pl dump.txt results.txt if(@ARGV!= 2){&usage;} else{ print "\n"; print "-------------------------------\n"; print "- ICheckMail.pl -\n"; print "-------------------------------\n"; print "- Version 1.00 -\n"; print "- By b0110x -\n"; print "-------------------------------\n"; print "\n"; print "Starting...\n"; print "\n"; …

Member Avatar
Member Avatar
+0 forum 2

Hi everyone, i've been searching on the internet about how to read contacts from windows live mail account and i cant see anything in the internet to solve such problem. can anyone help me with this, a pointer or tutorial for this may do. thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

I have an account with Host Gator that allows me to create my own email address's. I created my own email address, lets say its called "myemail@mydomain.com". Now I have a PHP script that automatically send out emails to users but when the emails are sent they are sent by my servers defualt email address. There is no way for me to change my servers default email address so how can I make the PHP mail send emails from the myemail@mydomain.com?

Member Avatar
Member Avatar
+0 forum 2

Hi I want to send mails using gmail server with my gmail id and password. I am using the php mailer class for sending mails. Please help me to do this. my code is shown below <?php $mail = new PHPMailer(); $body = "Test mail Test mail"; $mail->IsSMTP(); // telling the class to use SMTP $mail->SMTPDebug = 1; $mail->SMTPSecure = 'tls'; // enables SMTP debug information (for testing) // 1 = errors and messages // 2 = messages only $mail->SMTPAuth = true; // enable SMTP authentication $mail->Host = "smtp.gmail.com"; // sets the SMTP server $mail->Port = 587; // set the …

Member Avatar
Member Avatar
+0 forum 6

So I've got a php script that emails me a daily database backup via cron. The script will either output success or failure upon mail->send(), and it always succeeds. However, no email ever is delived *if* the domain name is the same (i.e. www.example.com and myself@example.com), but if I send to another domain such as myself@gmail.com then the script works fine. Obviously, a solution would be to just email myself@gmail.com, but I'm trying to understand why I can't send emails to @example.com. Note: It will send emails to @example.com when run from the browser. What could suppress emails to @example.com …

Member Avatar
Member Avatar
+0 forum 3

I have to generate the mail to their mail address specified at the time of the registration to specify the username and password. So i tried the following code to send email but the email is not generated showing me either "Failure sending mail" or "Connection timed out". So please help me to get out of this problem. Thanks in Advance try { System.Web.Mail.MailMessage message = new System.Web.Mail.MailMessage(); message.From = txtFrom.Text.Trim(); MailMessage objMailMessage = new MailMessage(); objMailMessage.From = new MailAddress(txtFrom.Text.Trim()); objMailMessage.To.Add(new MailAddress(txtTo.Text.Trim())); objMailMessage.Subject = txtsubject.Text.Trim(); objMailMessage.Body = txtMessage.Text.Trim(); objMailMessage.IsBodyHtml = false; SmtpClient objSmtpClient = new SmtpClient(); objSmtpClient.Host = "smtp.gmail.com"; objSmtpClient.Port …

Member Avatar
Member Avatar
+0 forum 1

This is a function I created to facilitate the sending of PHP emails. Just give it the name and email of who your sending it to, and your name and email. A subject and a message. These options are required. The type, cc and bcc options are optional. By default, the email will be sent as text, so if your sending an HTML email, make sure to set the type to 'html'.

Member Avatar
Member Avatar
+1 forum 19

I cannot trace when it started, but for some time now, I recieve every mail from DaniWeb two times.

Member Avatar
Member Avatar
+0 forum 3

This is my first time working with php. I used a sample php mail code to process the mail. After entering in the form info and hit the send it button should show a new window that the mail was sent. The email does not send with the contents from the input fields. I left my email out in the top of this code. I just relaized at the time of this writing I do not have a thanks.htm so will create this file. The php is not sending the mail and is residing on my linux server with php …

Member Avatar
Member Avatar
+0 forum 2

please send me the code to generate an auto mail once the user clicks on the register button my register fields are first name,last name,date of birth,emailid i need the code to generate the password from the form information and send password and username to this emailid provided by the user.... the password generated should be valid for 3 days so once the user clicks on the link in the email he should be asked to change the password just lik how daniweb does please help me to do this using php please send the code

Member Avatar
Member Avatar
+0 forum 2

<?php /*~ class.phpmailer.php .---------------------------------------------------------------------------. | Software: PHPMailer - PHP email class | | Version: 5.1 | | Contact: via sourceforge.net support pages (also www.worxware.com) | | Info: http://phpmailer.sourceforge.net | | Support: http://sourceforge.net/projects/phpmailer/ | | ------------------------------------------------------------------------- | | Admin: Andy Prevost (project admininistrator) | | Authors: Andy Prevost (codeworxtech) codeworxtech@users.sourceforge.net | | : Marcus Bointon (coolbru) coolbru@users.sourceforge.net | | Founder: Brent R. Matzelle (original founder) | | Copyright (c) 2004-2009, Andy Prevost. All Rights Reserved. | | Copyright (c) 2001-2003, Brent R. Matzelle | | ------------------------------------------------------------------------- | | License: Distributed under the Lesser General Public License (LGPL) | | http://www.gnu.org/copyleft/lesser.html | …

Member Avatar
Member Avatar
+0 forum 9

please help me, I cannot write on the body text of windows live mail new or reply. I can write on to/cc/bcc and subject, but not on the body. looking at other computer that the WLM is fine, it seems the format bar that contain cut/copy/paste etc is not showing.

Member Avatar
+0 forum 0

Running Windows 8.1 Pro Preview (pb part of the problem) and trying to set up Mercury mail server. No matter how I start the config (via XAMP, directly from mercury.exe, as user or as Administrator) the settings are not saved. I exit it using the File\Exit Menu items. I edited the .ini file to disable some modules, to config other ones (used the MERCURY_EXAMPLE.INI) for key names so far. The only keys I'm still missing and I can't seem to find anywhere are the username, password and SSL settings for the [MercuryC] module. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

Actually this is a common problem for all who work with php mail function. Before I start this new thread, search for 2 days a proper/correct solution for my probem. But i couldn't find of any. When I send email through my web site, It is sent as spam to gmail account. This is my code. $headers = 'From: My web site name <info@mywebsitedomain.co.uk>' . "\r\n" ; $headers .='X-Mailer: PHP/' . phpversion(); $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "Organization: my organizatoin\r\n"; $headers .= "X-Priority: 3\r\n"; mail("mygmailaddress@gmail.com", " Subject going here ", " This is my …

Member Avatar
Member Avatar
+0 forum 1

Hi, I want to send a mail with attachment which was already uploaded and stored in a database using php.

Member Avatar
Member Avatar
+0 forum 2

I have recently configured my online outlook account with my gmail id. All my configuration were done. But after configuration outlook is downloading all my previous mails. I want to stop the unnecesary download of old mails. I want to configure it such that it should only download/sync today's mail only. Is there is a way to accomplish it? Thanks in advance...

Member Avatar
Member Avatar
+0 forum 3

I was trying to send an email using javaMail API using my own smtp server to gmail/hotmail/etc..I put the following code to specify smtp server's settings Properties props = new Properties(); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.host", "my smtp host"); props.put("mail.smtp.port", "my smtp host's port"); Session session = Session.getInstance(props, new javax.mail.Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, password); //my smtp server's username and password } }); But when I run the program..I get the error saying cannot find domain in username or something like that. I have the username like xyz@myDomain.com..could anyone please suggest it what the error is about?? ssl/tls …

Member Avatar
Member Avatar
+0 forum 2

0 down vote favorite I am trying send Newsletter with images, I am able to send email but not getting images, I tried to search lots of solution but its not working.Please check this link for [Simple Newsletter](http://www.shooters.com.au/newsletter/newsletter.html) When I am trying to email this newsletter, I am getting newsletter without images. I put hard coded images in html file, like <img src=http://www.abc.com/images/xyz.jpg /> Here my simple code for sending email : MailMessage myMail; using (StreamReader reader = File.OpenText(Server.MapPath("Newsletter.html"))) // Path to your { // HTML file myMail = new MailMessage(); myMail.From = new MailAddress("email@domain.com.au"); myMail.Subject = "Test News Letter"; …

Member Avatar
Member Avatar
+0 forum 1

Just a curiosity really. I can't find a reason for it anywhere. Why doesn't php mail() mailto allow you to use a semicolon to separate the email addresses?

Member Avatar
Member Avatar
+0 forum 5

We have socket application which sends out quite a number of email out. So we decided to send huge number message into it which will trigger emails. Eventually we see the email are taking hours before it reach any of the inboxes either gmail,hotmail or yahoo etc. We have this codes in the begining. public class commuSe { BoneCP connectionPool = null; class ConnectionHandler implements Runnable { private Socket receivedSocketConn1; ConnectionHandler(Socket receivedSocketConn1) { this.receivedSocketConn1=receivedSocketConn1; } public void run() { ..... } void sendClientEmail(String emailMessageString) { try { Properties props = new Properties(); props.put("mail.smtp.host", "**********"); props.put("mail.smtp.socketFactory.port", "******"); //props.put("mail.smtp.socketFactory.class","javax.net.ssl.SSLSocketFactory"); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.port", …

Member Avatar
+0 forum 0

Hi, All, Good Day! I am instructed to create an email sender program. The requirements are as follows: - masking the sender's email address (company@no-reply.com) - able to send on multiple email-addresses - delivery logs I've used System.Net.Mail(smtp) in this task but the biggest problem is that, Net.Mail can't determine if the mail is successfully delivered and if not, the bounced mail should be logged in a text file. In addition, I need to mask the sender email address but this will blocked the bounced mail(correct me if im wrong). What should I do here? I'm running out of options. …

Member Avatar
Member Avatar
+0 forum 1

I am happy with sending an email using PHP, i would like to know how to send an attachment also in my email: ` <?php $to = "es@yahoo.com"; $subject = "Sent by portal"; $message = "Get attachment"; $from = "se@gmail.com"; $file = $_POST['ah']; function mail_attachment($to, $subject, $message, $from, $file) { // $file should include path and filename $filename = basename($file); $file_size = filesize($file); $content = chunk_split(base64_encode(file_get_contents($file))); $uid = md5(uniqid(time())); $from = str_replace(array("\r", "\n"), '', $from); // to prevent email injection $header = "From: ".$from."\r\n" ."MIME-Version: 1.0\r\n" ."Content-Type: multipart/mixed; boundary=\"".$uid."\"\r\n\r\n" ."This is a multi-part message in MIME format.\r\n" ."--".$uid."\r\n" ."Content-type:text/plain; charset=iso-8859-1\r\n" …

Member Avatar
Member Avatar
+0 forum 2

The End.