Sending email in html format - php

Hi I am configuring a Joomla Application for sending emails using gmail smtp server. I used it on my localhost and found to work correctly. But its not working on my remote host server. I am using the same settings for it. Can anyone reply me the problem. Its says that email could not be sent

Did you sent bulk mails, news letter and etc ?
if the answer is "yes", you should check your gmail account, because gmail smtp server has a smart bulk spamer recognition engine. so they may deactivated your smtp account because of sending about more than even 50 mails in last 10 mins.
so my suggestion is to forget gmail as your smtp server and start your own smtp server or buy a paid smtp account to do this.

Related

Authentication in email forwarding between SMTP servers

I am writing a Mail Relay Server in PHP for Newsletter mailings.
This server encodes all links in the e-mails so that they point to an accompanying website for tracking (click count only) and redirecting.
This Mail Relay Server will run as a service for multiple customers sending Newsletters.
Each customer has it's own credentials for the Mail Relay Server.
The newsletters may go to a great amount of recipients.
As of this, I can't forward all mails through my own mail account (would bring my webhoster on the blacklist).
This is why I thought of forwarding them to the recipients' mail server myself, using the techniques used in e-mail forwarding all around the world.
My question now is: Is there a way to forward e-mails from an own SMTP server to another, for which I don't have a mail account and cannot send credentials?
Thanks in advance for any help and clarification on this.

External SMTP setup on Azure

I have a website on Azure Web Apps and want to enable SMTP settings to be able to receive emails through my websites contact form. One of the solutions that I found on this forum were to use an external SMTP. I went over to my web root and modified the php.ini file, changing the default SMTP settings to the external SMTP I want to use. I changed the SMTP server name and the port number.
However, that does not suffice. I need to provide credentials for SMTP relay, and I don't understand how SMTP authentication comes into play here. I am currently using the mail function in my HTML form with PHP handling.
If someone could please guide me on the process, I'd be highly grateful.
Actually, on Azure, you don't need to use External SMTP server to send emails in your app. You can easily use SendGrid to satisfy this.
Here is a detailed guide on how to use the SendGrid email service from PHP: https://azure.microsoft.com/en-us/documentation/articles/store-sendgrid-php-how-to-send-email/.

Laravel 4 Mail - failed SMTP on server, switching to mail method

This is quite strange as email sending using my Gmail SMTP server works in my localhost, but when I deployed it on a VPS, it wouldn't work at all.
I can't find any issue as to why this is happening, the configuration looks normal (SSL port 465, Gmail SMTP server). I'm using Laravel 4.0.9 so I thought of upgrading to 4.1/4.2 to use the Mailgun feature (not sure if 4.0 can use Mailgun?)
Anyway, for a quick fix, I just switched to mail method for email sending. Since this works well for me, my question is that whether there is any tradeoff of using mail instead of SMTP on Laravel? The delivery seems okay as it got to my inbox, but what about the long term?
Any thoughts would be very much appreciated :)
When using the built-in mail function you don't benefit from additional features such as DKIM and the SFP configuration for your domain may not allow hosts other than your SMTP mail server to send mail for your domain, all of this makes the mail you send that way look like spam to other servers.
While you may not have issues with some providers, try to send mail to some more restrictive providers such as Outlook (ex-Hotmail); I'm pretty sure all the mail you send there will be automatically marked as spam because of the issues described above.
PHP mail may be faster since you don't have to connect to your smtp server, but it's not better. In the long run, SMTP email is the only way to guarantee that your email will arrive in the inbox of your receivers

Email issue when using SMTP PHPMailer

I am working on an email functionality in PHP, SMTP with PHPMailer. In my office we have different servers. Here, it's working fine. But, when I am trying to send mails from outside the office, it doesn't work. I am using SMTP Auth False. I'm providing Hostname and Port number only.
Why isn't it working?
If you are not authenticating against the SMTP server probably is because your SMTP works only for your local office network.
For security reasons, your SMTP server may be requesting authentication or just not responding to connections outside your local network.
You need to ask IT guys on your office so they provide you some SMTP credentials to use outside the office.

How to set SMTP details in script?

As e-mails sent from my website usually go into Junk, I wanted to edit php.ini file to fix it, but it is not allowed by my hosting provider. They offered their own solution for this:
The solution we can offer you is to use SMTP for your mailservice.
You can do that by setting any script you are using to SMTP service
with the below details:
Incoming mailserver: mail.website.com
Outgoing mailserver: mail.website.com
Username: email account set with your domain
Password: your email account password.
I do have couple of .php scripts that send e-mails, but I don't know how to edit SMTP details in them. So how would I do that?
Thank You ))
You should try to use PHPMailer for sending the mails. You will get it here at:
http://phpmailer.worxware.com/
Advanced setup configuration for SMTP can be configured from the script itself if you are using PHPMailer. Detailed guide can be found here:
http://www.web-development-blog.com/archives/send-e-mail-messages-via-smtp-with-phpmailer-and-gmail/

Categories