Is the library still in-tact or did you just copy a few files out of it? It needs to stay in-tact.
Next, send the output of print_r($mailer->transactions)... it's either using some unusual method for authentication, or it's hidng the fact that it supports authentication.
Sorry I didn't mean the server is hidden. I meant, SMTP server are supposed the advertise what authentication methods they support. According to RFC 2554:
3. The Authentication service extension
(1) the name of the SMTP service extension is "Authentication"
(2) the EHLO keyword value associated with this extension is "AUTH"
(3) The AUTH EHLO keyword contains as a parameter a space separated
list of the names of supported SASL mechanisms.
Unless the server has provided such a list, Swift cannot know what methods are safe to try. I'll include a manual override in version 3, but I have to ask, are you 100% sure you need to authenticate? A server usually would not support authentication if it doesn't say it does, but you can configure the server to display what list it likes in theory.
No i'm not sure at all if i need to login to the server to SEND (SMTP) mail; however, I always assumed you did because i always need to auth to fetch mail (POP3).
/me tests without auth....
Well i'll be damned... all that to find out I don't need auth... i'm really sorry about that. Thank you.
DaveTheAve wrote:No i'm not sure at all if i need to login to the server to SEND (SMTP) mail; however, I always assumed you did because i always need to auth to fetch mail (POP3).
/me tests without auth....
Well i'll be damned... all that to find out I don't need auth... i'm really sorry about that. Thank you.
You always need to log in to read mail just so it knows who you are and who's messages to dish out (as well as the security of it). Sending mail is different though. It a one-way procedure which doesn't divulge personal information to anybody. It's inherently insecure and that's well known about SMTP. More useful than authentication are things like SPF which work at a DNS level
Ignore me, I'm rambling again, glad you got it working.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi,
am using swift mailer to send mail for my host:mail.hostname.com..
i also include username and password in the code..but, still am getting the error:
"Didn´t authenticate to server"..here is my code:
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
i din get the $print_r->transactions error..one thing is that the code executes when i send to other mails except in the case that it doesn't receive mail only to gmail id.. so, when i send a mail to my gmail id..i simply get the error:
Didn´t authenticate to server
what could be the problem in sending mail to gmail?..
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
i am using php 5.1.1 version..also, i enabled ssl extension and restarted IIS..i am sure that i also copied the swiftmailer files in the right path..I checked the phpinfo()..the ssl information appears..
this is my sample code..
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Oh I see, you're sending email to Gmail, not from Gmail. Does your server actually require authentication? What happens if you do it without authentication?
I still need to see a dump of $mailer->transactions.... it's not error info, it's debug info for me
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
If i send an email to gmail without authentication connecting through my host, i get the following errors...
The mailer failed to connect. Errors:
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]