Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error sending e-mail #5

Open
Wandrys-dev opened this issue Apr 30, 2021 · 2 comments
Open

error sending e-mail #5

Wandrys-dev opened this issue Apr 30, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Wandrys-dev
Copy link

I have tried all kinds of ways to make the function for sending e-mail work, taking care to configure the SMTP server properly. Even so, the Java exception error keeps appearing
bug

@apjanke apjanke self-assigned this Apr 30, 2021
@apjanke apjanke added the bug Something isn't working label Apr 30, 2021
@Wandrys-dev
Copy link
Author

Studying the problem further, I see that this error happens when I request access to the gmail server directly. Now when I use the outlook application the problem disappears and I can send the email, with the code working correctly.

I added the following lines after e = mailspoon.HtmlEmail:

h = actxserver('outlook.Application');
e = h.CreateItem('olMail');

So if you have gmail being used by outlook with this addition in the code you will be able to forward the emails to the recipients without any problems.

@apjanke
Copy link
Member

apjanke commented May 1, 2021

Cool! I'll see about adding Outlook support. But that'll be a "bonus" feature: I don't want to require users to use Outlook instead of another email client, and the primary target for MailSpoon is actually server-side automation, so it needs to be able to operate on its own.

I'm sure this is a bug in my mail host/session configuration code in MailSpoon. That part of the code is, ahhh, not entirely done yet. I'll have time to work on it this weekend!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants