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

Invalid ForwardTo Email when using setEmailForwarding command #2

Closed
arharp opened this issue Feb 28, 2021 · 6 comments
Closed

Invalid ForwardTo Email when using setEmailForwarding command #2

arharp opened this issue Feb 28, 2021 · 6 comments
Assignees

Comments

@arharp
Copy link

arharp commented Feb 28, 2021

I'm also running into an issue with the setEmailForwarding command which I hoped might have been addressed by the #1 fix. I'm getting the error "Invalid ForwardTo Email." when I run a command similar to:

namecheap domains dns setemailforwarding --domainname=domain.com --mailbox="info@domain.com" --forwardto="my@email.com"

@jsgv
Copy link
Owner

jsgv commented Feb 28, 2021

Interesting, I am also getting that error with the cli.

I also tried with a regular HTTP request and got the error as well.

Using the sandbox endpoint:

https://api.sandbox.namecheap.com/xml.response?ApiKey=thekey&ApiUser=theuser&UserName=theusername&ClientIp=127.0.0.1&Command=namecheap.domains.dns.setEmailForwarding&DomainName=example.com&MailBox1=info&FowardTo1=example%40gmail.com

I think this looks like an error on their part. I can continue to investigate more this coming week.

@jsgv jsgv self-assigned this Feb 28, 2021
jsgv pushed a commit that referenced this issue Mar 2, 2021
@jsgv
Copy link
Owner

jsgv commented Mar 2, 2021

@arharp I have pushed a fix to version 0.0.9

@jsgv jsgv closed this as completed Mar 2, 2021
@arharp
Copy link
Author

arharp commented Mar 31, 2021

Sorry, I'm just now getting around to testing this. There still seems to be an error due to the same typo on lines 196 and 210 of api/domains_dns.go.

@jsgv
Copy link
Owner

jsgv commented Apr 5, 2021

Sorry, I'm just now getting around to testing this. There still seems to be an error due to the same typo on lines 196 and 210 of api/domains_dns.go.

Hmm, It should still work.
The struct property name is wrong, but the url is constructed with the correct parameter ForwardTo line 211. I will update the property also.

Are you seeing any errors?

@arharp
Copy link
Author

arharp commented Apr 5, 2021

Nevermind! I was providing the full address for the --mailbox parameter instead of just the username portion.

Thank you!

@jsgv
Copy link
Owner

jsgv commented Apr 5, 2021

@arharp That is good to hear!

No problem, anytime!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants