当我在没有www
的情况下打开我的网站并发送电子邮件时,它运行正常,但当我打开我的网站并尝试发送电子邮件时,它会发出错误意外错误:
只有在我使用www
打开网址时才会出现错误。没有www
它就可以工作,并且电子邮件已成功发送。
$.ajax({
url: 'http://example.com/save_and_send_email',
data:
{
imgdata:imgdata ,
report_id:reportID,
email:email_val,
_token: "{{ csrf_token() }}"
},
type: 'POST',
error : function (r, s, e) {
alert("Unexpected error:" + e);
console.log(r);
console.log(s);
console.log(e);
} ,