Page 1 of 1

PHP SendMail with inline image

PostPosted: Tue Sep 10, 2013 12:06 pm
by David de Argentina
Hi all,

One of my programs, sends emails using SendMail action or whatever..

My Hosting provider tells me the max of mails i can send: 3 by minute using SMTP and 15 by minute using PHP.

As the program sends random quantity of mails, i need send emails using PHP.

I need do a PHP program that send emails (HTML formatted) with one inline image.

Does any have some like this ?

Thanks in advance,

David de Argentina

Re: PHP SendMail with inline image

PostPosted: Tue Sep 10, 2013 12:34 pm
by dec
Hello,

Take a look at this article, for example. I found it after this Google search, who put my in this other page that probably you want to read.

Re: PHP SendMail with inline image

PostPosted: Tue Sep 10, 2013 1:03 pm
by David de Argentina
Thanks DEC,

I found the same webpage and use the sample... but does not works...

On the other hand...

I think is more viable try to send emails without SMTP server...

Do you know about this ?

David de Argentina

Re: PHP SendMail with inline image

PostPosted: Tue Sep 10, 2013 1:07 pm
by dec
Hello,

Sorry, I do not try the code. In your place I'am try with using some particular PHP class like PHP Mailer.

Re: PHP SendMail with inline image

PostPosted: Wed Sep 11, 2013 8:18 am
by dpayer
David de Argentina wrote:On the other hand...
I think is more viable try to send emails without SMTP server...
Do you know about this ?
David de Argentina



David, you can send mails directly from an application but be aware that you are then making that machine INTO A SMTP SERVER. The transport must occur via SMTP protocol for destination servers to receive it. Having said that, one of the lists that SMTP servers use to block incoming connections is the DHCP addresses for DSL/Cable. So while you can make a person's computer into an SMTP server, there is no guarantee that the recipient server will accept the connection.

Again, either a person should use their own ISP's server via the app or you should provide them a server with no limitations.

my $.02

David P