malformed links send by swiftmail - html

Good morning,
I just finished the implementation of swiftmailer combined with Twig templates. I have sent several mails now and I encountered a strange habit.
For example:
Example
Sends me a link in the following format:
x-webdoc://AAAAAAAA-BBBB-2222-CC33-DDDDDD444444/example.com/
to my apple mail account. But when i change the value between the < a >-Tags to this
Example.com
I can open the link without any Problem. I can't understand that behaviour.
Can anyone explain this to me? Couldn't test sending mails to gmail or any other provider, since my dev environment can't yet sent mails out of it.
I hope you can help me.
Regards

Related

PHPMailer to send email address verification email not working

I‘d like to send a verification email for new account. Everything works fine on my local environment. But if I try to do it on the remote server, I got a problem. Inside the email there is the verification link for the user. Instantly, when the email is sent, this link is processed. That means, the verification has been done without clicking the link.
My search through the Internet was not successful. Is there anyone who can help me by solving my problem?
Best regards
Joachim Schmaeck

Contact 7 Form not working to my email?

I have latest contact 7 form installed. It will not send any messages to my email I'm not sure what's going on. It's not going to spam either just nothing happens. I'm not sure how to fix it. Please could anyone help me with this?
Showing the green border message means that the PHP function for sending the mail has certainly completed successfully. So if you can’t receive the mail, it’s highly possible that the mail has been kidnapped or killed after that.
If you can check the log of your mail server, it could give you some clues. Spam filter often causes this kind of problem.

send database info to email

I was wondering if sanyone could help me with the following:
I have some info inserted into mysql database on a couple of pages. After this is done I retrieve these info (in a new page) from the database and want to send them via email to various emails including one from the info from database.
I have built the email() function and "SELECT" all the info from the database (have them into some HIDDEN fields).
I am not sure how to go about getting these info sent via email.
I have tried, but all I get is an empty email with no info from database.
Hope I explained my problem and someone can give me clue about this.
Many thanks
Francesco
MySQL does not include a feature for sending email. So you'll need to write additional software to handle the job for you.
One issue to decide, how will the email be requested? -- How will the process be initiated?
You could have your web page (written in PHP or any other language), which shows the information on the screen also send the email. See sending email from php.
A better performing idea is to first queue up your requests for sending emails. That way you won't slow down your web server. Then have a background job process each of the requests, reading the database and sending off the emails. Google for "php background processing" for help or ask more questions on StackOverflow.
Also, remember to check that your email is not being treated as spam.
Re: using the data from the database for sending the email--that's easy, just read the database, then use the information for creating the email's to, cc, subject and other fields.

HTML email not received in gmail, but succeeds with yahoo, msn, aim, and work domain. Is it my HTML?

I have tried sending and HTML formatted email using ACYmailing for Joomla AND Mailchimp. It works for yahoo, msn, aim, my work domain but not for gmail.
I can send plain emails from my server to gmail but the HTML formatted newsletter doesn't work.
Someone suggested it may be my HTML code ~~~> Pastebin
I couldn't find a problem with it.
Some ideas:
Maybe GMail recognizes it as spam. Try some different content
Did you set the headers of the email correctly?
Did you specify a correct sender / sender name?
Are you receiving a rejection or failed email response? If it is being rejected you should get an email explaining why which will be sent (although you will need to specify a correct from / reply-to email address to receive this).
The first thing I would check is if the IP you are sending from has been blacklisted by any spam services - most deliverability issues I have experienced have been due to this. You can check a fairly extensive list of spam blacklists (together with some additional email validation services) at MX Toolbox
If everything appears fine there it may be due to Gmail's fairly strict antispam criteria. To be accepted, an email should contain in the headers a valid email address for Return-Path. If this is not valid then there must be a Reply-To header with a valid email address.
Another important weapon in Googles antispam arsenal is SPF record checking - essentially a way of validating that an IP address is authorised to send email for a particular domain. This is worth checking however as far as I am aware a missing SPF record will only cause the mail to go into spam rather than not be delivered.
Gmail has three tabs now, especially if you're part of their partner network. I encountered the same issue until I noticed the three tabs. They are "Primary", "Social", and "Promotions". All of my MailChimp email wound up under the Promotions tab. Check there for your emails from MailChimp and possibly other e-blast emails. I don't have the solution yet on how to get MailChimp emails to go directly to the Primary area of the inbox.
Just in case you're actually sending the HTML you reference in your question, note that it's invalid - you haven't wrapped it in the necessary <html> and <body> tags.
I realize it's likely you just forgot to include those tags in the pastebin reference, but just in case. Note that the w3c validator found several (minor) errors in the referenced fragment.

Retrieve SMTP response of a mail

Is it possible to retrieve the SMTP response of a mail. For example, I am sending a mail to non existing email id. Surely our server will send us a mailer daemon failure mail to our mail id. I need to capture that failure mail.
How its possible? please explain me. Some time we may enter more than one non existing email id, so i have to retrieve all the failure mail alone for every corresponding emails
Please guide me!
Thanks in advance,
Praveen J
I think I understood your question correctly now. As I understand, you are writing an application to send mail. And in your application, whenever you send a mail, you also want verify that if mail was delivered and also if it was not delivered then you want to get hold of the failure message in your application. Is that how you mean?
Well, if that is how you mean, then I think it is impossible to track the mail status with your apllication code. For instance if you are using java sendMail in your apllication you can only ensure that the send happened from your code successfully(without any send exceptions like java.net.SocketException or javax.mail.MessagingException). But, you can never ensure if the mail really reached the recepient. i.e. you can never track in your application if the mail was rejected due to wrong recepient address or any other error like illegal attachment at receipient mail server or errors like blocked sender id etc.
That is because any such error condition will be communicated by the receipient mail server to the sending mail server the information of which is present in the sent mail's header.
Does that answer your question? (Or did I understand your question correctly? ;-))
I am not sure if I am getting your question right. If you send an email to any non existent address say xxx#gmail.com from your address yyy#yourhost.com, the mail server at gmail.com replies to the mail server at yourhost.com with failure message and reason, with your delivery address and you receive the fialure mail automatically. you don't have to do anything extra in this.
If you are talking about seeing mail headers, then it depends on which client you are using. For instace, if you are using MS outlook, you can right-click on the message and click options and then see internet headers section to get mail headers. If you are using some web based mail then i am sure there will some option to view detailed mail headers.
The bounced messages are going to return to a mailbox. You should be able to configure that mailbox by properly setting the headers on the messages you send out. You would then need to monitor that mailbox, or have that mailbox deliver the messages to your program.
I would suggest you consider using VERP for all messages you send out. It will make it much easier for you to identify which email address a particular bounce belongs too. To do this you would need control of your mail server though. It takes some work configuring things.
To answer the question with more detail you need to tell us how your are sending messages, what type of mail server you are running, and how much control you have over the mail server.
On Unix, you can use "procmail" for this. Procmail is a service which can intercept your mails and process them following rules.
If you can access your mail my IMAP, I suggest to look at the Python module imaplib.