Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
452 views
in Technique[技术] by (71.8m points)

javascript - URL blocking: smtpjs library does not send emails on Android-based devices

I have the smtpjs library added to our code, which works well on iOS-based devices ending with "OK" in the window popup:

    Email.send(
    {
        Host: <our-email-server>,
        Username: <username>,
        Password: <password>,
        To: <some-email-receiver>,
        From: <our-email-sender-address>,
        Subject: "testSubject",
        Body: "testBody"
    }).then(message => alert(message));

However when trying to run the related code on Android-based devices it just pops up an alert in the end also stating "Alert": Alert on Android device

The same happens if we use a smtpjs-token instead.

Looking in Android logs using adb one can see the following entry:

01-06 22:22:57.225 31564 31605 W SystemWebViewClient: URL blocked by whitelist: https://smtpjs.com/v3/smtpjs.aspx?

What to do next?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...