Re: SMTP authentication
On Fri, Jan 14, 2011 at 11:48:16AM -0800, Dan Fandrich wrote:
> On Fri, Jan 14, 2011 at 01:39:32PM +0100, Luca Matteis wrote:
> > I am using an smtp server which requires authentication. The issue is that
> > the username must be provided in the form of domain/user.
> > I have this in my .muttrc:
> >
> > set smtp_url = "smtp://domain/user@xxxxxxxxxxxxxxxxxx:587/"
> > set smtp_pass = "xxxx"
> >
> > When I try sending an email through Mutt this is what I get:
> >
> > Could not find the host "domain"
> >
> > What's happening here? What's the correct syntax for this?
>
> The slash in the user name is terminating the host portion of the URL. It
> should work if you URL-encode is, like this:
> "smtp://domain%2fuser@xxxxxxxxxxxxxxxxxx:587/"
It would be nice if "smtp://domain\/user@xxxxxxxxxxxxxxxxxx:587/"
or "smtp://'domain/user'@somesmtpserver.com:587/"
would work.
--
Will Fiveash