r/PHPhelp • u/B1tN1nja • Apr 27 '20
Looking to hire PHP help - convert php mail () to send with SMTP?
Would like to hire someone to convert a php mail () contact form to send out using SMTP over TLS instead. It's an odler form built into an application we've deployed so we need to update existing form rather than replace it fullys new forms don't load in the old version of the browser.
1
u/dietcheese Apr 28 '20
Are you using a remote SMTP service? If so, who?
1
u/B1tN1nja Apr 28 '20
Yep! We have an account setup with mailgun already. Works great and has great logging.
1
u/Dr_Midnight Apr 28 '20
Looking at Mailgun, rather than using SMTP, have you considered using their API to send with? It will be a lot easier to get up and running using cURL rather than trying to configure an SMTP relay.
https://documentation.mailgun.com/en/latest/api-sending.html#sending
1
u/B1tN1nja Apr 28 '20
I was going to use SMTP so I could easily change it in the form if our needs change in the Future. Since I am not a developer I dont really have the knowledge to implement or troubleshoot later, but SMTP is something I understand very well.
1
u/dietcheese Apr 28 '20
If you’re still looking for help, feel free to message me to discuss details. I’m pretty busy but may be able to get it done this week.
1
1
1
u/AdmiralAdama99 Apr 28 '20
Doesn't sound too difficult. Would just need to install an email library that supports SMTP, and re-write the contact us code to use it. SMTP is of course a good idea because then the emails the form sends won't go to spam.
You'd need to pair it with an SMTP provider, probably one that you pay. I like Amazon SES personally, but any one will do.
I'd be willing to take this one on. Message me if interested.
5
u/mark_b Apr 27 '20
PHPMailer isn't too difficult to figure out if any of you have even basic programming knowledge.