[Solved] How to send mail through more person from this code?

Pass more value splited with comma in targetAddress parameter of SendMessage. Sample code to send mail to multiple persons: public bool SendEmail() { bool status = false; try { //code to send email this._mail = new MailMessage(); this._mail.From = new MailAddress(this.From, this.DisplayName); if (!string.IsNullOrEmpty(this.To)) { var distinctAddress = new List<string>(this.To.Split(‘,’).Distinct()); this.To = string.Empty; foreach (string … Read more

[Solved] Sendmail as HTML output [closed]

Add Content-type:text/html;charset=UTF-8 to you header and remove * from html tags like this $headers = “MIME-Version: 1.0” . “\r\n”; $headers .= “Content-type:text/html;charset=UTF-8” . “\r\n”; $headers .= “From: <****@example.com>’ . “\r\n”; $headers .= “Cc: ****@example.com’ . “\r\n”; $message =” <html> <head> <title>HTML email</title> </head> <body> <div>Hello ” . $row[‘first_name’] . ” ” . $row[‘last_name’] . “</div> … Read more

[Solved] PHP mail set from image

These avatars are a feature provided by the used mail client, e.g.: GMail will show the user’s Google+ profile avatar if available Apple Mail will show the user’s avatar shown in your address book etc. So the avatar is not part of the mail itself. Two workaround suggestions: Use a GMail sender address assigned to … Read more

[Solved] php syntax errors on simple sendmail code [closed]

Change the code to if(isset($_POST[‘submit’])) { $msg = ‘Name: ‘ .$_POST[‘FirstName’] .$_POST[‘LastName’] .”\n” .’Email: ‘ .$_POST[‘Email’] .”\n” .’Message: ‘ .$_POST[‘Message’]; mail(’[email protected]’, ‘Message from website’, $msg); header(‘location: contact-thank-you.php’); } else { header(‘location: contact.php’); exit(0); } You need to have { and } instead of ( & ) 1 solved php syntax errors on simple sendmail code … Read more

[Solved] How to send emails in large quantities with PHP script and cronjobs [closed]

You should have a database table with these columns: =============== Suscribers Table =============== |id (int)|email (varchar)|sent (tinyint) |1|[email protected]|0 |2|[email protected]|0 |3|[email protected]|0 Then something like this PHP script: // DB Connection require_once ‘db.php’; // Check if we have users with a 0 sent value $query = mysql_query(“SELECT COUNT(id) FROM suscribers WHERE sent = 0”); $results = mysql_num_rows($query); … Read more

[Solved] Need preview page before send email [closed]

Further to my comment, what I mean by splitting up the sendMail.php (you will, of course, have to modify your main page javascript to accommodate a confirm response from your sendMail.php): if(isset($_POST[‘data’]) && is_array($_POST[‘data’]) ) { foreach($_POST[‘data’] as $data) { } $datatList = implode(‘, ‘, $_POST[‘data’]); } else $datatList = $_POST[‘data’]; if(!isset($_POST[‘confirm’])) { $name = … Read more

[Solved] This message does not have authentication information or fails to 550-5.7.26 pass authentication checks

That is odd. The sending source IP is definitely in your SPF, and the DMARC record includes aspf=r, so the header from address in a child domain is valid and matches. I’d also note that your DMARC has p=quarantine, but gmail is acting like it’s reject. This is gmail though, so you can’t expect it … Read more