VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: sandomatyas on November 30, 2020, 13:04:05 PM

Title: Log sent emails
Post by: sandomatyas on November 30, 2020, 13:04:05 PM
Is it possible to log (without hack) the outgoing emails of VM. I have a lot of issues to check if the mail is sent or not. There would be great an order mail log, something similar like the order status change log.
Title: Re: Log sent emails
Post by: pinochico on November 30, 2020, 14:32:17 PM
QuoteI have a lot of issues to check if the mail is sent or not.

I call to our server and check if email send or not.
We don't use log, because we use VirtueMart Mailing Manager and setup BCC
Title: Re: Log sent emails
Post by: sandomatyas on December 01, 2020, 17:21:36 PM
Exactly. Thet is what would be much more user-friendly if we could check the log e.g. from the order admin interface
Title: Re: Log sent emails
Post by: GJC Web Design on December 01, 2020, 19:53:19 PM
why would specific emails not send?  If generally they send .. then they all send... even if the email address is wrong etc they still send...
Title: Re: Log sent emails
Post by: pinochico on December 02, 2020, 08:41:59 AM
Quotewhy would specific emails not send?

SPAM
SMTP Server
Wrong Setup
Non-exist customer's email

Can I continue? :)
Title: Re: Log sent emails
Post by: jenkinhill on December 02, 2020, 11:13:59 AM
If one sends then they will all send - even with an incorrect mail address they will be sent. But not all may be received.
Title: Re: Log sent emails
Post by: GJC Web Design on December 02, 2020, 12:30:28 PM
QuoteCan I continue? :)

no -- because these are reasons they wouldn't be received.... they will still send....

and if bounced, rejected etc the sender email address should receive a response/notification
Title: Re: Log sent emails
Post by: sandomatyas on December 05, 2020, 15:11:46 PM
Quote from: GJC Web Design on December 01, 2020, 19:53:19 PM
why would specific emails not send?  If generally they send .. then they all send... even if the email address is wrong etc they still send...

Sending emails are related to the order status. This setting can be changed and you don't know if the setting was changed before or after the order was placed
Title: Re: Log sent emails
Post by: AH on December 05, 2020, 20:39:41 PM
QuoteThis setting can be changed and you don't know if the setting was changed before or after the order was placed

Yes you do - modified_on value will be set for the status_code :-) compare that to the order status table.

However, how often does this occur in the life of a trading store?  Coming up with marginal edge cases is not going to get this very far. 

You could always create your own code VM to store whether an attempt to send an email was made for an order.

That wont tell you what happened in your mail handler though.