Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
150
rated 0 times [  154] [ 4]  / answers: 1 / hits: 26243  / 8 Years ago, wed, july 13, 2016, 12:00:00

I'm trying to send emails using mandrill email service but I get the following error:



[
{
email: [email protected],
status: rejected,
_id: daab0daa538a4fe9b161be709593be0b,
reject_reason: unsigned
}
]


I am trying to send email using ajax call in javascript like :



    $.ajax({
type: POST,
url: https://mandrillapp.com/api/1.0/messages/send.json,
data: {
key: RemovedforSecurityitscorrect,
message: {
html: <p>Example HTML content</p>,
text: $('#emailText').val(),
subject: $('#emailSubject').val(),
from_email: $('#fromEmail').val(),
from_name: $('#fromName').val(),
to: [{
email: $('#toEmail').val(),
name: $('#recipientName').val(),
type: to
}],
headers: {
Reply-To: $('#fromName').val()
}
},
success: function (data) {
console.log(Email Sent);
},
error: function (xhr, status, error) {
console.log(Error while sending mail);
}
}
});


all values are coming to ajax call & call is made to server evident from response. What can be issue?


More From » ajax

 Answers
12

I got the reason, it was silly mistake. I was trying to send mail through my personal email id which is on different domain than to for which Mandrill is configured & verified.



Searching for the reason of error, I found that this error is sent from Mandrill when Mail sent from unverified domains or domains without valid SPF and DKIM records will be rejected with the reject_reason, unsigned.



enter



For more information refer





For doing required setting related to SPF & DKIM for Mandrill please refer:



https://mandrill.zendesk.com/hc/en-us/articles/205582277-How-do-I-add-DNS-records-for-my-sending-domains-


[#61388] Tuesday, July 12, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lucillemariselal

Total Points: 108
Total Questions: 97
Total Answers: 119

Location: Thailand
Member since Thu, May 6, 2021
3 Years ago
;