News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Pictures in Post to be sent with email.

Started by gogotha, October 13, 2013, 07:33:52 PM

Previous topic - Next topic

gogotha

Several of our clients would like to receive the picture in there emails when an event happens and an email is sent. Is it possible add this to send picture that is posted in reply when email is sent?

QuoteA reply has been posted to a topic you are watching by Angela M. Logan.

View the reply at: http://server

Unsubscribe to this topic by using this link: http://server
The text of the reply is shown below:
There is a tank blocking out view of the main gate from the Paint Main Gate camera.



Regards,
The Eye Events Forum Team.
This world is our Host, we are the virus... consume or be consumed.

margarett

Not now, unfortunately as SMF's emails are sent in plain text...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

gogotha

This world is our Host, we are the virus... consume or be consumed.

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

emanuele

The mark as solved is not very helpful in this board. ;)
Better move valid and invalid feature requests to the appropriate (child)board.

I'm not sure what you can obtain, though, in Post.php:
Code (find) Select
$topicData[$key]['body'] = trim(un_htmlspecialchars(strip_tags(strtr(parse_bbc($topicData[$key]['body'], false), array('<br />' => "\n", '</div>' => "\n", '</li>' => "\n", '&#91;' => '[', '&#93;' => ']')))));

Code (replace with) Select
$topicData[$key]['body'] = trim(parse_bbc($topicData[$key]['body']));

Code (find) Select
sendmail($rowmember['email_address'], $emaildata['subject'], $emaildata['body'], null, null, false, 3);
Code (replace with) Select
sendmail($rowmember['email_address'], $emaildata['subject'], '<html><head><title>' . $topicData[$key]['subject'] . '</title></head>' . "\n" . '<body>' . $emaildata['body'] . '</body></html>', null, null, true, 3);

*Disclaimer 1*: I have no idea if this code works.
*Disclaimer 2*: in the remote case it would work, it will just "grab" the image from your server (<img src="http://www.yoursite.ld/blabla" />), since several (I hope all nowadays but I'm not sure) email clients will block loading of remote content, your clients may not see anything unless they explicitly allow loading remote content.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

margarett

Thanks emanuele. I got lost in which board this was :P

My reply was based on a discussion we had (not you and me, we as in a lot of people :P ) some time ago and, IIRC, it was common sense that we shouldn't send HTML emails because they could easily be treated as SPAM.

If that's not the case, then I'm sorry for the misinformation...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

gogotha

emanuele,

We can teach our Clients to allow the picture if they want to see it. I will give it try and report back. Sorry if I put this in the wrong topic! I wont be able to implement till later this week.

Thank You!
This world is our Host, we are the virus... consume or be consumed.

emanuele

Quote from: margarett on October 14, 2013, 10:41:44 AM
Thanks emanuele. I got lost in which board this was :P
np, I know the feeling. :P

Quote
My reply was based on a discussion we had (not you and me, we as in a lot of people :P ) some time ago and, IIRC, it was common sense that we shouldn't send HTML emails because they could easily be treated as SPAM.
Quite possible...


Nothing to apologize for. ;)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Arantor

Yup, that's exactly it. HTML emails are frequently considered spam by a number of engines, however that can be mitigated to some degree by ensuring a text only equivalent is also sent.

Advertisement: