logo
down
shadow

How to send reply mail to particular mail using mailman server in ruby on rails


How to send reply mail to particular mail using mailman server in ruby on rails

By : Hagar Ashraf
Date : November 20 2020, 01:01 AM
To fix the issue you can do This is very simple:
I like to have an initializer for handle this, like so:
code :
if Rails.env.production?
 ActionMailer::Base.smtp_settings = {
  :user_name => ENV['SENDGRID_USERNAME'],
  :password => ENV['SENDGRID_PASSWORD'],
  :domain => ENV['SENDGRID_DOMAIN'],
  :address => "smtp.sendgrid.net",
  :port => 587,
  :authentication => :plain,
  :enable_starttls_auto => true
 }
end
config.action_mailer.default_url_options = { host: "http://www.example.com" }
config.action_mailer.asset_host = "http://www.example.com"
$ gem install mailcatcher
$ mailcatcher
config.action_mailer.default_url_options = { host: "localhost:3000" }
config.action_mailer.asset_host = "http://localhost:3000"

#mailcatcher configs
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }


Share : facebook icon twitter icon
How to send a same reply mail(template saved in outlook) to the mail sender(to,cc)

How to send a same reply mail(template saved in outlook) to the mail sender(to,cc)


By : Sukanya De
Date : March 29 2020, 07:55 AM
Hope this helps I am sorry my comment was so curt; 500 characters does not leave much room for a full answer.
Your question is very unclear so it is likely to be closed. Certainly, I do not see how anyone could answer it. That is why it is important that you try to solve your own problem and return as necessary with specific questions.
code :
.Body = .Body & Chr(13) & Chr(13)
.HTMLBody = .HTMLBody & Chr(13) & Chr(13)
<!doctype ...><html><head> ... </head><body> ... </body></html>
Dim InsertStg As String
Dim Inx As Long
Dim Pos As Long

    'Change the body step 1: Create the string to be inserted
    InsertStg = "<table border=0 width=""100%"" style=""Color: #0000FF""" & _
                " bgColor=#FFFFFF><tr><td><p>"
    For Inx = 1 To 10
      InsertStg = InsertStg & "Sentence " & Inx & " of first paragraph. "
    Next
    InsertStg = InsertStg & "</p><p>"
    For Inx = 1 To 10
      InsertStg = InsertStg & "Sentence " & Inx & " of second paragraph. "
    Next

    ' The following adds a signature at the bottom of the message.
    ' "font-family" gives a list of fonts to be tried.  If these are
    ' missing from your computer, use the names of fonts you do have.
    ' "serif" means that if none of the fonts exist any serif font
    ' that exists is to be used.
    InsertStg = InsertStg & "</p><p style = ""font-family: Mistral, " & _
                "Vivaldi, serif; font-size: 14px; color: " & _
                "rgb(127,0,127)"">John Smith<br>5 Acacia Avenue<br>"

    InsertStg = InsertStg & "</p></td></tr></table>"
    'Change the body step 2: Find insertion position just after <Body> element
    Pos = InStr(1, LCase(.HTMLBody), "<body")
    If Pos = 0 Then
      Call MsgBox("<Body> element not found in HTML body", vbCritical)
      Exit Sub
    End If
    Pos = InStr(Pos, .HTMLBody, ">")
    If Pos = 0 Then
      Call MsgBox("Terminating > for <Body> element not found in HTML body", vbCritical)
      Exit Sub
    End If
    'Change the body step 3: Insert my text into body
    .HTMLBody = Mid(.HTMLBody, 1, Pos) & InsertStg & Mid(.HTMLBody, Pos + 1)
Unable to send mail (Mail Relay error), have all settings in SMTP Mail Server

Unable to send mail (Mail Relay error), have all settings in SMTP Mail Server


By : VAsia.k
Date : March 29 2020, 07:55 AM
I wish this helpful for you If you do not want to have credentials in your configuration file, then you have to enable relay access in the SMTP service for the IP address instead. According to your screenshot, only authenticated connections are allowed to be relayed.
It usually helps to enable logging on the SMTP service so you can see exactly from where and how clients are trying to use the SMTP service.
How to send a mail by postfix mail server with rails?

How to send a mail by postfix mail server with rails?


By : Raffael
Date : March 29 2020, 07:55 AM
wish help you to fix your issue On my local host, I followed this article made a mail server and it works well. , You need to change the delivery_method from :smtp to :sendmail
code :
config.action_mailer.delivery_method = :sendmail
Java Mail API: Find if a mail is forwarded mail or a reply to another mail

Java Mail API: Find if a mail is forwarded mail or a reply to another mail


By : Php Dev
Date : March 29 2020, 07:55 AM
it fixes the issue Most email clients add Re: or Fwd: to the subject line, but I wouldn't rely on that to determine whether an email is a reply or forwarded text; for example, a German mailclient might put Betr.: in front of the original subject.
Instead, you might want to look at the In-Reply-To: header and/or the References: header. See RFC 4021 for detailed information on those headers.
mail(): SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail

mail(): SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail


By : Shema No Pianist
Date : March 29 2020, 07:55 AM
With these it helps Error message is quite clear This mail server requires authentication
You can create mail user in Plesk and use following PHP class to send mail with authentication:
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org