B4J Question Mail headers ???

ivanomonti

Expert
Licensed User
Longtime User
I need to set a list headers:

B4X:
"X-Mailer"
"Disposition-Notification-To"
"Return-Receipt-To"
"X-Confirm-reading-to"
"Reply-to"
"Fwd"

How do I proceed to fill in the following fields
 

ivanomonti

Expert
Licensed User
Longtime User
Erel, forgive
Would you have an idea of how I can set these parameters in headers smpt or email?

Erel, perdonami
Avresti un indea di come posso impostare tali parametri nell'headers smpt o mail?
 
Upvote 0

ivanomonti

Expert
Licensed User
Longtime User
Are you using the Net library? Currently it is not possible to add headers.

B4X:
Dim headlers As Map
    headlers.Initialize
    headlers.Put( "X-Mailer","Junesse Global Marketing")
    headlers.Put( "X-Confirm-reading-to",mail)
    headlers.Put( "Disposition-Notification-To",mail)
    headlers.Put( "Return-Receipt-to",mail)
    headlers.Put( "Reply-to",mail)
    headlers.Put( "Fwd",mail)

    Dim SMTPClient As SMTP
  
    SMTPClient.Initialize("email3-wh.vhosting-it.com", 25, "jeunesseglobal@ivanomonti.eu", "xxxxxxx", "SMTP")
    SMTPClient.HtmlBody = True

    SMTPClient.Sender = "jeunesseglobal@ivanomonti.eu"
    SMTPClient.To.Add(mail)
    SMTPClient.Subject = "Jeunesse Global Italia - Ivano Angelo Monti"
    SMTPClient.Body = page
    SMTPClient.Send
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…