API Questions on Kentico API.
Version 5.x > API > Problem sending emails with templates. View modes: 
User avatar
Guest
Sergio Uriel - 7/31/2012 9:57:35 AM
   
Problem sending emails with templates.
Hello, I'm trying to send an e-mail using templates with Kentico API.

I've read http://devnet.kentico.com/FAQs/Newsletters-and-E-mail-Engine.aspx to know how to send e-mails.

But the problem is when I try to send (HTML) templates with a table inside of table or with table-paragraphs-table, the e-mail just is not sent. In other cases, with a template more "simple" the e-mail is sent.

I cannot understand why with some templates works and with another doesn't.

I use Outlook to check the recipient e-mail.

NOTE: The e-mail appears as sent in the administration.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 8/1/2012 3:32:46 AM
   
RE:Problem sending emails with templates.
Hello,

Just to be sure, you are following this approach, yes? Have you tried to step through your code to check, if no exception is thrown? Additionally, have you checked the Event log for any error messages regarding this?

Best regards,
Boris Pocatko

User avatar
Guest
Sergio Uriel - 8/1/2012 9:07:44 AM
   
RE:Problem sending emails with templates.
Thank you Boris. Yes, I'm following that method.
I've checked my code step by step a lot of times, but all seems to run correctly.
There are no related errors in event log.
There are no spam in Outlook.

My template is an HTML document: <html><header><body> ..content.., you known, I've tried sending the e-mail, tag by tag (content) until find the point where the e-mail is not sending and I've noted that if I include more than 3 dollar symbol '$' in a table (different cells) the e-mail is not sent, also if I include the tag img "sometimes" the e-mail is not sent (I'm focusing to work with text first).

I'm going crazy because that does not make sense for me, and I don't think that behavior is produced by the dollar symbol, must be something more. Even I've tried to send the e-mail without MacroResolver (thinking in the symbol) but is allways the same.

The e-mails always appears in "Sent e-mails" in the "E-mail queue". I've also noticed that in "Email Details" appears in "Body" all text in HTML document, but without tags, that is to say, header title, content of style tag, paragraphs content, table content (just text) and the HTML entities appears as '@' symbol. I hope that the information is sufficient to you can help me. Thanks!

User avatar
Guest
Sergio Uriel - 8/2/2012 3:54:45 PM
   
RE:Problem sending emails with templates.
Solved! the problem was on the SMTP server, its anti-spam rules marked some messages as spam and the server does not "show" the messages to Outlook, so, the messages never "arrives" to Outlook.

Thank you Boris for you time. Sorry for the inconvenience!

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 8/3/2012 2:13:22 AM
   
RE:Problem sending emails with templates.
Hello,

Thank you for your reply. You are most welcome! It will hopefully help someone in future with similar issues.

Best regards,
Boris Pocatko