Email not delivered automatically

@MartinHBramwell Hi…, email is triggered but not delivered, but if I click on send now button in email queue mail is delivered successfully, otherwise it’s keep on retrying for 3 times and ended up with the status of error. Here is the code…,{
method: “”,
args: {
sender: “”,
sender_full_name: “Helpdesk | ABC”,
cc: cc,
bcc: bcc,
content: “Dear Team, Please find the file”,
subject: subject,
doctype: “Prospect”,
send_email: 1,
// attachments: att,
communication_medium: “Email”,
//Sent_or_received: “Sent”,
// read_receipt: 0
async: false,
callback: function(r) {

this is the error log,

wkhtmltopdf reported an error? whould probably mean the email creation is incomplete, and therefore cannot be sent

1 Like

I think you need to be sure the body of the email is valid HTML

1 Like

Thanks will check this…

Thanks for Your reply. Will check once

1 Like

I guess you are sending an email with attachment of the document.
It is the problem with the wkhtmltopdf and not with the email client.

This might help to root cause.

Is this a way to send print_format within this function?

Are you able to generate pdf from the print menu for the document?

yes, I can able to…

analyse the email content carefully by inspecting the error email. Especially the pdf generation section. Mostly this is due to stylesheet not loaded due to non reachable host.

@gsarunk Yes it is saying “HostNotFoundError” ,How can I resolve that?

again the error indicates a problem with unpatched qt version. Which version do you have?

I have wkhtmltopdf - 0.12.6

you need the qt patched version

How can I get that?

this should work (in theory), but no guarantees

  [ -f "$(ls ./wkhtmltox_0.12.*.deb)" ] && sudo dpkg --install wkhtmltox_0.12.*_amd64.deb; 
  wkhtmltopdf --version  #Test the install: wkhtmltopdf 0.12.6 (with patched qt)