Website URL
Error Message
I want to use mailgun on my website but which way I should use? like if php then how can i install the modules and packages and if javascript then how should i use that??
I want to use mailgun on my website but which way I should use? like if php then how can i install the modules and packages and if javascript then how should i use that??
MailGun is just an SMTP service, so how you use it is entirely up to you and your use case. What do you want to use it for?
The PHPMailer library is probably a good place to start
You can use Mailgun with a generic SMTP library like PHPMailer or Swiftmailer, or use Mailgun’s own library instead (but that might make it harder to switch to another email provider later on).
Most libraries nowadays are installed using Composer. Our hosting doesn’t integrate Composer, but you can install the Composer packages on your own computer and upload the generated vendor
folder to your hosting account.
You will need to use PHP for this though. Setting up SMTP connections from a browser is difficult and fragile, and involve sharing your SMTP credentials with the world, which would be a very bad idea.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.