How to configure Powermta with PHP? - php

Is it possible to configure powermta with php to send emails, I did searched on google and not found any good resource.
If anybody did it please post some ideas or code snippets.

Yes You can connect PowerMTA with php, use this php class https://github.com/PHPMailer/PHPMailer you just need to provide smtp hostname with smtp port and user credentials to connect to PowerMTA.

Related

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/.

How to use smtp server in phplist

Can anybody please help me in configuring smtp server with phplists.
I am using zoho mail for custom domain.
I am using recent version of phplist.
Thank you.
You have to set various settings in the config file, mainly phpmailerhost:
https://resources.phplist.com/system/sending

Codeigniter Email class connect to smtp server from behind a proxy

I created a simple mailing list system for an application using the Personalized Mailer spark.
This spark uses codeigniter email class to connect to the smtp server and send mails.
The problem is that the server i'm working on uses a proxy to connect to internet so when i tested the mailing list it didn't work despite that it worked when i tested it on my local server.
Is there a way to modify the codeigniter email class to support connecting to smtp server using a proxy?
Ok, to send the email your server have to make a tunnel through fsockopen and then use this tunnel to connect to SMTP. I can't specifically tell you what changes you have to made in codeigniter class but i do know a class which can send email via HTTP PROXY
http://www.phpclasses.org/package/14-PHP-Sends-e-mail-messages-via-SMTP-protocol.html
and following is a test script in which there is an option to configure the proxy.
http://www.phpclasses.org/browse/file/31.html
In case if you are wondering how this is done and wan't to populate the same logic in codeigniter class, you probably have to first read through lines 884 - 953 of file smtp.php.
In my opinion, instead of mimicking the code of this class onto codeigniter mail class, you should use this class instead and change the Personalized Mailer code(which will be comparatively little effort) to use this class.

Mail an exchange server SMTP server response: 550-Verification failed

How do I send an email to my exchange server? When I set the php.ini file with send_from="x#domain.com" it says 550 verification failed. How do I verify myself?
I am using SMTP: mail.domain.com
Its probably a good idea to use a class like phpmailer http://sourceforge.net/projects/phpmailer/ to do this.
That way if you have multiple projects that need to send via a different account or different servers then you won't have any problems.
The error you're getting is because your exchange server requires authentication and your script isn't using authentication or its using the wrong information. I've never really relied on the built in php sendmail functions so I can't be 100% sure but I don't think it supports authentication. (I might be wrong on that point, but I still recommend a class that you can configure per script over a globally configured mail account)

How to access mail from gmail

I was using imap functions in my app to access gmail. Unforunately I have not been able to use imap any more. I am using php. Is there any alternative way like (api..) to access gmail.
I appreciate any help.
In short, no. The only GMail API which provides access to mail is the IMAP one.
You don't explain why you can't use imap any more, but that's ok.
You can use php imap extension to connect with pop3!
Here is an example.
Try Zend Framework:
Code is Here
http://framework.zend.com/manual/en/zend.mail.read.html

Categories