I am trying to use Swift Mailer to send an email to a client on her website. The problem is, I do not know her username/password email information, and I do not want to use mine.
Is there a way to use SMTP with Swift Mailer, and not define a username, password, or email host? Kinda how the mail function will allow you to use anything for the to/from addresses.
This is what I have for one of our scripts and I believe it does exactly that.
This was probably copy-pasted and slightly modified from the Swift mailer documentation. All we’re doing is connecting to SMTP on localhost.
Edit: Looking at comments on the original post, I do have to wonder about triggering spam filters. We haven’t really had a problem with it… one, maybe two users have complained about not receiving e-mails. If there’s any good documentation on this kind of stuff and ways to avoid these problems, I’d love to have a link to it. I think we just have the default IIS SMTP server running on our machine as set up by our provider.
Another Edit: Ah, if this is going on to someone else’s website, we don’t know exactly how they’re set up. I wonder if you could create an account with some other e-mail provider (assuming it’s not against their terms of use.) Maybe I jumped the gun with my post, sorry.